Skip to content

Commit 0559ff1

Browse files
authored
fix(mobile): add translucent status bar (#3420)
* fix(mobile): add translucent status bar * chore(mobile): simplify splash screen configuration
1 parent 5f42bdd commit 0559ff1

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

apps/mobile/app.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
8585
},
8686
googleServicesFile: "./build/google-services.json",
8787
},
88+
androidStatusBar: {
89+
translucent: true,
90+
},
8891
// web: {
8992
// bundler: "metro",
9093
// output: "static",

apps/mobile/src/App.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { StatusBar } from "expo-status-bar"
12
import { View } from "react-native"
23
import Animated, { interpolate, useAnimatedStyle } from "react-native-reanimated"
34
import { RootSiblingParent } from "react-native-root-siblings"
@@ -21,16 +22,19 @@ export function App({ children }: { children: React.ReactNode }) {
2122
],
2223
}))
2324
return (
24-
<View className="flex-1 bg-black">
25-
<Session />
25+
<>
26+
<StatusBar translucent animated />
27+
<View className="flex-1 bg-black">
28+
<Session />
2629

27-
<Animated.View className="flex-1 overflow-hidden" style={style}>
28-
<RootSiblingParent>{children}</RootSiblingParent>
29-
</Animated.View>
30-
{__DEV__ && <DebugButton />}
30+
<Animated.View className="flex-1 overflow-hidden" style={style}>
31+
<RootSiblingParent>{children}</RootSiblingParent>
32+
</Animated.View>
33+
{__DEV__ && <DebugButton />}
3134

32-
<EnvProfileIndicator />
33-
</View>
35+
<EnvProfileIndicator />
36+
</View>
37+
</>
3438
)
3539
}
3640

0 commit comments

Comments
 (0)