Created
January 15, 2019 18:44
-
-
Save kumarks1122/57093a034ac0ff21fd2e42c550467c37 to your computer and use it in GitHub Desktop.
React-Native and Redux Basics - Medium post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Profile from "../components/Profile" | |
import Home from "../components/Home" | |
import { createBottomTabNavigator, createAppContainer } from 'react-navigation'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
const RootNavigator = createBottomTabNavigator({ | |
Home: { | |
screen: Home, | |
navigationOptions: { | |
title: "Home", | |
tabBarIcon: ({ tintColor, focused }) => (<Icon name="home" size={25} color={tintColor}/>) | |
} | |
}, | |
Profile: { | |
screen: Profile, | |
navigationOptions: { | |
title: "Profile Tb", | |
tabBarIcon: ({ tintColor, focused }) => (<Icon name="user" size={25} color={tintColor}/>) | |
} | |
}, | |
}, { | |
tabBarOptions: { | |
activeTintColor: "orange" | |
} | |
}) | |
export default createAppContainer(RootNavigator) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment