microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.4.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

51lines · modeblame

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