Skip to content

Commit 859f55f

Browse files
committed
Update versions for deps in snack
1 parent 1aa4354 commit 859f55f

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/SnackHelpers.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ const DEPS_VERSIONS = {
1111
'react-native-screens@^2.4.0',
1212
],
1313
'5': [
14-
"@react-native-community/masked-view@0.1.7",
15-
"@react-navigation/bottom-tabs@5.2.4",
16-
"@react-navigation/drawer@5.3.4",
17-
"@react-navigation/material-bottom-tabs@5.1.6",
18-
"@react-navigation/material-top-tabs@5.1.6",
19-
"@react-navigation/native@5.1.3",
20-
"@react-navigation/stack@5.2.6",
21-
"react-native-reanimated@1.7.0",
22-
"react-native-safe-area-context@0.7.3",
23-
"react-native-screens@2.4.0",
14+
'@react-native-community/masked-view@^0.1.7',
15+
'@react-navigation/bottom-tabs@^5.4.2',
16+
'@react-navigation/drawer@^5.7.2',
17+
'@react-navigation/material-bottom-tabs@^5.2.2',
18+
'@react-navigation/material-top-tabs@^5.2.2',
19+
'@react-navigation/native@^5.3.0',
20+
'@react-navigation/stack@^5.3.2',
21+
'react-native-paper@^3.10.1',
22+
'react-native-reanimated@^1.7.0',
23+
'react-native-safe-area-context@^0.7.3',
24+
'react-native-screens@^2.4.0',
25+
'react-native-tab-view@^2.14.0',
2426
],
2527
next: [],
2628
};
@@ -85,7 +87,7 @@ function appendSnackLink() {
8587
return;
8688
}
8789

88-
samples.forEach(samp => {
90+
samples.forEach((samp) => {
8991
let codeBlock = findNearestCodeBlock(samp);
9092

9193
if (!codeBlock) {
@@ -127,7 +129,7 @@ function appendSnackLink() {
127129
// This is used to update links like the following:
128130
// [Full source of what we have built so far](#example/full-screen-modal)
129131
function transformExistingSnackLinks() {
130-
document.querySelectorAll('a[href*="#example/"]').forEach(a => {
132+
document.querySelectorAll('a[href*="#example/"]').forEach((a) => {
131133
let urlParts = a.href.split('#example/');
132134
let templateId = urlParts[urlParts.length - 1];
133135
a.href = getSnackUrl({ templateId });
@@ -141,7 +143,7 @@ export function initializeSnackObservers() {
141143
appendSnackLink();
142144
transformExistingSnackLinks();
143145

144-
mutationObserver = new MutationObserver(mutations => {
146+
mutationObserver = new MutationObserver((mutations) => {
145147
mutations.forEach(appendSnackLink);
146148
mutations.forEach(transformExistingSnackLinks);
147149
});

versioned_docs/version-5.x/screen-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ Similar to `options`, you can also pass a function to `screenOptions`. The funct
8787

8888
### `navigation.setOptions` method
8989

90-
The `navigation` prop has a `setOptions` method that lets you update the options for a screen from within a component. See [navigation prop's docs](navigation.prop.md##setoptions) more details.
90+
The `navigation` prop has a `setOptions` method that lets you update the options for a screen from within a component. See [navigation prop's docs](navigation.prop.md#setoptions) more details.

0 commit comments

Comments
 (0)