Use android mode, fix fallback (#2437)

zio/stable
Eric Bailey 2024-01-05 13:53:59 -06:00 committed by GitHub
parent f65bbe36f5
commit 56021ccda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -140,20 +140,13 @@ export function Splash(props: React.PropsWithChildren<Props>) {
{platformApiLevel && platformApiLevel <= 25 ? ( {platformApiLevel && platformApiLevel <= 25 ? (
// Use a simple fade on older versions of android (work around a bug) // Use a simple fade on older versions of android (work around a bug)
<> <>
{!isAnimationComplete && (
<View
style={[
StyleSheet.absoluteFillObject,
{backgroundColor: 'white'},
]}
/>
)}
<Animated.View style={[{flex: 1}, appAnimation]}> <Animated.View style={[{flex: 1}, appAnimation]}>
{props.children} {props.children}
</Animated.View> </Animated.View>
</> </>
) : ( ) : (
<MaskedView <MaskedView
androidRenderingMode="software"
style={[StyleSheet.absoluteFillObject]} style={[StyleSheet.absoluteFillObject]}
maskElement={ maskElement={
<Animated.View <Animated.View