microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
e45838cbf8bb84beab7d36042bcdbc57fe0319c8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/test/resources/sampleReactNative022Project/index.android.js

51lines · modecode

1/**
2 * Sample React Native App
3 * https://github.com/facebook/react-native
4 */
5
6import React, {
7 AppRegistry,
8 Component,
9 StyleSheet,
10 Text,
11 View
12} from 'react-native';
13
14class EmptyRNProject extends Component {
15 render() {
16 return (
17 <View style={styles.container}>
18 <Text style={styles.welcome}>
19 Welcome to React Native!
20 </Text>
21 <Text style={styles.instructions}>
22 To get started, edit index.android.js
23 </Text>
24 <Text style={styles.instructions}>
25 Shake or press menu button for dev menu
26 </Text>
27 </View>
28 );
29 }
30}
31
32const styles = StyleSheet.create({
33 container: {
34 flex: 1,
35 justifyContent: 'center',
36 alignItems: 'center',
37 backgroundColor: '#F5FCFF',
38 },
39 welcome: {
40 fontSize: 20,
41 textAlign: 'center',
42 margin: 10,
43 },
44 instructions: {
45 textAlign: 'center',
46 color: '#333333',
47 marginBottom: 5,
48 },
49});
50
51AppRegistry.registerComponent('EmptyRNProject', () => EmptyRNProject);
52