Running on Android

This commit is contained in:
Rodrigo Nascimento 2017-08-05 15:32:30 -03:00
parent 7317fe63e7
commit f1a2290ac2
2 changed files with 5 additions and 52 deletions

View File

@ -1,53 +1,6 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { AppRegistry } from 'react-native';
// import { App } from './app/index';
import navigation from './app/navigation';
export default class RocketChatRN 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.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button 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('RocketChatRN', () => RocketChatRN);
AppRegistry.registerComponent('RocketChatRN', () => navigation);

View File

@ -12,7 +12,7 @@
"dependencies": {
"prop-types": "^15.5.10",
"react": "16.0.0-alpha.12",
"react-native": "0.47.1",
"react-native": "0.46.1",
"react-native-meteor": "^1.1.0",
"react-navigation": "^1.0.0-beta.11",
"realm": "^1.10.1"