Skip to content

Commit

Permalink
Drawer Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
franzejr committed Jan 30, 2017
1 parent f3b8237 commit eeb03cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
AppRegistry,
} from 'react-native';
import App from './src/App'
import { TabNavigator } from 'react-navigation';
import { DrawerNavigator } from 'react-navigation';
import SecondScreen from './src/SecondScreen'

class reactNavigationSample extends Component {
Expand All @@ -17,7 +17,7 @@ class reactNavigationSample extends Component {
}
}

const SimpleApp = TabNavigator({
const SimpleApp = DrawerNavigator({
Home: { screen: App },
SecondScreen: { screen: SecondScreen }
});
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const App = () => {
}

App.navigationOptions = {
tabBar: {
drawer: {
icon: () => (
<Image
source={require('../imgs/home.png')}
Expand Down
2 changes: 1 addition & 1 deletion src/SecondScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SecondScreen = () => {
}

SecondScreen.navigationOptions = {
tabBar: {
drawer: {
icon: () => (
<Image
source={require('../imgs/home.png')}
Expand Down

0 comments on commit eeb03cd

Please sign in to comment.