Skip to content

Commit

Permalink
refactored to the new React Native format as other components
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdullah Alger committed Apr 18, 2016
1 parent 0104250 commit f4e9075
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions index.ios.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
import React from 'react-native';
import Main from './App/Components/Main';
import Settings from './App/Components/Settings';

let {
import React, {
AppRegistry,
Component,
NavigatorIOS,
StyleSheet,
Text,
View
} = React;
StyleSheet
} from 'react-native';

import Main from './App/Components/Main';
import Settings from './App/Components/Settings';

class BlocMessenger extends Component {
goToSettings() {
this.refs.nav.push({
component: Settings,
title: 'Settings'
})
});
}

render() {
return (
<NavigatorIOS
ref="nav"
ref='nav'
style={styles.container}
initialRoute={{
title: 'Bloc Messenger',
Expand All @@ -35,10 +32,10 @@ class BlocMessenger extends Component {
}

const styles = StyleSheet.create({
container:{
container: {
flex: 1,
backgroundColor: '#111111'
},
}
});

AppRegistry.registerComponent('BlocMessenger', () => BlocMessenger);

0 comments on commit f4e9075

Please sign in to comment.