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:
Wojciech Lewicki
2020-06-19 19:38:32 +02:00
committed by GitHub
parent 1aadc79fb8
commit 962456beb6

View File

@@ -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}