Browse Source

Fixed navigation white background

Arnaud Vergnet 1 year ago
parent
commit
65ba27ea26
1 changed files with 9 additions and 6 deletions
  1. 9
    6
      App.js

+ 9
- 6
App.js View File

@@ -18,6 +18,7 @@ import ConnectionManager from "./src/managers/ConnectionManager";
18 18
 import URLHandler from "./src/utils/URLHandler";
19 19
 import {setSafeBounceHeight} from "react-navigation-collapsible";
20 20
 import {enableScreens} from 'react-native-screens';
21
+import {View} from "react-native-animatable";
21 22
 
22 23
 // Native optimizations https://reactnavigation.org/docs/react-native-screens
23 24
 enableScreens();
@@ -190,12 +191,14 @@ export default class App extends React.Component<Props, State> {
190 191
         } else {
191 192
             return (
192 193
                 <PaperProvider theme={this.state.currentTheme}>
193
-                    <NavigationContainer theme={this.state.currentTheme} ref={this.navigatorRef}>
194
-                        <MainNavigator
195
-                            defaultHomeRoute={this.defaultHomeRoute}
196
-                            defaultHomeData={this.defaultHomeData}
197
-                        />
198
-                    </NavigationContainer>
194
+                    <View style={{backgroundColor: ThemeManager.getCurrentTheme().colors.background, flex: 1}}>
195
+                        <NavigationContainer theme={this.state.currentTheme} ref={this.navigatorRef}>
196
+                            <MainNavigator
197
+                                defaultHomeRoute={this.defaultHomeRoute}
198
+                                defaultHomeData={this.defaultHomeData}
199
+                            />
200
+                        </NavigationContainer>
201
+                    </View>
199 202
                 </PaperProvider>
200 203
             );
201 204
         }

Loading…
Cancel
Save