/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; var React = require('react-native'); var { Navigator, ScrollView, StyleSheet, Text, TouchableHighlight, } = React; var BreadcrumbNavSample = require('./BreadcrumbNavSample'); var NavigationBarSample = require('./NavigationBarSample'); var JumpingNavSample = require('./JumpingNavSample'); class NavMenu extends React.Component { render() { return ( { this.props.navigator.push({ id: 'breadcrumbs' }); }}> Breadcrumbs Example { this.props.navigator.push({ id: 'navbar' }); }}> Navbar Example { this.props.navigator.push({ id: 'jumping' }); }}> Jumping Example { this.props.onExampleExit(); }}> Exit Navigator Example ); } } var TabBarExample = React.createClass({ statics: { title: '', description: 'JS-implemented navigation', }, renderScene: function(route, nav) { switch (route.id) { case 'menu': return ( ); case 'navbar': return ; case 'breadcrumbs': return ; case 'jumping': return ; } }, render: function() { return ( Navigator.SceneConfigs.FloatFromBottom} /> ); }, }); var styles = StyleSheet.create({ container: { flex: 1, }, button: { backgroundColor: 'white', padding: 15, }, buttonText: { }, scene: { flex: 1, paddingTop: 64, } }); module.exports = TabBarExample;