Use android mode, fix fallback (#2437)
parent
f65bbe36f5
commit
56021ccda5
|
@ -140,20 +140,13 @@ export function Splash(props: React.PropsWithChildren<Props>) {
|
|||
{platformApiLevel && platformApiLevel <= 25 ? (
|
||||
// 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]}>
|
||||
{props.children}
|
||||
</Animated.View>
|
||||
</>
|
||||
) : (
|
||||
<MaskedView
|
||||
androidRenderingMode="software"
|
||||
style={[StyleSheet.absoluteFillObject]}
|
||||
maskElement={
|
||||
<Animated.View
|
||||
|
|
Loading…
Reference in New Issue