Advertisement
Guest User

Untitled

a guest
Apr 27th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";
  2.  
  3. import React, { Component } from 'react';
  4. import {
  5.     StyleSheet,
  6.     View,
  7.     Button,
  8.     TextInput,
  9.     Image,
  10.     TouchableOpacity,
  11.     Text,
  12.     ActivityIndicator,
  13.     ToastAndroid,
  14.     StatusBar,
  15. } from 'react-native';
  16.  
  17. import { TabNavigator } from 'react-navigation';
  18. import InputFile from './components/InputFile';
  19. import ListMenu from './components/ListMenu';
  20. import FlatListComp from './components/FlatListComp';
  21. import Search from './components/SearchBar';
  22.  
  23. // import ListView from './components/ListView';
  24. import { Icon } from 'react-native-elements';
  25. import { RequestHelper, setInitialRoute } from '../assets/libraries/Helpers';
  26.  
  27. const TabNavigators = TabNavigator({
  28.  
  29.     People: {
  30.         screen: ListMenu, navigationOptions: {
  31.             title: "Tes1",
  32.             tabBarIcon: ({ tintColor }) => (
  33.                 <Icon name="home" color='white' />
  34.  
  35.             ),
  36.         }
  37.     },
  38.     List: {
  39.         screen: InputFile, navigationOptions: {
  40.             title: "Tes2",
  41.             tabBarIcon: ({ tintColor }) => (
  42.                 <Icon name="search" color='white' type='octicons' />
  43.             ),
  44.         }
  45.     },
  46.     Dashboard: {
  47.         screen: FlatListComp, navigationOptions: {
  48.             title: "Dashboard",
  49.             tabBarIcon: ({ tintColor }) => (
  50.                 <Icon name='plus' type='font-awesome' color='white' />
  51.             ),
  52.         }
  53.     },
  54.     Camera: {
  55.         screen: Search, navigationOptions: {
  56.             title: "Camera",
  57.             tabBarIcon: ({ tintColor }) => (
  58.                 <Icon name="heart" type='octicon' color='white' />
  59.             ),
  60.         }
  61.     },
  62.     Logout: {
  63.         screen: ListMenu, navigationOptions: {
  64.             title: "Logout",
  65.  
  66.             tabBarIcon: ({ tintColor }) => (
  67.                 <Icon name="face" color='white' />
  68.             ),
  69.         }
  70.     },
  71. }, {
  72.         tabBarPosition: 'bottom',
  73.         tabBarOptions: {
  74.             showIcon: true,
  75.             showLabel: false,
  76.         },
  77.         swipeEnabled: true,
  78.         initialRouteName: 'Dashboard'
  79.     })
  80.  
  81.  
  82. export default class HomeScreen extends Component {
  83.    
  84.     render() {
  85.  
  86.         return (
  87.  
  88.             <TabNavigators />
  89.  
  90.         );
  91.  
  92.     };
  93. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement