Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
f6d6e65
fix: typos in docs
shubh73 Aug 9, 2024
3967283
[autofix.ci] apply automated fixes
autofix-ci[bot] Aug 9, 2024
eaff7b4
Document navigateDeprecated
satya164 Aug 9, 2024
a362e27
Remove redundant tab and drawer navigation guides
satya164 Aug 9, 2024
ee88dc5
Add ability specify tabs in codeblock metadata
satya164 Aug 9, 2024
8c170f0
Update custom tab bar example
satya164 Aug 9, 2024
2924310
Move footer to homepage only
satya164 Aug 9, 2024
c26e079
Increase content width
satya164 Aug 9, 2024
904f916
docs: Fixed swapped button titles (#1361)
stanleyoos Aug 12, 2024
817ac9d
Update custom navigator section in upgrade guide
satya164 Aug 15, 2024
da171e9
docs: add links in Configuring TypeScript section (#1368)
stanleyoos Aug 28, 2024
b5c164a
docs: Updated references to React documentation (#1362)
stanleyoos Aug 28, 2024
8b16e54
Tweak description for direction prop
satya164 Aug 28, 2024
924bfe5
Cache version info for offline work
satya164 Aug 29, 2024
39cc108
Add an example for direction prop
satya164 Aug 29, 2024
0cfb3c1
Respect user's preferred color scheme (#1375)
xoyseau Oct 10, 2024
1c41d5d
Document that native-stack now supports preload
satya164 Oct 11, 2024
7bf17c6
Document updated Expo Go requirement
satya164 Oct 11, 2024
04b71e1
Mention React Native Paper
satya164 Oct 22, 2024
a809b9a
Document logger devtool
satya164 Oct 27, 2024
24fc26d
Mention screens 4 requirement in upgrade guide
satya164 Oct 27, 2024
f0d2b0d
Fix typo in `configuring-links.md` (#1377)
szymonrybczak Oct 30, 2024
747f57b
Document sceneContainerStyle removal
satya164 Oct 31, 2024
391e741
Update docs for tab view
satya164 Nov 2, 2024
6ef2e9c
Add react-native-bottom-tabs to community libraries (#1376)
okwasniewski Nov 4, 2024
8515aba
mark 7.x as stable (#1380)
satya164 Nov 6, 2024
3a1a264
fix links in blog post
satya164 Nov 6, 2024
cb530d0
Document ESM changes in upgrade guide
satya164 Nov 7, 2024
aca9633
Fix tab view changes in upgrade guide
satya164 Nov 7, 2024
4e8a980
fix typo
satya164 Nov 7, 2024
0860cd7
Docusaurus 3.6.1 (#1381)
slorber Nov 8, 2024
a5148e7
Upgrade dependencies (#1382)
satya164 Nov 8, 2024
c060d9d
Temporarily downgrade rspack to workaround broken live reload
satya164 Nov 13, 2024
e9e6fbf
Note that route object contains pure functions
satya164 Nov 13, 2024
a9218c6
Update troubleshooting guide
satya164 Nov 14, 2024
2548154
Update native-stack docs
satya164 Nov 14, 2024
dd41523
Fix outdated info about navigate
satya164 Nov 14, 2024
acf2e69
Replace removed `labelVisible` with `displayMode`. (#1384)
KirillTregubov Nov 15, 2024
f385522
Update drawerType from drawer-layout
satya164 Nov 18, 2024
0066589
Document search bar ref
satya164 Nov 19, 2024
908781c
docs: Removed duplicate code from auth-flow example (#1369)
vijaygojiya Nov 22, 2024
bc3af86
Move tip to correct position in auth flow
satya164 Nov 22, 2024
0ba0164
Upgrade react navigation in playground
satya164 Nov 22, 2024
93ce55f
Fix broken anchor links
satya164 Nov 22, 2024
337e1d1
Fix incorrect docs for sceneStyle
satya164 Nov 22, 2024
322e63e
Remove unsupported legacy implementation prop from examples
satya164 Nov 22, 2024
14028ef
Add ability to trigger deploy job manually
satya164 Nov 25, 2024
3f3c551
Add note about TypeScript regarding ESM
satya164 Nov 25, 2024
b9825be
Document merge argument for navigate and popTo
satya164 Nov 26, 2024
7c7a0e1
Remove tabBarIconStyle from material-top-tab-navigator options (#1387)
imranbarbhuiya Nov 26, 2024
f22e377
Fix typo. Closes #1379
satya164 Nov 26, 2024
71e6b60
Update TS guide
satya164 Nov 28, 2024
5c71233
Move labelStyle to options
satya164 Nov 28, 2024
fe293dd
Clarify headerBackground with headerStyle
satya164 Nov 28, 2024
f0db041
Document regular expressions in linking config
satya164 Dec 1, 2024
8f306f0
Document starter template
satya164 Dec 1, 2024
9243144
Document path alias in linking
satya164 Dec 2, 2024
282f700
Tweak the home page
satya164 Dec 4, 2024
50d066d
Update starter template command
satya164 Dec 5, 2024
d68212b
Add note about material bottom tabs
satya164 Dec 5, 2024
551dc0c
Document configureGestureHandler
satya164 Dec 7, 2024
91d75fb
Add warning about accessing route.params.screen
satya164 Dec 11, 2024
96dbf2b
Fix popTo description
satya164 Mar 5, 2025
7cfa3ee
Update docs for layout
satya164 Mar 5, 2025
80122f8
Add blog post about Native Bottom Tabs (#1398)
okwasniewski Mar 9, 2025
e0d0cdb
Document formSheet props and limitiations (#1402)
kligarski Mar 9, 2025
93d28a4
Clarify formSheet flex limitations (#1416)
kligarski Mar 14, 2025
67f04a1
Fix typo in auth-flow.md (#1415)
mchisolm0 Mar 14, 2025
b06ed32
Fix syntax error in tabBarPosition example (#1414)
bkeepers Mar 14, 2025
55413e4
Update custom-navigators.md : Add missing variable (#1412)
ahmed-khlifi Mar 14, 2025
aeb154e
Fix description for headerMode
satya164 Mar 14, 2025
004aa02
Update testing guide (#1404)
kligarski Mar 15, 2025
078d764
Correctly place autoVerify in VIEW intent-filter (#1400)
ncdai Mar 15, 2025
421ede8
Update safe area docs
satya164 Mar 15, 2025
e3cf174
Update docs for getId
satya164 Mar 19, 2025
04d24db
Document the pop option for navigate
satya164 Mar 19, 2025
2137f52
Add a warning about getId with native stack
satya164 Mar 19, 2025
c5f8ff1
Fix typo in title
satya164 Mar 21, 2025
a093c0f
Tweak what should be in params
satya164 Mar 24, 2025
c705baf
Document that state is now frozen
satya164 Mar 25, 2025
73dcc3e
Make not in beforeRemove section a wanrning
satya164 Mar 27, 2025
b47cc8a
Update docs about headerBackButtonDisplayMode and headerBackTitle (#1…
maciekstosio Apr 1, 2025
f0a9f2f
Document useRoutePath hook
satya164 Apr 1, 2025
ea19b92
Document ready event on the ref
satya164 Apr 3, 2025
a9769fe
Update TypeScript docs to include moduleResolution: bundler
satya164 Apr 6, 2025
c19e7f4
Use example instead of mychat
satya164 Apr 6, 2025
651710f
Fix wording
satya164 Apr 6, 2025
272f60a
Update jest configuration for React Navigation
satya164 Apr 8, 2025
c9b658f
docs: add deprecation message to some status/navigation bar related p…
kligarski Apr 9, 2025
53d95be
Fix `:::warning` syntax in server-rendering docs (#1423)
hehex9 Apr 17, 2025
50851c9
Update docs after changes to headerBackTitle (#1422)
maciekstosio Apr 17, 2025
38c5827
Fix typo in import
satya164 Apr 21, 2025
bd0a1e0
Improve authentication flow docs (#1419)
VimDiesel123 Apr 24, 2025
c14e5b1
Improve testing guide
satya164 Apr 24, 2025
d873f16
Tweak custom navigator docs
satya164 Apr 24, 2025
ac7b9d8
Update links in getting started
satya164 Apr 24, 2025
ccc6ee4
Update upgrade guide for tab view
satya164 May 6, 2025
2c44949
Add migration instructions for unmountOnBlur
satya164 May 6, 2025
e62fd2b
Truncate native bottom tabs post
satya164 May 6, 2025
eaf25f8
Fix persistence example for static config
satya164 May 28, 2025
562d3c8
docs: add missing status bar docs (#1432)
kligarski May 30, 2025
561324e
Document backBehavior: fullHistory
satya164 May 30, 2025
4df296a
Document navigation.replaceParams and CommonActions.replaceParams
satya164 May 30, 2025
a73aac9
chore(github): comment out notational pieces of PR template (#1431)
agilgur5 Jun 3, 2025
282d507
fix(contrib): remove duplicated links (#1430)
agilgur5 Jun 3, 2025
d315641
fix(contrib): update links to Issue & PR templates (#1429)
agilgur5 Jun 3, 2025
ffd4dbb
Fix typescript docs for custom navigators
satya164 Jun 4, 2025
b365c95
Mention backBehavior: fullHistory on web docs
satya164 Jun 7, 2025
c0ee739
Document reserved param names
satya164 Jun 11, 2025
280f26a
Improve lifecycle docs
satya164 Jun 15, 2025
da77321
Add links to summaries
satya164 Jun 15, 2025
7f5062f
Remove now-unnecessary gesture handler import
satya164 Jun 16, 2025
bdd2776
Improve custom navigator docs
satya164 Jun 17, 2025
9e3da02
Update getting started guide
satya164 Jun 24, 2025
ac7f3f4
Improve docs for navigator-specific types
satya164 Jun 24, 2025
c4245f8
Improve docs for stale state
satya164 Jun 25, 2025
8f8269b
Update sponsors list
satya164 Jul 10, 2025
ce5c3da
Tweak styling for tabs with single codeblock
satya164 Jul 27, 2025
ec96627
Add Swift AppDelegate setup instructions for deep linking (#1428)
kleviss Jul 27, 2025
ad488f9
Add instructions for universal links on Expo
satya164 Jul 27, 2025
0e004dd
Add a warning about component being rendered for listeners
satya164 Aug 3, 2025
3e067e0
Update autofix.ci
satya164 Aug 3, 2025
880fb24
Remove incorrect override from swift snippets for deep link
satya164 Aug 23, 2025
751781b
Sync iOS language choice
satya164 Aug 23, 2025
e8e3243
update Xcode screenshot for linking
satya164 Aug 23, 2025
99821ab
Remove section about deprecated dynamic links and add example for pus…
satya164 Aug 23, 2025
dab4798
Document that shared element transitions only work on old arch
satya164 Aug 26, 2025
2932f8f
Add react-native-worklets to reanimated installation docs
satya164 Aug 26, 2025
44c6554
Clarify warning on non-serializable values in navigation (#1442)
satya164 Oct 1, 2025
00062f9
Update sponsors
satya164 Oct 4, 2025
4a9cd31
Reorganize community libraries
satya164 Oct 4, 2025
ac42829
Document linking.getStateForAction
satya164 Oct 4, 2025
2f738d7
Document headerLeftItems & headerRightItems
satya164 Oct 21, 2025
3756ebb
Document changesSelectionAsPrimaryAction
satya164 Oct 22, 2025
4624a32
Document that badge is iOS 26+ only
satya164 Oct 22, 2025
627bfcd
Document API for icons
satya164 Oct 22, 2025
5be53a5
Fix typo in sfSymbol
satya164 Oct 23, 2025
9420cdc
Document UNSTABLE_routeNamesChangeBehavior="lastUnhandled"
satya164 Oct 27, 2025
10b39e4
Document UNSTABLE_router prop
satya164 Oct 27, 2025
9e5be57
Document UNSTABLE_routeNamesChangeBehavior in API references
satya164 Oct 27, 2025
8003199
Add docs for native bottom tabs
satya164 Oct 28, 2025
15647ff
Fix links
satya164 Oct 28, 2025
856f63d
Remove incorrect comment
satya164 Oct 28, 2025
f3741d5
Fix typos
satya164 Oct 28, 2025
3937937
Document available options for system item
satya164 Oct 28, 2025
d48e3b4
Document tabBarBlurEffect
satya164 Oct 28, 2025
f915510
Fix typo in icon type
satya164 Oct 28, 2025
9d3be0b
Add information about nested stack and headerShown being unsupported …
kligarski Oct 29, 2025
86d488a
Add videos for native bottom tabs
satya164 Oct 29, 2025
8858eea
Update TypeScript docs for composite navigation props
satya164 Nov 1, 2025
1af38d7
Mention requirements for native tabs
satya164 Nov 4, 2025
fcfe1e1
Update header docs for native tabs
satya164 Nov 5, 2025
e90e9a4
Update docs for native botom tabs
satya164 Nov 5, 2025
ca038ee
Document how to show search bar on the tab bar
satya164 Nov 5, 2025
4c89b03
Tweak getting started
satya164 Nov 5, 2025
d33c1f1
Document that tabBarBadgeStyle is Android only
satya164 Nov 6, 2025
b0c6e30
Update getting started guide
satya164 Nov 6, 2025
bf5e094
Use tabs for Expo vs Community CLI
satya164 Nov 8, 2025
7ccbe8b
Fix broken link
satya164 Nov 8, 2025
d6f44a2
Update Native Stack search bar props (#1445)
kligarski Nov 14, 2025
57cc84b
Tweak examples for params
satya164 Nov 16, 2025
2abb14f
Document headerBackIcon
satya164 Nov 22, 2025
601b914
Update docs for `scrollEdgeEffects`, `headerBlurEffect` (#1447)
kligarski Nov 24, 2025
1066b8e
Add static config examples for remaining snack links
satya164 Nov 25, 2025
ab86cf7
Add a rehype plugin to convert static to dynamic config
satya164 Nov 25, 2025
dbaf921
Verify syntax after transformation
satya164 Nov 25, 2025
e5297a6
Preserve props passed to container when converting to dynamic
satya164 Nov 25, 2025
13a43af
Handle multiple navigators
satya164 Nov 25, 2025
e9eeb0b
Migrate more files to use static2dynamic
satya164 Nov 25, 2025
f0a29a4
Handle groups and multiple navigators
satya164 Nov 25, 2025
7c51206
Preserve video aspect ratio with ffprobe (#1448)
satya164 Nov 25, 2025
8b0512b
Optimize videos
satya164 Nov 25, 2025
4eeb66a
Fade in videos after load
satya164 Nov 25, 2025
d5588b3
Remove log
satya164 Nov 25, 2025
728158a
Add pause button to videos
satya164 Nov 26, 2025
a93ad0f
Rename headerLargeTitle to headerLargeTitleEnabled
satya164 Nov 29, 2025
c951a97
Document useFrameSize
satya164 Dec 1, 2025
4fd427c
Update highlighting for onCreate method for clarity (#1450)
dannyhw Dec 2, 2025
e364fef
Don't show version badge for latest version
satya164 Dec 6, 2025
b92cbc3
Upgrade docusaurus
satya164 Dec 6, 2025
986e82d
Tweak styling
satya164 Dec 6, 2025
633999f
Add blur to the header
satya164 Dec 6, 2025
6059eb9
Tweak blog styling
satya164 Dec 6, 2025
6818589
Fix navbar background in dark theme
satya164 Dec 7, 2025
dd1e8e2
Add list of libraries that integrate with React Navigation
satya164 Dec 8, 2025
22c49e5
Tweak fonts
satya164 Dec 8, 2025
9cbcb05
Load Inter google font
satya164 Dec 9, 2025
10a4e95
Various improvements
satya164 Dec 11, 2025
160e66d
Fix markdown lint errors
satya164 Dec 12, 2025
1d61a16
Update custom navigator docs
satya164 Dec 13, 2025
fcb0390
Fix incorrect line highlight for comments
satya164 Dec 16, 2025
2fc5007
Mention link and button in fundamentals
satya164 Dec 16, 2025
4463430
Document new options in header items
satya164 Dec 17, 2025
ac3fc72
Document bottom accessory
satya164 Dec 17, 2025
7f51314
Update docs for React Navigation 8 (#1451)
satya164 Dec 19, 2025
d3dbaa1
Mention that createXScreen is not a breaking change
satya164 Dec 19, 2025
91bed75
Update upgrade guide for bottom tabs
satya164 Dec 19, 2025
fafeef0
fix: fix highlighting for empty diff lines
satya164 Dec 19, 2025
ac514a7
Mention React Navigation 8 on homepage
satya164 Dec 21, 2025
3a1dbc2
Fix typo in listeners examples
satya164 Dec 22, 2025
a9e7a46
Use One Light and One Dark themes
satya164 Dec 22, 2025
58a8f71
tweak typography and styling
satya164 Dec 22, 2025
0a6b571
Fix right padding in blog posts
satya164 Dec 22, 2025
b1f1394
Tweak typography and use Google Sans
satya164 Dec 23, 2025
dfd312a
Document how history stack works
satya164 Dec 30, 2025
24489f3
Fix broken link
satya164 Dec 30, 2025
d01cce4
Rework bottom tabs guide
satya164 Jan 5, 2026
fce7405
Fix example for unstable_headerLeftItems (#1452)
rilrom Jan 7, 2026
3b7189a
Update SETs documentation (#1453)
bartlomiejbloniarz Jan 7, 2026
34c9286
Changed quick start URL for `react-native-bottom-tabs` (#1454)
imjordanxd Jan 9, 2026
37f31c7
Change default tab bar button from "Pressable" to "PlatformPressable"…
devJudicael Jan 9, 2026
5a9f2f5
Clarify history in nested navigators (#1444)
Z3NTL3 Jan 9, 2026
60e4698
Update grammar for best practices when nesting (#1443)
ic-768 Jan 9, 2026
fd2cc38
Fix typo from 'orderWidth' to 'borderWidth' (#1438)
yash2974 Jan 9, 2026
6ffad3a
Update docs for animationDuration in 6.x (#1437)
kmichalikk Jan 9, 2026
d14fe0c
Update docs for animationDuration in 7.x (#1436)
kmichalikk Jan 9, 2026
09a6320
Fix typo in server-rendering pages (#1426)
yairopro Jan 9, 2026
266b12d
Bump tar from 6.2.0 to 6.2.1 (#1338)
dependabot[bot] Jan 9, 2026
31adf69
Fix ternary typo in `bottom-tab-navigator.md` (#1397)
willemk Jan 9, 2026
4f62ba3
Update navigation-state.md (#1424)
ladp333 Jan 9, 2026
04e3c04
Used by Play 29 (#1399)
isohag Jan 9, 2026
cd13f9a
Add breaking change headerTruncatedBackTitle to the doc (#1391)
Freddy03h Jan 9, 2026
6943a29
Add unique key to custom tab bar item (#1390)
babucarr32 Jan 9, 2026
c5a2b6a
Update screen-tracking docs to include initial route (#1373)
ethanneff Jan 9, 2026
9c5525e
Fix typos
satya164 Jan 9, 2026
6e39532
Merge branch 'main' into fix/docs-typos
satya164 Jan 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions static/examples/5.x/drawer-actions.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react';
import { View, Button, Text } from 'react-native';
import { NavigationContainer, DrawerActions } from '@react-navigation/native';
import {
createDrawerNavigator,
DrawerContentScrollView,
DrawerItemList,
DrawerItem,
DrawerItemList,
} from '@react-navigation/drawer';
import { DrawerActions, NavigationContainer } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

function HomeScreen({ navigation }) {
const jumpToAction = DrawerActions.jumpTo('Profile', { user: 'Satya' });
Expand Down Expand Up @@ -34,7 +33,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/5.x/hidden-components.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Text, View } from 'react-native';

function Demo() {
return (
Expand All @@ -23,8 +22,8 @@ export default function App() {
<Stack.Navigator initialRouteName="Home" headerMode="none">
<Stack.Screen name="Home">
{() => (
<Tab.Navigator initialRouteName="Analitics" tabBar={() => null}>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Navigator initialRouteName="Analytics" tabBar={() => null}>
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/5.x/safe-area-example.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Text } from 'react-native';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';

function Demo() {
Expand All @@ -26,8 +25,8 @@ export default function App() {
<Stack.Navigator initialRouteName="Home" headerMode="none">
<Stack.Screen name="Home">
{() => (
<Tab.Navigator initialRouteName="Analitics" tabBar={() => null}>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Navigator initialRouteName="Analytics" tabBar={() => null}>
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
9 changes: 5 additions & 4 deletions static/examples/5.x/tab-actions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import { View, Button, Text } from 'react-native';
import { NavigationContainer, TabActions } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer, TabActions } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

function HomeScreen({ navigation }) {
const jumpToAction = TabActions.jumpTo('Profile', { user: 'Satya' });
Expand All @@ -21,7 +20,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/5.x/use-safe-area.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Text, View } from 'react-native';
import { SafeAreaProvider, useSafeArea } from 'react-native-safe-area-context';

function Demo() {
Expand Down Expand Up @@ -34,8 +33,8 @@ export default function App() {
<Stack.Navigator initialRouteName="Home" headerMode="none">
<Stack.Screen name="Home">
{() => (
<Tab.Navigator initialRouteName="Analitics" tabBar={() => null}>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Navigator initialRouteName="Analytics" tabBar={() => null}>
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
11 changes: 6 additions & 5 deletions static/examples/6.x/drawer-actions.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react';
import { View, Button, Text } from 'react-native';
import { NavigationContainer, DrawerActions } from '@react-navigation/native';
import {
createDrawerNavigator,
DrawerContentScrollView,
DrawerItemList,
DrawerItem,
DrawerItemList,
} from '@react-navigation/drawer';
import { DrawerActions, NavigationContainer } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

function HomeScreen({ navigation }) {
const jumpToAction = DrawerActions.jumpTo('Profile', { user: 'Satya' });
Expand Down Expand Up @@ -34,7 +33,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/6.x/hidden-components.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Text, View } from 'react-native';

function Demo() {
return (
Expand All @@ -27,11 +26,11 @@ export default function App() {
<Stack.Screen name="Home">
{() => (
<Tab.Navigator
initialRouteName="Analitics"
initialRouteName="Analytics"
tabBar={() => null}
screenOptions={{ headerShown: false }}
>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/6.x/safe-area-example.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Text, View } from 'react-native';
import {
SafeAreaProvider,
useSafeAreaInsets,
Expand Down Expand Up @@ -43,11 +42,11 @@ export default function App() {
<Stack.Screen name="Home">
{() => (
<Tab.Navigator
initialRouteName="Analitics"
initialRouteName="Analytics"
tabBar={() => null}
screenOptions={{ headerShown: false }}
>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
9 changes: 5 additions & 4 deletions static/examples/6.x/tab-actions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import { View, Button, Text } from 'react-native';
import { NavigationContainer, TabActions } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer, TabActions } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

function HomeScreen({ navigation }) {
const jumpToAction = TabActions.jumpTo('Profile', { user: 'Satya' });
Expand All @@ -21,7 +20,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
9 changes: 4 additions & 5 deletions static/examples/6.x/use-safe-area.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Text, View } from 'react-native';
import { SafeAreaProvider, useSafeArea } from 'react-native-safe-area-context';

function Demo() {
Expand Down Expand Up @@ -38,11 +37,11 @@ export default function App() {
<Stack.Screen name="Home">
{() => (
<Tab.Navigator
initialRouteName="Analitics"
initialRouteName="Analytics"
tabBar={() => null}
screenOptions={{ headerShown: false }}
>
<Tab.Screen name="Analitics" component={Demo} />
<Tab.Screen name="Analytics" component={Demo} />
<Tab.Screen name="Profile" component={Demo} />
</Tab.Navigator>
)}
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-5.x/state-persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To be able to persist the [navigation state](navigation-state.md), we can use th
- `onStateChange` - This prop notifies us of any state changes. We can persist the state in this callback.
- `initialState` - This prop allows us to pass an initial state to use for [navigation state](navigation-state.md). We can pass the restored state in this prop.

<samp id="state-persistance" />
<samp id="state-persistence" />

```js
import * as React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-6.x/native-stack-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ Supported values:
- `"none"`
- `"slide"`

On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to appereance animation of the status bar.
On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to the appereance animation of the status bar.

Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-6.x/state-persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To be able to persist the [navigation state](navigation-state.md), we can use th
- `onStateChange` - This prop notifies us of any state changes. We can persist the state in this callback.
- `initialState` - This prop allows us to pass an initial state to use for [navigation state](navigation-state.md). We can pass the restored state in this prop.

<samp id="state-persistance" />
<samp id="state-persistence" />

```js
import * as React from 'react';
Expand Down
4 changes: 3 additions & 1 deletion versioned_docs/version-7.x/drawer-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-7.x/native-stack-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Supported values:
- `"none"`
- `"slide"`

On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to appereance animation of the status bar.
On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to the appereance animation of the status bar.

Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-7.x/screen-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function App() {
</TabItem>
<TabItem value="dynamic" label="Dynamic">

```js name="Screen tracking for anylytics" snack
```js name="Screen tracking for analytics" snack
import * as React from 'react';
import { View } from 'react-native';
// codeblock-focus-start
Expand Down
4 changes: 3 additions & 1 deletion versioned_docs/version-7.x/tab-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
4 changes: 3 additions & 1 deletion versioned_docs/version-8.x/drawer-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-8.x/native-stack-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Supported values:
- `"none"`
- `"slide"`

On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to appereance animation of the status bar.
On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to the appereance animation of the status bar.

Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.

Expand Down
5 changes: 4 additions & 1 deletion versioned_docs/version-8.x/screen-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export default function App() {
ref={navigationRef}
onReady={() => {
routeNameRef.current = navigationRef.current.getCurrentRoute().name;

// Replace the line below to add the tracker from a mobile analytics SDK
await trackScreenView(currentRouteName);
}}
onStateChange={async () => {
const previousRouteName = routeNameRef.current;
Expand All @@ -101,7 +104,7 @@ export default function App() {
</TabItem>
<TabItem value="dynamic" label="Dynamic">

```js name="Screen tracking for anylytics" snack
```js name="Screen tracking for analytics" snack
import * as React from 'react';
import { View } from 'react-native';
// codeblock-focus-start
Expand Down
4 changes: 3 additions & 1 deletion versioned_docs/version-8.x/tab-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function ProfileScreen({ route }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Profile!</Text>
<Text>{route?.params?.user ? route.params.user : 'Noone'}'s profile</Text>
<Text>
{route?.params?.user ? route.params.user : 'No one'}'s profile
</Text>
</View>
);
}
Expand Down