From f1a2290ac2d7ccf723fee711ed575d957cb08d98 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Sat, 5 Aug 2017 15:32:30 -0300 Subject: [PATCH] Running on Android --- index.android.js | 55 ++++-------------------------------------------- package.json | 2 +- 2 files changed, 5 insertions(+), 52 deletions(-) diff --git a/index.android.js b/index.android.js index fd760c06c..b40fcb877 100644 --- a/index.android.js +++ b/index.android.js @@ -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 ( - - - Welcome to React Native! - - - To get started, edit index.android.js - - - Double tap R on your keyboard to reload,{'\n'} - Shake or press menu button for dev menu - - - ); - } -} - -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); diff --git a/package.json b/package.json index 9698fc955..bda9f0d08 100644 --- a/package.json +++ b/package.json @@ -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"