Skip to content

Commit d11ccf6

Browse files
gimenetehramos
authored andcommitted
Update navigation.md. Use createStackNavigator (facebook#396)
StackNavigator is deprecated and `createStackNavigator` should be used instead.
1 parent bcf38be commit d11ccf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/navigation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Then you can quickly create an app with a home screen and a profile screen:
2525

2626
```
2727
import {
28-
StackNavigator,
28+
createStackNavigator,
2929
} from 'react-navigation';
3030
31-
const App = StackNavigator({
31+
const App = createStackNavigator({
3232
Home: { screen: HomeScreen },
3333
Profile: { screen: ProfileScreen },
3434
});

0 commit comments

Comments
 (0)