react-native-screens 3.16.0 → 3.17.0

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.
@@ -161,11 +161,11 @@ open class ScreenContainer<T : ScreenFragment>(context: Context?) : ViewGroup(co
161
161
  // `findFragment` method throws IllegalStateException when it fails to resolve appropriate
162
162
  // fragment. It might happen when e.g. React Native is loaded directly in Activity
163
163
  // but some custom fragments are still used. Such use case seems highly unlikely
164
- // so, as for now we let application crash.
164
+ // so, as for now we fallback to activity's FragmentManager in hope for the best.
165
165
  try {
166
166
  FragmentManager.findFragment<Fragment>(rootView).childFragmentManager
167
167
  } catch (ex: IllegalStateException) {
168
- throw IllegalStateException("Failed to find fragment for React Root View")
168
+ context.supportFragmentManager
169
169
  }
170
170
  }
171
171
  }
@@ -8,7 +8,7 @@
8
8
  #import <react/renderer/components/rnscreens/ComponentDescriptors.h>
9
9
  #import <react/renderer/components/rnscreens/Props.h>
10
10
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
11
- #import "RCTFabricComponentsPlugins.h"
11
+ #import <React/RCTFabricComponentsPlugins.h>
12
12
  #else
13
13
  #import <React/RCTTouchHandler.h>
14
14
  #endif // RN_FABRIC_ENABLED
package/ios/RNSScreen.mm CHANGED
@@ -12,7 +12,7 @@
12
12
  #import <react/renderer/components/rnscreens/Props.h>
13
13
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
14
14
  #import <rnscreens/RNSScreenComponentDescriptor.h>
15
- #import "RCTFabricComponentsPlugins.h"
15
+ #import <React/RCTFabricComponentsPlugins.h>
16
16
  #import "RNSConvert.h"
17
17
  #import "RNSScreenViewEvent.h"
18
18
  #else
@@ -5,7 +5,7 @@
5
5
  #import <React/RCTConversions.h>
6
6
  #import <react/renderer/components/rnscreens/ComponentDescriptors.h>
7
7
  #import <react/renderer/components/rnscreens/Props.h>
8
- #import "RCTFabricComponentsPlugins.h"
8
+ #import <React/RCTFabricComponentsPlugins.h>
9
9
  #endif
10
10
 
11
11
  @implementation RNScreensViewController
@@ -5,7 +5,7 @@
5
5
  #ifdef RN_FABRIC_ENABLED
6
6
  #import <react/renderer/components/rnscreens/ComponentDescriptors.h>
7
7
  #import <react/renderer/components/rnscreens/Props.h>
8
- #import "RCTFabricComponentsPlugins.h"
8
+ #import <React/RCTFabricComponentsPlugins.h>
9
9
  #endif
10
10
 
11
11
  @implementation RNScreensContainerNavigationController
@@ -7,7 +7,7 @@
7
7
  #import <react/renderer/components/rnscreens/Props.h>
8
8
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
9
9
 
10
- #import "RCTFabricComponentsPlugins.h"
10
+ #import <React/RCTFabricComponentsPlugins.h>
11
11
 
12
12
  #else
13
13
  #import <React/RCTBridge.h>
@@ -5,7 +5,7 @@
5
5
  #import <react/renderer/components/rnscreens/EventEmitters.h>
6
6
  #import <react/renderer/components/rnscreens/Props.h>
7
7
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
8
- #import "RCTFabricComponentsPlugins.h"
8
+ #import <React/RCTFabricComponentsPlugins.h>
9
9
  #else
10
10
  #import <React/RCTBridge.h>
11
11
  #import <React/RCTImageLoader.h>
@@ -7,7 +7,7 @@
7
7
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
8
8
 
9
9
  #import <React/RCTConversions.h>
10
- #import "RCTFabricComponentsPlugins.h"
10
+ #import <React/RCTFabricComponentsPlugins.h>
11
11
  #endif
12
12
 
13
13
  @implementation RNSScreenStackHeaderSubview
@@ -12,7 +12,7 @@
12
12
  #import <react/renderer/components/rnscreens/EventEmitters.h>
13
13
  #import <react/renderer/components/rnscreens/Props.h>
14
14
  #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
15
- #import "RCTFabricComponentsPlugins.h"
15
+ #import <React/RCTFabricComponentsPlugins.h>
16
16
  #import "RNSConvert.h"
17
17
  #endif
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screens",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "description": "Native navigation primitives for your React Native app.",
5
5
  "scripts": {
6
6
  "check-types": "tsc --noEmit",