Skip to content

Instantly share code, notes, and snippets.

@kumarks1122
Created January 15, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumarks1122/57093a034ac0ff21fd2e42c550467c37 to your computer and use it in GitHub Desktop.
Save kumarks1122/57093a034ac0ff21fd2e42c550467c37 to your computer and use it in GitHub Desktop.
React-Native and Redux Basics - Medium post
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