mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
fix: fix screen disappearing on Android (#8473)
Added `collapsable={false}` to the View in order for the Android to render screens properly. This issue is most probably similar to 9c06a92d09 but fixes it on Android since the View seems to be removed from a native view hierarchy due to not drawing anything. To see the bug go to https://github.com/software-mansion/react-native-screens/issues/544.
This commit is contained in:
@@ -515,6 +515,8 @@ export default class Card extends React.Component<Props> {
|
||||
customContainerStyle,
|
||||
]}
|
||||
pointerEvents="box-none"
|
||||
// Make sure that this view isn't removed. If this view is removed, our style with animated value won't apply which will cause values to be incorrect
|
||||
collapsable={false}
|
||||
>
|
||||
<PanGestureHandler
|
||||
enabled={layout.width !== 0 && gestureEnabled}
|
||||
|
||||
Reference in New Issue
Block a user