SHARE
TWEET

Untitled

a guest Feb 14th, 2020 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from "react";
  2. import { View, Text, StyleSheet } from "react-native";
  3. import HomeTab from './AppTabNavigator/HomeTab'
  4. import SearchTab from './AppTabNavigator/SearchTab'
  5. import AddMediaTab from './AppTabNavigator/AddMediaTab'
  6. import LikesTab from './AppTabNavigator/LikesTab'
  7. import ProfileTab from './AppTabNavigator/ProfileTab'
  8. import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
  9. import{ Icon } from 'native-base'
  10.  
  11. class MainScreen extends Component {
  12.  
  13.     static navigationOptions = {
  14.  
  15.         headerLeft: <Icon name="ios-camera-outline" style={{ paddingLeft: 10 }} />,
  16.         title:"Townkit",
  17.         headerRight:<Icon style={{ paddingRight: 10 }} name="ios-send-outline" />
  18.     }
  19.     render() {
  20.         return (
  21.             <AppTabNavigator />
  22.         );
  23.     }
  24. }
  25. export default MainScreen;
  26.  
  27. const AppTabNavigator = createBottomTabNavigator({
  28.  
  29.     HomeTab: {
  30.         screen: HomeTab
  31.     },
  32.     SearchTab: {
  33.         screen: SearchTab
  34.     },
  35.     AddMediaTab: {
  36.         screen: AddMediaTab
  37.     },
  38.     LikesTab: {
  39.         screen: LikesTab
  40.     },
  41.     ProfileTab: {
  42.         screen: ProfileTab
  43.     }
  44. })
  45.  
  46. const styles = StyleSheet.create({
  47.     container: {
  48.         flex: 1,
  49.         alignItems: 'center',
  50.         justifyContent: 'center'
  51.     }
  52. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top