Skip to content

Commit 49bdf46

Browse files
docs: update code snippets (#3725)
1 parent 291d9a9 commit 49bdf46

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/guides/08-theming-with-react-navigation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import {
4040
} from '@react-navigation/native';
4141

4242
const { LightTheme, DarkTheme } = adaptNavigationTheme({
43-
light: NavigationDefaultTheme,
44-
dark: NavigationDarkTheme,
43+
reactNavigationLight: NavigationDefaultTheme,
44+
reactNavigationDark: NavigationDarkTheme,
4545
});
4646
```
4747

@@ -159,8 +159,8 @@ import {
159159
import merge from 'deepmerge';
160160

161161
const { LightTheme, DarkTheme } = adaptNavigationTheme({
162-
light: NavigationDefaultTheme,
163-
dark: NavigationDarkTheme,
162+
reactNavigationLight: NavigationDefaultTheme,
163+
reactNavigationDark: NavigationDarkTheme,
164164
});
165165

166166
const CombinedDefaultTheme = merge(MD3DarkTheme, LightTheme);
@@ -194,8 +194,8 @@ const CombinedDarkTheme = {
194194
195195
```js
196196
const { LightTheme, DarkTheme } = adaptNavigationTheme({
197-
light: NavigationDefaultTheme,
198-
dark: NavigationDarkTheme,
197+
reactNavigationLight: NavigationDefaultTheme,
198+
reactNavigationDark: NavigationDarkTheme,
199199
});
200200

201201
const CombinedDefaultTheme = {

0 commit comments

Comments
 (0)