react-native-screens 4.26.1 → 4.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -686,12 +686,10 @@ class TabsContainer internal constructor(
|
|
|
686
686
|
.filter { it in tabsModel }
|
|
687
687
|
.toList()
|
|
688
688
|
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
fragmentsWithAttachedUI.first() === selectedTab
|
|
694
|
-
) {
|
|
689
|
+
// We expect at most a single fragment added (detached fragments are not returned from
|
|
690
|
+
// FragmentManager.getFragments call) and it being the currently selected tab.
|
|
691
|
+
val isInUpToDateState = currentFragments.size == 1 && currentFragments.first() === selectedTab
|
|
692
|
+
if (isInUpToDateState) {
|
|
695
693
|
return
|
|
696
694
|
} else if (currentFragments.isEmpty()) {
|
|
697
695
|
applyInitialStateToFragmentManagerSync(selectedTab)
|
package/android/src/main/java/com/swmansion/rnscreens/stack/views/ScreensCoordinatorLayout.kt
CHANGED
|
@@ -88,6 +88,16 @@ internal class ScreensCoordinatorLayout(
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
override fun clearAnimation() {
|
|
92
|
+
// Called when the system aborts a transition (e.g., fast forward/backward navigation).
|
|
93
|
+
// We must reset our manual finalization flags here to ensure our `onAnimationEnd` listener
|
|
94
|
+
// doesn't detach the view that the should be kept alive after navigating back.
|
|
95
|
+
blockFrameworkTransitionFinalization = false
|
|
96
|
+
needsTransitionFinalization = false
|
|
97
|
+
|
|
98
|
+
super.clearAnimation()
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
/**
|
|
92
102
|
* This method implements a workaround for RN's autoFocus functionality. Because of the way
|
|
93
103
|
* autoFocus is implemented it dismisses soft keyboard in fragment transition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-screens",
|
|
3
|
-
"version": "4.26.
|
|
3
|
+
"version": "4.26.2",
|
|
4
4
|
"description": "Native navigation primitives for your React Native app.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"submodules": "git submodule update --init --recursive && (cd react-navigation && yarn && yarn build && cd ../)",
|