mirror of
https://github.com/status-im/react-native.git
synced 2025-01-20 06:18:57 +00:00
ce1261a3dd
Summary:BUCK is faster than Gradle. For example `gradle app:installDebug` vs `buck install app` is ~7 seconds vs ~2 seconds with warm caches. This is just the beginning to allow people to become familiar with BUCK. It is enough for running the app locally and testing on a device. Gradle is still used for dependency resolution. Closes https://github.com/facebook/react-native/pull/6733 Differential Revision: D3126328 Pulled By: bestander fb-gh-sync-id: 56aad276036c029af7e0e23d60c46ba2f77b3d2c fbshipit-source-id: 56aad276036c029af7e0e23d60c46ba2f77b3d2c
54 lines
1.0 KiB
JavaScript
54 lines
1.0 KiB
JavaScript
/**
|
|
* Sample React Native App
|
|
* https://github.com/facebook/react-native
|
|
* @flow
|
|
*/
|
|
|
|
import React, {
|
|
AppRegistry,
|
|
Component,
|
|
StyleSheet,
|
|
Text,
|
|
View
|
|
} from 'react-native';
|
|
|
|
class <%= name %> extends Component {
|
|
render() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.welcome}>
|
|
Welcome to React Native!
|
|
</Text>
|
|
<Text style={styles.instructions}>
|
|
To get started, edit index.ios.js
|
|
</Text>
|
|
<Text style={styles.instructions}>
|
|
Press Cmd+R to reload,{'\n'}
|
|
Cmd+D or shake for dev menu
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: '#F5FCFF',
|
|
},
|
|
welcome: {
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
margin: 10,
|
|
},
|
|
instructions: {
|
|
textAlign: 'center',
|
|
color: '#333333',
|
|
marginBottom: 5,
|
|
},
|
|
});
|
|
|
|
AppRegistry.registerComponent('<%= name %>', () => <%= name %>);
|