|
@@ -3,11 +3,10 @@
|
3
|
3
|
* https://github.com/facebook/react-native
|
4
|
4
|
*
|
5
|
5
|
* @format
|
6
|
|
- * @flow
|
7
|
6
|
*/
|
8
|
7
|
|
9
|
|
-import React, {Component} from 'react';
|
10
|
|
-import {Platform, StyleSheet, Text, View} from 'react-native';
|
|
8
|
+import React, { Component } from 'react';
|
|
9
|
+import { Platform, StyleSheet, Text, View } from 'react-native';
|
11
|
10
|
|
12
|
11
|
const instructions = Platform.select({
|
13
|
12
|
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
|
|
@@ -16,11 +15,10 @@ const instructions = Platform.select({
|
16
|
15
|
'Shake or press menu button for dev menu',
|
17
|
16
|
});
|
18
|
17
|
|
19
|
|
-type Props = {};
|
20
|
|
-export default class App extends Component<Props> {
|
|
18
|
+export default class App extends Component {
|
21
|
19
|
render() {
|
22
|
20
|
return (
|
23
|
|
- <View style={styles.container}>
|
|
21
|
+ <View testID="welcome" style={styles.container}>
|
24
|
22
|
<Text style={styles.welcome}>Welcome to React Native!</Text>
|
25
|
23
|
<Text style={styles.instructions}>To get started, edit App.js</Text>
|
26
|
24
|
<Text style={styles.instructions}>{instructions}</Text>
|