@rn-org/react-native-thread 0.8.0 → 0.8.1

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.
@@ -18,6 +18,7 @@ Pod::Spec.new do |s|
18
18
 
19
19
  s.pod_target_xcconfig = {
20
20
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
21
+ "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/hermes-engine/destroot/include $(PODS_CONFIGURATION_BUILD_DIR)/hermes-engine/destroot/include",
21
22
  }
22
23
 
23
24
  install_modules_dependencies(s)
@@ -7,6 +7,15 @@ find_package(fbjni REQUIRED CONFIG)
7
7
  find_package(ReactAndroid REQUIRED CONFIG)
8
8
  find_package(hermes-engine REQUIRED CONFIG)
9
9
 
10
+ # RN 0.71+ renamed the hermes target from hermesvm to libhermes
11
+ if(TARGET hermes-engine::libhermes)
12
+ set(HERMES_TARGET hermes-engine::libhermes)
13
+ elseif(TARGET hermes-engine::hermesvm)
14
+ set(HERMES_TARGET hermes-engine::hermesvm)
15
+ else()
16
+ message(FATAL_ERROR "Neither hermes-engine::libhermes nor hermes-engine::hermesvm target found")
17
+ endif()
18
+
10
19
  add_library(react_native_thread SHARED
11
20
  HermesThreadEngine.cpp
12
21
  )
@@ -18,7 +27,7 @@ target_include_directories(react_native_thread PRIVATE
18
27
  target_link_libraries(react_native_thread
19
28
  fbjni::fbjni
20
29
  ReactAndroid::jsi
21
- hermes-engine::hermesvm
30
+ ${HERMES_TARGET}
22
31
  android
23
32
  log
24
33
  )
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@rn-org/react-native-thread",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Run JavaScript on real background threads in React Native — no Workers, no Worklets. Uses JavaScriptCore on iOS and Mozilla Rhino on Android. Built as a New Architecture TurboModule.",
5
5
  "main": "./lib/module/index.js",
6
+ "react-native": "./src/index.tsx",
6
7
  "types": "./lib/typescript/src/index.d.ts",
7
8
  "exports": {
8
9
  ".": {
10
+ "react-native": "./src/index.tsx",
9
11
  "source": "./src/index.tsx",
10
12
  "types": "./lib/typescript/src/index.d.ts",
11
13
  "default": "./lib/module/index.js"