Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 5917cb8

Browse files
committed
Backing out ThemeContext usage to avoid breaking changes
Maintains compatibility with React Navigation 3.11 (and earlier)
1 parent 1e6a8e2 commit 5917cb8

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/create-redux-container.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from 'react-navigation';
1111

1212
import * as React from 'react';
13-
import { ThemeProvider, NavigationProvider } from 'react-navigation';
13+
import { NavigationProvider } from 'react-navigation';
1414

1515
import {
1616
initializeListeners,
@@ -88,14 +88,12 @@ function createReduxContainer<
8888
this.getCurrentNavigation,
8989
);
9090
return (
91-
<ThemeProvider value={this.theme}>
92-
<NavigationProvider value={this.currentNavProp}>
93-
<Navigator
94-
{...props}
95-
navigation={this.currentNavProp}
96-
/>
97-
</NavigationProvider>
98-
</ThemeProvider>
91+
<NavigationProvider value={this.currentNavProp}>
92+
<Navigator
93+
{...props}
94+
navigation={this.currentNavProp}
95+
/>
96+
</NavigationProvider>
9997
);
10098
}
10199

0 commit comments

Comments
 (0)