react-native-screens 4.9.0 → 4.9.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.
@@ -16,11 +16,10 @@ import com.facebook.proguard.annotations.DoNotStrip;
16
16
  import com.facebook.react.bridge.ReactApplicationContext;
17
17
  import com.facebook.react.bridge.ReactContextBaseJavaModule;
18
18
  import com.facebook.react.bridge.ReactMethod;
19
- import com.facebook.react.bridge.ReactModuleWithSpec;
20
19
  import com.facebook.react.turbomodule.core.interfaces.TurboModule;
21
20
  import javax.annotation.Nonnull;
22
21
 
23
- public abstract class NativeScreensModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
22
+ public abstract class NativeScreensModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
24
23
  public static final String NAME = "RNSModule";
25
24
 
26
25
  public NativeScreensModuleSpec(ReactApplicationContext reactContext) {
@@ -17,12 +17,6 @@
17
17
 
18
18
  @implementation RNSFullWindowOverlayContainer
19
19
 
20
- // Needed because of this: https://github.com/facebook/react-native/pull/37274
21
- + (void)load
22
- {
23
- [super load];
24
- }
25
-
26
20
  - (instancetype)initWithFrame:(CGRect)frame
27
21
  {
28
22
  if (self = [super initWithFrame:frame]) {
@@ -86,6 +80,12 @@
86
80
  #endif // RCT_NEW_ARCH_ENABLED
87
81
  }
88
82
 
83
+ // Needed because of this: https://github.com/facebook/react-native/pull/37274
84
+ + (void)load
85
+ {
86
+ [super load];
87
+ }
88
+
89
89
  #ifdef RCT_NEW_ARCH_ENABLED
90
90
  - (instancetype)init
91
91
  {
@@ -7,12 +7,15 @@
7
7
  #define RNS_IGNORE_SUPER_CALL_END _Pragma("clang diagnostic pop")
8
8
 
9
9
  #if defined __has_include
10
- #if __has_include( \
11
- <React-RCTAppDelegate/RCTReactNativeFactory.h>) // added in 78
10
+ #if __has_include(<React-RCTAppDelegate/RCTReactNativeFactory.h>) ||\
11
+ __has_include(<React_RCTAppDelegate/RCTReactNativeFactory.h>) // added in 78; underscore is used in dynamic frameworks
12
12
  #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 0
13
13
  #else
14
14
  #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 1
15
15
  #endif
16
+ #else
17
+ #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 \
18
+ 1 // Wild guess, close eyes and hope for the best.
16
19
  #endif
17
20
 
18
21
  #if RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screens",
3
- "version": "4.9.0",
3
+ "version": "4.9.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 ../)",