mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 02:35:41 +00:00
82461e04ab
- [React Native] Fix iOS 7 crashes b/c missing Photos.fmwk | Alex Akers - UIExplorer flowification | Basil Hosmer - Add clearImmediate module | Marshall Roch - [ReactNative] Print directories packager is serving files from | Alex Kotliarskyi - Work around flow bug with exports | Marshall Roch - [ReactNative] Move packager/init.sh to GitHub | Alex Kotliarskyi - [ReactNative] Remove react-native/package.json | Christopher Chedeau - [ReactNative] Returning actual contentSize for RCTScrollViewManager | Henry Lung
42 lines
706 B
JavaScript
42 lines
706 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule MoviesApp
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
var React = require('react-native');
|
|
var {
|
|
AppRegistry,
|
|
NavigatorIOS,
|
|
StyleSheet,
|
|
} = React;
|
|
|
|
var SearchScreen = require('./SearchScreen');
|
|
|
|
var MoviesApp = React.createClass({
|
|
render: function() {
|
|
return (
|
|
<NavigatorIOS
|
|
style={styles.container}
|
|
initialRoute={{
|
|
title: 'Movies',
|
|
component: SearchScreen,
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
});
|
|
|
|
var styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: 'white',
|
|
},
|
|
});
|
|
|
|
AppRegistry.registerComponent('MoviesApp', () => MoviesApp);
|
|
|
|
module.exports = MoviesApp;
|