Skip to content

Commit ce11346

Browse files
committed
Add docs for native stack
1 parent a2e7564 commit ce11346

File tree

4 files changed

+380
-25
lines changed

4 files changed

+380
-25
lines changed

src/SnackHelpers.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ const DEPS_VERSIONS = {
3838
'react-native-safe-area-context@*',
3939
'react-native-screens@*',
4040
'react-native-tab-view@^3.0.0',
41-
"@react-navigation/bottom-tabs@6.0.0-next.10",
42-
"@react-navigation/devtools@6.0.0-next.7",
43-
"@react-navigation/drawer@6.0.0-next.9",
44-
"@react-navigation/elements@1.0.0-next.9",
45-
"@react-navigation/material-bottom-tabs@6.0.0-next.7",
46-
"@react-navigation/material-top-tabs@6.0.0-next.8",
47-
"@react-navigation/native@6.0.0-next.7",
48-
"@react-navigation/stack@6.0.0-next.15",
41+
'@react-navigation/bottom-tabs@6.0.0-next.12',
42+
'@react-navigation/drawer@6.0.0-next.11',
43+
'@react-navigation/elements@1.0.0-next.11',
44+
'@react-navigation/material-bottom-tabs@6.0.0-next.9',
45+
'@react-navigation/material-top-tabs@6.0.0-next.10',
46+
'@react-navigation/native-stack@6.0.0-next.1',
47+
'@react-navigation/native@6.0.0-next.9',
48+
'@react-navigation/stack@6.0.0-next.19',
4949
],
5050
next: [],
5151
};

static/examples/6.x/simple-native-stack.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import * as React from 'react';
22
import { Button, View } from 'react-native';
33
import { NavigationContainer } from '@react-navigation/native';
4-
import { enableScreens } from 'react-native-screens';
5-
import { createNativeStackNavigator } from 'react-native-screens/native-stack';
6-
7-
enableScreens();
4+
import { createNativeStackNavigator } from '@react-navigation/native-stack';
85

96
function HomeScreen({ navigation }) {
107
return (

0 commit comments

Comments
 (0)