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

Commit 9c959b9

Browse files
committed
Reintroduce ThemeContext
1 parent 56d510b commit 9c959b9

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/create-redux-container.js

Lines changed: 9 additions & 7 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 { NavigationProvider } from 'react-navigation';
13+
import { ThemeContext, NavigationProvider } from 'react-navigation';
1414

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

0 commit comments

Comments
 (0)