- Removed unused navigation logic from MenuPage.tsx. - Added postinstall script for patch-package in package.json. - Introduced a new patch for @react-navigation/bottom-tabs to fix zIndex and opacity issues on Android. - Updated yarn.lock with new dependencies and versions, including patch-package and others.
19 lines
926 B
Diff
19 lines
926 B
Diff
diff --git a/node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx b/node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx
|
|
index ec0491e..c546b88 100644
|
|
--- a/node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx
|
|
+++ b/node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx
|
|
@@ -318,7 +318,12 @@ export function BottomTabView(props: Props) {
|
|
return (
|
|
<MaybeScreen
|
|
key={route.key}
|
|
- style={[StyleSheet.absoluteFill, { zIndex: isFocused ? 0 : -1 }]}
|
|
+ style={[
|
|
+ StyleSheet.absoluteFill,
|
|
+ Platform.OS === 'android'
|
|
+ ? { opacity: isFocused ? 1 : 0 }
|
|
+ : { zIndex: isFocused ? 0 : -1 },
|
|
+ ]}
|
|
active={activityState}
|
|
enabled={detachInactiveScreens}
|
|
freezeOnBlur={freezeOnBlur}
|