Created
March 11, 2016 05:56
-
-
Save talkol/d71f176bf49bfbf25d0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Controllers = require('react-native-controllers'); | |
var React = Controllers.hijackReact(); | |
var { | |
ControllerRegistry, | |
TabBarControllerIOS, | |
NavigationControllerIOS, | |
ViewControllerIOS, | |
DrawerControllerIOS | |
} = React; | |
// require all top level react components you refer to in the layout | |
require('./FavoritesScreen'); | |
var MoviesApp = Controllers.createClass({ | |
render: function() { | |
return ( | |
<NavigationControllerIOS | |
title="Favorites" | |
component="FavoritesScreen" | |
id="favorites" | |
passProps={{hidePop: true}} | |
/> | |
); | |
}, | |
}); | |
ControllerRegistry.registerController('MoviesApp', () => MoviesApp); | |
// this line makes the app actually start and initialize | |
ControllerRegistry.setRootController('MoviesApp'); | |
module.exports = MoviesApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment