fix(mobile): add translucent status bar (#3420)

* fix(mobile): add translucent status bar

* chore(mobile): simplify splash screen configuration
This commit is contained in:
Whitewater 2025-04-07 12:41:40 +09:00 committed by GitHub
parent 5f42bdd9c7
commit 0559ff1846
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 8 deletions

View File

@ -85,6 +85,9 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
},
googleServicesFile: "./build/google-services.json",
},
androidStatusBar: {
translucent: true,
},
// web: {
// bundler: "metro",
// output: "static",

View File

@ -1,3 +1,4 @@
import { StatusBar } from "expo-status-bar"
import { View } from "react-native"
import Animated, { interpolate, useAnimatedStyle } from "react-native-reanimated"
import { RootSiblingParent } from "react-native-root-siblings"
@ -21,16 +22,19 @@ export function App({ children }: { children: React.ReactNode }) {
],
}))
return (
<View className="flex-1 bg-black">
<Session />
<>
<StatusBar translucent animated />
<View className="flex-1 bg-black">
<Session />
<Animated.View className="flex-1 overflow-hidden" style={style}>
<RootSiblingParent>{children}</RootSiblingParent>
</Animated.View>
{__DEV__ && <DebugButton />}
<Animated.View className="flex-1 overflow-hidden" style={style}>
<RootSiblingParent>{children}</RootSiblingParent>
</Animated.View>
{__DEV__ && <DebugButton />}
<EnvProfileIndicator />
</View>
<EnvProfileIndicator />
</View>
</>
)
}