@expensify/react-native-live-markdown 0.1.309 → 0.1.311

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.
package/README.md CHANGED
@@ -188,17 +188,18 @@ Currently, `react-native-live-markdown` supports only [ExpensiMark](https://gith
188
188
 
189
189
  `react-native-live-markdown` supports only latest React Native minor releases with the New Architecture enabled.
190
190
 
191
- | @expensify/react-native-live-markdown | 0.73 | 0.74 | 0.75 | 0.76 | 0.77 | 0.78 | 0.79 | 0.80 |
192
- | :-----------------------------------: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
193
- | 0.1.297+ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
194
- | 0.1.260 – 0.1.296 | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
195
- | 0.1.256 – 0.1.259 | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
196
- | 0.1.248 – 0.1.255 | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
197
- | 0.1.235 – 0.1.247 | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |
198
- | 0.1.141 – 0.1.234 | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
199
- | 0.1.129 – 0.1.140 | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
200
- | 0.1.122 – 0.1.128 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
201
- | 0.1.15 – 0.1.121 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
191
+ | @expensify/react-native-live-markdown | 0.73 | 0.74 | 0.75 | 0.76 | 0.77 | 0.78 | 0.79 | 0.80 | 0.81 |
192
+ | :-----------------------------------: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
193
+ | 0.1.304+ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
194
+ | 0.1.297 – 0.1.303 | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
195
+ | 0.1.260 – 0.1.296 | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
196
+ | 0.1.256 – 0.1.259 | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
197
+ | 0.1.248 – 0.1.255 | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
198
+ | 0.1.235 – 0.1.247 | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
199
+ | 0.1.141 – 0.1.234 | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
200
+ | 0.1.129 – 0.1.140 | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
201
+ | 0.1.122 – 0.1.128 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
202
+ | 0.1.15 – 0.1.121 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
202
203
 
203
204
  ## License
204
205
 
@@ -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.309",
3
+ "version": "0.1.311",
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",