From 962456beb6ab0c8d5a075e4f268a22faf8b60dbb Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Fri, 19 Jun 2020 19:38:32 +0200 Subject: [PATCH] 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 https://github.com/react-navigation/react-navigation/commit/9c06a92d092af150d653c3a2f7fdccd28090bb14 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. --- packages/stack/src/views/Stack/Card.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/stack/src/views/Stack/Card.tsx b/packages/stack/src/views/Stack/Card.tsx index d02f0acd..fe921612 100755 --- a/packages/stack/src/views/Stack/Card.tsx +++ b/packages/stack/src/views/Stack/Card.tsx @@ -515,6 +515,8 @@ export default class Card extends React.Component { 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} >