Fix android bottom
This commit is contained in:
parent
f1a2db1141
commit
27f5ad016b
@ -3,6 +3,6 @@
|
|||||||
<item name="android:windowBackground">#000000</item>
|
<item name="android:windowBackground">#000000</item>
|
||||||
<item name="android:textColor">#000000</item>
|
<item name="android:textColor">#000000</item>
|
||||||
<item name="android:windowTranslucentStatus">true</item>
|
<item name="android:windowTranslucentStatus">true</item>
|
||||||
<item name="android:windowTranslucentNavigation">true</item>
|
<item name="android:windowTranslucentNavigation">false</item>
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -25,6 +25,15 @@ Navigation.setDefaultOptions({
|
|||||||
visible: true,
|
visible: true,
|
||||||
style: 'dark'
|
style: 'dark'
|
||||||
},
|
},
|
||||||
|
animations: {
|
||||||
|
setRoot: {
|
||||||
|
alpha: {
|
||||||
|
duration: 500,
|
||||||
|
from: 0,
|
||||||
|
to: 1,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Navigation.registerComponent('Splash', () => gestureHandlerRootHOC(Splash), () => Splash);
|
Navigation.registerComponent('Splash', () => gestureHandlerRootHOC(Splash), () => Splash);
|
||||||
|
@ -3,11 +3,15 @@ import StaticSafeAreaInsets from "react-native-static-safe-area-insets";
|
|||||||
|
|
||||||
export const CONTENT_SPACING = 15;
|
export const CONTENT_SPACING = 15;
|
||||||
|
|
||||||
|
const SAFE_BOTTOM = Platform.select({
|
||||||
|
ios: StaticSafeAreaInsets.safeAreaInsetsBottom
|
||||||
|
}) ?? 0
|
||||||
|
|
||||||
export const SAFE_AREA_PADDING = {
|
export const SAFE_AREA_PADDING = {
|
||||||
paddingLeft: StaticSafeAreaInsets.safeAreaInsetsLeft + CONTENT_SPACING,
|
paddingLeft: StaticSafeAreaInsets.safeAreaInsetsLeft + CONTENT_SPACING,
|
||||||
paddingTop: StaticSafeAreaInsets.safeAreaInsetsTop + CONTENT_SPACING,
|
paddingTop: StaticSafeAreaInsets.safeAreaInsetsTop + CONTENT_SPACING,
|
||||||
paddingRight: StaticSafeAreaInsets.safeAreaInsetsRight + CONTENT_SPACING,
|
paddingRight: StaticSafeAreaInsets.safeAreaInsetsRight + CONTENT_SPACING,
|
||||||
paddingBottom: StaticSafeAreaInsets.safeAreaInsetsBottom + CONTENT_SPACING
|
paddingBottom: SAFE_BOTTOM + CONTENT_SPACING
|
||||||
}
|
}
|
||||||
|
|
||||||
// whether to use takeSnapshot() instead of takePhoto() on Android
|
// whether to use takeSnapshot() instead of takePhoto() on Android
|
||||||
|
Loading…
Reference in New Issue
Block a user