react-native-reanimated 3.13.0 → 3.14.0-nightly-20240704-e051a477c

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.
@@ -77,6 +77,10 @@ public class ScreensHelper {
77
77
  return isInstanceOf(maybeView, "ScreensCoordinatorLayout");
78
78
  }
79
79
 
80
+ public static boolean isScreenFragment(Object maybeView) {
81
+ return isInstanceOf(maybeView, "ScreenFragment");
82
+ }
83
+
80
84
  private static boolean isInstanceOf(Object maybeView, String className) {
81
85
  return maybeView != null && maybeView.getClass().getSimpleName().equals(className);
82
86
  }
@@ -47,6 +47,9 @@ public class TabNavigatorObserver {
47
47
  private final List<View> nextTransition = new ArrayList<>();
48
48
 
49
49
  public FragmentLifecycleCallbacks(Fragment fragment) {
50
+ if (!ScreensHelper.isScreenFragment(fragment)) {
51
+ return;
52
+ }
50
53
  try {
51
54
  Class<?> screenFragmentClass = fragment.getClass();
52
55
  getScreen = screenFragmentClass.getMethod("getScreen");
@@ -88,6 +91,9 @@ public class TabNavigatorObserver {
88
91
  }
89
92
 
90
93
  private void onFragmentUpdate(Fragment fragment, boolean isAttaching) {
94
+ if (!ScreensHelper.isScreenFragment(fragment)) {
95
+ return;
96
+ }
91
97
  try {
92
98
  View screen = (View) getScreen.invoke(fragment);
93
99
  if (getActivityState.invoke(screen) == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-reanimated",
3
- "version": "3.13.0",
3
+ "version": "3.14.0-nightly-20240704-e051a477c",
4
4
  "description": "More powerful alternative to Animated library for React Native.",
5
5
  "scripts": {
6
6
  "test": "yarn format:js && yarn lint:js && yarn test:unit",
@@ -4,4 +4,4 @@
4
4
  * with the version used to build the native part of the library in runtime.
5
5
  * Remember to keep this in sync with the version declared in `package.json`
6
6
  */
7
- export const jsVersion = '3.13.0';
7
+ export const jsVersion = '3.14.0-nightly-20240704-e051a477c';