2018-05-11 12:43:49 -07:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import {StyleSheet, Text, View} from 'react-native';
|
2017-02-06 12:21:13 -08:00
|
|
|
|
|
|
|
export default class WelcomeText extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<View style={styles.container}>
|
2018-05-11 12:43:49 -07:00
|
|
|
<Text style={styles.welcome}>Welcome to React Native!</Text>
|
2017-02-06 12:21:13 -08:00
|
|
|
<Text style={styles.instructions}>
|
2018-05-11 12:43:49 -07:00
|
|
|
This app shows the basics of navigating between a few screens, working
|
|
|
|
with ListView and handling text input.
|
2017-02-06 12:21:13 -08:00
|
|
|
</Text>
|
|
|
|
<Text style={styles.instructions}>
|
2018-05-11 12:43:49 -07:00
|
|
|
Modify any files to get started. For example try changing the file{
|
|
|
|
'\n'
|
|
|
|
}views/welcome/WelcomeText.ios.js.
|
2017-02-06 12:21:13 -08:00
|
|
|
</Text>
|
|
|
|
<Text style={styles.instructions}>
|
|
|
|
Press Cmd+R to reload,{'\n'}
|
|
|
|
Cmd+D or shake for dev menu.
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
backgroundColor: 'white',
|
|
|
|
padding: 20,
|
|
|
|
},
|
|
|
|
welcome: {
|
|
|
|
fontSize: 20,
|
|
|
|
textAlign: 'center',
|
|
|
|
margin: 16,
|
|
|
|
},
|
|
|
|
instructions: {
|
|
|
|
textAlign: 'center',
|
|
|
|
color: '#333333',
|
|
|
|
marginBottom: 12,
|
|
|
|
},
|
|
|
|
});
|