Skip to content

Commit 02bbe63

Browse files
authored
Update hello-react-navigation.md
From 3.0, the xplicit app container required for the root navigator.
1 parent 315758b commit 02bbe63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/hello-react-navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Lets start by demonstrating the most common navigator, `createStackNavigator`.
1212

1313
## Creating a stack navigator
1414

15-
`createStackNavigator` is a function that returns a React component. It takes _a route configuration object_ and, optionally, _an options object_ (we omit this below, for now). Because the `createStackNavigator` function returns a React component, we can export it directly from `App.js` to be used as our App's root component.
15+
`createStackNavigator` is a function that returns a React component. It takes _a route configuration object_ and, optionally, _an options object_ (we omit this below, for now). `createAppContainer` is a function that retuns a React component to take as a parameter the React component created by the `createStackNavigator`, and can be directly exported from `App.js` to be used as our App's root component.
1616

1717
```javascript
1818
// In App.js in a new project

0 commit comments

Comments
 (0)