You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed the behavior of active prop to contain 3 options (values):
- 0: Screen is inactive
- 1: Screen is active, but is not visible and is not the first responder, or is transitioning
- 2: Screen is active and on top
Added new prop `shouldUseActivityState` to differentiate between different implementations for other libraries to choose their implementation of the JS side.
'It appears that you are using old version of react-navigation library. Please update @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above to take full advantage of new functionality added to react-native-screens'
120
+
);
121
+
activityState=active!==0 ? 2 : 0;// in the new version, we need one of the screens to have value of 2 after the transition
122
+
}
123
+
return(
124
+
<AnimatedNativeScreen
125
+
{...rest}
126
+
activityState={activityState}
127
+
ref={this.setRef}
128
+
/>
129
+
);
115
130
}else{
116
131
// On RN version below 0.57 we need to wrap screen's children with an
117
132
// additional View because of a bug fixed in react-native/pull/20658 which
0 commit comments