'use strict'; var React = require('react'); var ReactNative = require('react-native'); var { AppRegistry, StyleSheet, Text, View, TouchableOpacity } = ReactNative; var Controllers = require('react-native-controllers'); var PushedScreen = React.createClass({ render: function() { return ( Simple Pushed Screen Notice how the push was 100% native. This screen doesn't have any special styles applied. Push Another Pop PopToRoot ResetTo ); }, onPushClick: function() { Controllers.NavigationControllerIOS("favorites_nav").push({ component: 'PushedScreen', title: 'Another' }); }, onPopClick: function() { Controllers.NavigationControllerIOS("favorites_nav").pop(); }, onPopToRootClick: function() { Controllers.NavigationControllerIOS("favorites_nav").popToRoot(); }, onResetToClick: function() { Controllers.NavigationControllerIOS("favorites_nav").resetTo({ component: 'PushedScreen', title: 'New Root' }); } }); var styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#F5FCFF' }, button: { textAlign: 'center', fontSize: 18, marginBottom: 10, marginTop: 10, color: 'blue' } }); AppRegistry.registerComponent('PushedScreen', () => PushedScreen); module.exports = PushedScreen;