Guest User

Untitled

a guest
Feb 25th, 2017
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react';
  2. import { AppRegistry, Text, View } from 'react-native';
  3. import { TabNavigator } from 'react-navigation';
  4.  
  5. const Page = () => {
  6.     return <View><Text>Page!</Text></View>;
  7. }
  8.  
  9. const TabBarComponent = (props) => {
  10.     console.log('TabBarComponent Props: ', Object.keys(props));
  11.     return <View><Text>Tab Bar!</Text></View>;
  12. }
  13.  
  14. const App = TabNavigator({
  15.   Home: { screen: Page }
  16. }, {
  17.   tabBarComponent: TabBarComponent
  18. })
  19.  
  20.  
  21. AppRegistry.registerComponent('test', () => App);
Add Comment
Please, Sign In to add comment