Use android mode, fix fallback (#2437)
parent
f65bbe36f5
commit
56021ccda5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue