summaryrefslogtreecommitdiff
path: root/frontend/app/screens/walkthroughs/walkthrough2.js
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2019-03-11 21:00:02 +0400
committerAndrew <saintruler@gmail.com>2019-03-11 21:00:02 +0400
commit7e7dd5244e8d26485ad7950a89c04c98c4fef83f (patch)
tree810730c4650392080fb87a78d3b527201e89fe4b /frontend/app/screens/walkthroughs/walkthrough2.js
Initial commit/
Diffstat (limited to 'frontend/app/screens/walkthroughs/walkthrough2.js')
-rw-r--r--frontend/app/screens/walkthroughs/walkthrough2.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/frontend/app/screens/walkthroughs/walkthrough2.js b/frontend/app/screens/walkthroughs/walkthrough2.js
new file mode 100644
index 0000000..6e387b8
--- /dev/null
+++ b/frontend/app/screens/walkthroughs/walkthrough2.js
@@ -0,0 +1,46 @@
+import React from 'react';
+import {
+ View,
+ Image,
+ Dimensions,
+} from 'react-native';
+import {
+ RkText,
+ RkStyleSheet,
+ RkTheme,
+} from 'react-native-ui-kitten';
+
+export class Walkthrough2 extends React.Component {
+ getThemeImageSource = (theme) => (
+ theme.name === 'light' ?
+ require('../../assets/images/screensImage.png') : require('../../assets/images/screensImageDark.png')
+ );
+
+ renderImage = () => (
+ <Image
+ style={{ width: Dimensions.get('window').width }}
+ source={this.getThemeImageSource(RkTheme.current)}
+ />
+ );
+
+ render = () => (
+ <View style={styles.screen}>
+ {this.renderImage()}
+ <RkText rkType='header2' style={styles.text}>Share info about ecological problems around!</RkText>
+ </View>
+ )
+}
+
+const styles = RkStyleSheet.create(theme => ({
+ screen: {
+ backgroundColor: theme.colors.screen.base,
+ alignItems: 'center',
+ justifyContent: 'center',
+ flex: 1,
+ },
+ text: {
+ textAlign: 'center',
+ marginTop: 20,
+ marginHorizontal: 30,
+ },
+}));