@onekeyfe/react-native-scroll-guard 3.0.86 → 3.0.88

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.
@@ -15,7 +15,7 @@ namespace margelo::nitro::scrollguard {
15
15
  using namespace facebook;
16
16
 
17
17
  /**
18
- * The C++ JNI bridge between the C++ enum "ScrollGuardDirection" and the the Kotlin enum "ScrollGuardDirection".
18
+ * The C++ JNI bridge between the C++ enum "ScrollGuardDirection" and the Kotlin enum "ScrollGuardDirection".
19
19
  */
20
20
  struct JScrollGuardDirection final: public jni::JavaClass<JScrollGuardDirection> {
21
21
  public:
@@ -10,6 +10,7 @@ package com.margelo.nitro.scrollguard
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
13
14
  import com.margelo.nitro.core.HybridObject
14
15
  import com.margelo.nitro.views.HybridView
15
16
 
@@ -45,6 +46,7 @@ abstract class HybridScrollGuardSpec: HybridView() {
45
46
  @Keep
46
47
  protected open class CxxPart(javaPart: HybridScrollGuardSpec): HybridObject.CxxPart(javaPart) {
47
48
  // C++ JHybridScrollGuardSpec::CxxPart::initHybrid(...)
49
+ @FastNative
48
50
  external override fun initHybrid(): HybridData
49
51
  }
50
52
  override fun createCxxPart(): CxxPart {
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
56
56
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57
57
  # Enables stricter modular headers
58
58
  "DEFINES_MODULE" => "YES",
59
+ # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60
+ "SWIFT_INSTALL_OBJC_HEADER" => "NO",
59
61
  })
60
62
  end
@@ -57,7 +57,7 @@ namespace margelo::nitro::scrollguard::views {
57
57
 
58
58
  HybridScrollGuardComponentDescriptor::HybridScrollGuardComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
59
59
  : ConcreteComponentDescriptor(parameters,
60
- react::RawPropsParser(/* enableJsiParser */ true)) {}
60
+ react::RawPropsParser()) {}
61
61
 
62
62
  std::shared_ptr<const react::Props> HybridScrollGuardComponentDescriptor::cloneProps(const react::PropsParserContext& context,
63
63
  const std::shared_ptr<const react::Props>& props,
@@ -15,7 +15,7 @@ namespace margelo::nitro::scrollguard {
15
15
  using namespace facebook;
16
16
 
17
17
  /**
18
- * The C++ JNI bridge between the C++ enum "ScrollGuardDirection" and the the Kotlin enum "ScrollGuardDirection".
18
+ * The C++ JNI bridge between the C++ enum "ScrollGuardDirection" and the Kotlin enum "ScrollGuardDirection".
19
19
  */
20
20
  struct JScrollGuardDirection final: public jni::JavaClass<JScrollGuardDirection> {
21
21
  public:
@@ -10,6 +10,7 @@ package com.margelo.nitro.scrollguard
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
13
14
  import com.margelo.nitro.core.HybridObject
14
15
  import com.margelo.nitro.views.HybridView
15
16
 
@@ -45,6 +46,7 @@ abstract class HybridScrollGuardSpec: HybridView() {
45
46
  @Keep
46
47
  protected open class CxxPart(javaPart: HybridScrollGuardSpec): HybridObject.CxxPart(javaPart) {
47
48
  // C++ JHybridScrollGuardSpec::CxxPart::initHybrid(...)
49
+ @FastNative
48
50
  external override fun initHybrid(): HybridData
49
51
  }
50
52
  override fun createCxxPart(): CxxPart {
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
56
56
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57
57
  # Enables stricter modular headers
58
58
  "DEFINES_MODULE" => "YES",
59
+ # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60
+ "SWIFT_INSTALL_OBJC_HEADER" => "NO",
59
61
  })
60
62
  end
@@ -57,7 +57,7 @@ namespace margelo::nitro::scrollguard::views {
57
57
 
58
58
  HybridScrollGuardComponentDescriptor::HybridScrollGuardComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
59
59
  : ConcreteComponentDescriptor(parameters,
60
- react::RawPropsParser(/* enableJsiParser */ true)) {}
60
+ react::RawPropsParser()) {}
61
61
 
62
62
  std::shared_ptr<const react::Props> HybridScrollGuardComponentDescriptor::cloneProps(const react::PropsParserContext& context,
63
63
  const std::shared_ptr<const react::Props>& props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-scroll-guard",
3
- "version": "3.0.86",
3
+ "version": "3.0.88",
4
4
  "description": "A native view wrapper that prevents parent scrollable containers (PagerView/ViewPager2) from intercepting child scroll gestures",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -62,17 +62,17 @@
62
62
  "devDependencies": {
63
63
  "@react-native/babel-preset": "0.83.0",
64
64
  "del-cli": "^6.0.0",
65
- "nitrogen": "0.35.2",
65
+ "nitrogen": "0.36.5",
66
66
  "react": "19.2.0",
67
67
  "react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
68
68
  "react-native-builder-bob": "^0.40.13",
69
- "react-native-nitro-modules": "0.35.2",
69
+ "react-native-nitro-modules": "0.36.5",
70
70
  "typescript": "^5.9.2"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "*",
74
74
  "react-native": "*",
75
- "react-native-nitro-modules": "0.35.2"
75
+ "react-native-nitro-modules": "0.36.5"
76
76
  },
77
77
  "packageManager": "yarn@4.11.0",
78
78
  "react-native-builder-bob": {