@expensify/react-native-live-markdown 0.1.308 → 0.1.310

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.
@@ -6,10 +6,6 @@ react_native_minor_version = react_native_json['version'].split('.')[1].to_i
6
6
 
7
7
  pods_root = Pod::Config.instance.project_pods_root
8
8
 
9
- worklets_installed = system(%Q[
10
- cd "#{Pod::Config.instance.installation_root}" &&
11
- node -e "require.resolve('react-native-worklets/package.json')" > /dev/null 2>&1
12
- ])
13
9
  react_native_worklets_path = `cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native-worklets/package.json')"`
14
10
  worklets_installed = react_native_worklets_path != ""
15
11
  worklets_package_name = worklets_installed ? 'react-native-worklets' : 'react-native-reanimated'
@@ -18,6 +14,9 @@ react_native_worklets_or_reanimated_node_modules_dir = ENV['REACT_NATIVE_WORKLET
18
14
  File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('#{worklets_package_name}/package.json')"`)
19
15
  react_native_worklets_or_reanimated_node_modules_dir_from_pods_root = Pathname.new(react_native_worklets_or_reanimated_node_modules_dir).relative_path_from(pods_root).to_s
20
16
 
17
+ react_native_react_common_dir = File.join(react_native_node_modules_dir, 'react-native/ReactCommon')
18
+ react_native_react_common_dir_from_pods_root = Pathname.new(react_native_react_common_dir).relative_path_from(pods_root).to_s
19
+
21
20
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
22
21
  folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
23
22
 
@@ -45,6 +44,7 @@ Pod::Spec.new do |s|
45
44
  "HEADER_SEARCH_PATHS" => [
46
45
  "\"$(PODS_ROOT)/#{react_native_worklets_or_reanimated_node_modules_dir_from_pods_root}/apple\"",
47
46
  "\"$(PODS_ROOT)/#{react_native_worklets_or_reanimated_node_modules_dir_from_pods_root}/Common/cpp\"",
47
+ "\"$(PODS_ROOT)/#{react_native_react_common_dir_from_pods_root}\"",
48
48
  ].join(' '),
49
49
  }
50
50
  if worklets_installed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.308",
3
+ "version": "0.1.310",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",