[IMPROVE] Set native theme when launching the share extension (#4430)
This commit is contained in:
parent
69e581c301
commit
21fa551674
|
@ -4,7 +4,14 @@ import { NavigationContainer } from '@react-navigation/native';
|
||||||
import { createStackNavigator } from '@react-navigation/stack';
|
import { createStackNavigator } from '@react-navigation/stack';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
|
|
||||||
import { getTheme, initialTheme, newThemeState, subscribeTheme, unsubscribeTheme } from './lib/methods/helpers/theme';
|
import {
|
||||||
|
getTheme,
|
||||||
|
initialTheme,
|
||||||
|
newThemeState,
|
||||||
|
setNativeTheme,
|
||||||
|
subscribeTheme,
|
||||||
|
unsubscribeTheme
|
||||||
|
} from './lib/methods/helpers/theme';
|
||||||
import UserPreferences from './lib/methods/userPreferences';
|
import UserPreferences from './lib/methods/userPreferences';
|
||||||
import Navigation from './lib/navigation/shareNavigation';
|
import Navigation from './lib/navigation/shareNavigation';
|
||||||
import store from './lib/store';
|
import store from './lib/store';
|
||||||
|
@ -106,6 +113,7 @@ class Root extends React.Component<{}, IState> {
|
||||||
fontScale
|
fontScale
|
||||||
};
|
};
|
||||||
this.init();
|
this.init();
|
||||||
|
setNativeTheme(theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
Loading…
Reference in New Issue