77 * @lint -ignore-every XPLATJSCOPYRIGHT1
88 */
99
10- import React , { Component } from 'react' ;
11- import { Platform , StyleSheet , Text , View } from 'react-native' ;
10+ import React , { Component } from 'react' ;
11+ import { Platform , StyleSheet , Text , View } from 'react-native' ;
1212
1313const instructions = Platform . select ( {
14- ios : 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu' ,
15- android :
16- 'Double tap R on your keyboard to reload,\n' +
17- 'Shake or press menu button for dev menu' ,
14+ ios : 'Press Cmd+R to reload,\nCmd+D or shake for dev menu' ,
15+ android : 'Double tap R on your keyboard to reload,\nShake or press menu button for dev menu' ,
1816} ) ;
1917
20- type Props = { } ;
21- export default class App extends Component < Props > {
22- render ( ) {
23- return (
24- < View style = { styles . container } >
25- < Text style = { styles . welcome } > Welcome to React Native!</ Text >
26- < Text style = { styles . instructions } > To get started, edit App.js</ Text >
27- < Text style = { styles . instructions } > { instructions } </ Text >
28- </ View >
29- ) ;
30- }
31- }
32-
3318const styles = StyleSheet . create ( {
3419 container : {
3520 flex : 1 ,
@@ -48,3 +33,16 @@ const styles = StyleSheet.create({
4833 marginBottom : 5 ,
4934 } ,
5035} ) ;
36+
37+ type Props = { } ;
38+ export default class App extends Component < Props > {
39+ render ( ) {
40+ return (
41+ < View testID = "home" style = { styles . container } >
42+ < Text style = { styles . welcome } > Welcome to React Native!</ Text >
43+ < Text style = { styles . instructions } > To get started, edit App.js</ Text >
44+ < Text style = { styles . instructions } > { instructions } </ Text >
45+ </ View >
46+ ) ;
47+ }
48+ }
0 commit comments