microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.5.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

test/resources/sampleReactNative022Project/index.ios.js

52lines · 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.ios.js
23</Text>
24<Text style={styles.instructions}>
25Press Cmd+R to reload,{'\n'}
26Cmd+D or shake for dev menu
27</Text>
28</View>
29);
30}
31}
32
33const styles = StyleSheet.create({
34container: {
35flex: 1,
36justifyContent: 'center',
37alignItems: 'center',
38backgroundColor: '#F5FCFF',
39},
40welcome: {
41fontSize: 20,
42textAlign: 'center',
43margin: 10,
44},
45instructions: {
46textAlign: 'center',
47color: '#333333',
48marginBottom: 5,
49},
50});
51
52AppRegistry.registerComponent('EmptyRNProject', () => EmptyRNProject);