Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import { AppRegistry, Text, View } from 'react-native';
- import { TabNavigator } from 'react-navigation';
- const Page = () => {
- return <View><Text>Page!</Text></View>;
- }
- const TabBarComponent = (props) => {
- console.log('TabBarComponent Props: ', Object.keys(props));
- return <View><Text>Tab Bar!</Text></View>;
- }
- const App = TabNavigator({
- Home: { screen: Page }
- }, {
- tabBarComponent: TabBarComponent
- })
- AppRegistry.registerComponent('test', () => App);
Add Comment
Please, Sign In to add comment