-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
54 lines (51 loc) · 1.21 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import React, { Component } from 'react';
import { StyleSheet, Text, View, Image } from 'react-native';
import Config from 'react-native-config';
import StorybookUI from './storybook';
export default class App extends Component {
render() {
if (Config.IS_STORYBOOK === 'true') {
return <StorybookUI />;
}
return (
<View style={styles.container}>
<Image
source={require('./assets/images/bitrise.png')}
style={styles.image}
/>
<Text style={styles.welcome}>React Native</Text>
<Text style={styles.welcome}>Bitrise Sample Project</Text>
<Text style={styles.instructions}>
To view Storybook UI:
{'\n'}
yarn run storybook:ios
{'\n'}
yarn run storybook:android
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#683D87',
},
image: {
height: 150,
width: 150,
},
welcome: {
fontSize: 20,
fontWeight: 'bold',
textAlign: 'center',
color: '#FFFFFF',
},
instructions: {
textAlign: 'center',
color: '#FFFFFF',
marginTop: 10,
},
});