From a607980840af66b0e386ec3a5b9434bb80f4ba23 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Tue, 16 Aug 2022 17:20:28 -0300 Subject: [PATCH] [IMPROVE] Set native theme when launching the share extension (#4430) --- app/share.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/share.tsx b/app/share.tsx index 7c693391..d8c71214 100644 --- a/app/share.tsx +++ b/app/share.tsx @@ -4,7 +4,14 @@ import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; 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 Navigation from './lib/navigation/shareNavigation'; import store from './lib/store'; @@ -106,6 +113,7 @@ class Root extends React.Component<{}, IState> { fontScale }; this.init(); + setNativeTheme(theme); } componentDidMount() {