2015-09-14 17:35:58 +03:00
|
|
|
/**
|
|
|
|
* Sample React Native App
|
|
|
|
* https://github.com/facebook/react-native
|
2018-05-11 22:43:49 +03:00
|
|
|
*
|
|
|
|
* @format
|
2018-08-17 03:25:06 +03:00
|
|
|
* @flow
|
2015-09-14 17:35:58 +03:00
|
|
|
*/
|
2016-03-06 20:00:29 +03:00
|
|
|
|
2019-08-06 13:47:14 +03:00
|
|
|
import React from 'react';
|
2019-05-15 18:25:21 +03:00
|
|
|
import {
|
|
|
|
SafeAreaView,
|
|
|
|
StyleSheet,
|
|
|
|
ScrollView,
|
|
|
|
View,
|
|
|
|
Text,
|
|
|
|
StatusBar,
|
|
|
|
} from 'react-native';
|
2015-09-14 17:35:58 +03:00
|
|
|
|
2019-05-14 15:49:03 +03:00
|
|
|
import {
|
|
|
|
Header,
|
|
|
|
LearnMoreLinks,
|
|
|
|
Colors,
|
|
|
|
DebugInstructions,
|
|
|
|
ReloadInstructions,
|
|
|
|
} from 'react-native/Libraries/NewAppScreen';
|
2017-08-03 23:52:06 +03:00
|
|
|
|
2019-08-09 20:06:53 +03:00
|
|
|
const App: () => React$Node = () => {
|
2019-05-14 15:49:03 +03:00
|
|
|
return (
|
2019-08-06 13:47:14 +03:00
|
|
|
<>
|
2019-05-14 15:49:03 +03:00
|
|
|
<StatusBar barStyle="dark-content" />
|
2019-05-15 18:25:21 +03:00
|
|
|
<SafeAreaView>
|
|
|
|
<ScrollView
|
|
|
|
contentInsetAdjustmentBehavior="automatic"
|
|
|
|
style={styles.scrollView}>
|
|
|
|
<Header />
|
2019-07-26 08:59:00 +03:00
|
|
|
{global.HermesInternal == null ? null : (
|
|
|
|
<View style={styles.engine}>
|
|
|
|
<Text style={styles.footer}>Engine: Hermes</Text>
|
|
|
|
</View>
|
|
|
|
)}
|
2019-05-15 18:25:21 +03:00
|
|
|
<View style={styles.body}>
|
|
|
|
<View style={styles.sectionContainer}>
|
|
|
|
<Text style={styles.sectionTitle}>Step One</Text>
|
|
|
|
<Text style={styles.sectionDescription}>
|
|
|
|
Edit <Text style={styles.highlight}>App.js</Text> to change this
|
|
|
|
screen and then come back to see your edits.
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
<View style={styles.sectionContainer}>
|
|
|
|
<Text style={styles.sectionTitle}>See Your Changes</Text>
|
|
|
|
<Text style={styles.sectionDescription}>
|
|
|
|
<ReloadInstructions />
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
<View style={styles.sectionContainer}>
|
|
|
|
<Text style={styles.sectionTitle}>Debug</Text>
|
|
|
|
<Text style={styles.sectionDescription}>
|
|
|
|
<DebugInstructions />
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
<View style={styles.sectionContainer}>
|
|
|
|
<Text style={styles.sectionTitle}>Learn More</Text>
|
|
|
|
<Text style={styles.sectionDescription}>
|
2019-05-17 13:46:12 +03:00
|
|
|
Read the docs to discover what to do next:
|
2019-05-15 18:25:21 +03:00
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
<LearnMoreLinks />
|
2019-05-14 15:49:03 +03:00
|
|
|
</View>
|
2019-05-15 18:25:21 +03:00
|
|
|
</ScrollView>
|
|
|
|
</SafeAreaView>
|
2019-08-06 13:47:14 +03:00
|
|
|
</>
|
2019-05-14 15:49:03 +03:00
|
|
|
);
|
|
|
|
};
|
2015-09-14 17:35:58 +03:00
|
|
|
|
2015-12-25 13:16:36 +03:00
|
|
|
const styles = StyleSheet.create({
|
2019-05-14 15:49:03 +03:00
|
|
|
scrollView: {
|
|
|
|
backgroundColor: Colors.lighter,
|
|
|
|
},
|
2019-07-26 08:59:00 +03:00
|
|
|
engine: {
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
},
|
2019-05-14 15:49:03 +03:00
|
|
|
body: {
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
},
|
|
|
|
sectionContainer: {
|
|
|
|
marginTop: 32,
|
|
|
|
paddingHorizontal: 24,
|
2015-09-14 17:35:58 +03:00
|
|
|
},
|
2019-05-14 15:49:03 +03:00
|
|
|
sectionTitle: {
|
|
|
|
fontSize: 24,
|
|
|
|
fontWeight: '600',
|
|
|
|
color: Colors.black,
|
2015-09-14 17:35:58 +03:00
|
|
|
},
|
2019-05-14 15:49:03 +03:00
|
|
|
sectionDescription: {
|
|
|
|
marginTop: 8,
|
|
|
|
fontSize: 18,
|
|
|
|
fontWeight: '400',
|
|
|
|
color: Colors.dark,
|
|
|
|
},
|
|
|
|
highlight: {
|
|
|
|
fontWeight: '700',
|
2015-09-14 17:35:58 +03:00
|
|
|
},
|
2019-07-26 08:59:00 +03:00
|
|
|
footer: {
|
|
|
|
color: Colors.dark,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: '600',
|
|
|
|
padding: 4,
|
|
|
|
paddingRight: 12,
|
|
|
|
textAlign: 'right',
|
|
|
|
},
|
2015-09-14 17:35:58 +03:00
|
|
|
});
|
2019-05-14 15:49:03 +03:00
|
|
|
|
|
|
|
export default App;
|