Skip to content

Commit 732b175

Browse files
committed
Bump versions in snack
1 parent 4d9286a commit 732b175

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

website/static/js/snack.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const DEPS_VERSIONS = {
88
],
99
'5': [
1010
'@react-native-community/masked-view@^0.1.1',
11-
'@react-navigation/native@^5.0.1',
12-
'@react-navigation/bottom-tabs@^5.0.1',
13-
'@react-navigation/drawer@^5.0.1',
14-
'@react-navigation/material-bottom-tabs@^5.0.1',
15-
'@react-navigation/material-top-tabs@^5.0.1',
16-
'@react-navigation/native-stack@^5.0.1',
17-
'@react-navigation/stack@^5.0.1',
11+
'@react-navigation/native@^5.0.5',
12+
'@react-navigation/bottom-tabs@^5.0.5',
13+
'@react-navigation/drawer@^5.0.5',
14+
'@react-navigation/material-bottom-tabs@^5.0.5',
15+
'@react-navigation/material-top-tabs@^5.0.5',
16+
'@react-navigation/native-stack@^5.0.5',
17+
'@react-navigation/stack@^5.0.5',
1818
'react-native-gesture-handler@1.5.2',
1919
'react-native-reanimated@1.4.0',
2020
'react-native-safe-area-context@0.6.0',

website/versioned_docs/version-5.x/navigating-without-navigation-prop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If you try to navigate without rendering a navigator or before the navigator fin
8080
8181
For an example, consider the following scenario, you have a screen somewhere in the app, and that screen dispatches a redux action on `useEffect`/`componentDidMount`. You are listening for this action in your middleware and try to perform navigation when you get it. This will throw an error, because by this time, the parent navigator hasn't finished mounting. Parent's `useEffect`/`componentDidMount` is always called **after** child's `useEffect`/`componentDidMount`.
8282
83-
To avoid this, you can keep set a ref to tell you that your app has finished mounting, and check that ref before performing any navigation. To do this, we can use `useEffect` in our root component:
83+
To avoid this, you can set a ref to tell you that your app has finished mounting, and check that ref before performing any navigation. To do this, we can use `useEffect` in our root component:
8484
8585
```js
8686
// App.js

0 commit comments

Comments
 (0)