@react-native-ohos/react-native-reanimated 3.18.1-rc.3 → 3.18.1-rc.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  name: '@react-native-ohos/react-native-reanimated',
3
- version: '3.18.1-rc.3',
3
+ version: '3.18.1-rc.4',
4
4
  description: "",
5
5
  type: 'module',
6
6
  main: 'index.ets',
@@ -28,6 +28,9 @@ jsi::Value installTurboModule(facebook::jsi::Runtime &rt, react::TurboModule &tu
28
28
  const facebook::jsi::Value *args, size_t count)
29
29
  {
30
30
  auto self = static_cast<ReanimatedModule *>(&turboModule);
31
+ if (self == nullptr) {
32
+ return facebook::jsi::Value::undefined();
33
+ }
31
34
  self->installTurboModule(rt);
32
35
  return facebook::jsi::Value(true);
33
36
  }
@@ -24,6 +24,9 @@ jsi::Value installTurboModule(facebook::jsi::Runtime &rt, react::TurboModule &tu
24
24
  }
25
25
 
26
26
  std::string valueUnpackerCode = args[0].getString(rt).utf8(rt);
27
+ if (self == nullptr) {
28
+ return facebook::jsi::Value::undefined();
29
+ }
27
30
  self->installTurboModule(rt, valueUnpackerCode);
28
31
  return facebook::jsi::Value(true);
29
32
  }
Binary file
package/package.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "alias": "react-native-reanimated",
5
5
  "redirectInternalImports": true
6
6
  },
7
- "version": "3.18.1-rc.3",
7
+ "react-native-harmony": { "oh-package-name": "react_native_ohos_reanimated" },
8
+ "version": "3.18.1-rc.4",
8
9
  "description": "",
9
10
  "main": "lib/index.js",
10
11
  "scripts": {