@expensify/react-native-live-markdown 0.1.130 → 0.1.132

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 @@ Pod::Spec.new do |s|
15
15
  s.license = package["license"]
16
16
  s.authors = package["author"]
17
17
 
18
- s.platforms = { :ios => "11.0" }
18
+ s.platforms = { :ios => "11.0", :visionos => "1.0" }
19
19
  s.source = { :git => "https://github.com/expensify/react-native-live-markdown.git", :tag => "#{s.version}" }
20
20
 
21
21
  s.source_files = "ios/**/*.{h,m,mm}"
@@ -52,21 +52,10 @@ def resolveReactNativeDirectory() {
52
52
  return file(reactNativeLocation)
53
53
  }
54
54
 
55
- // monorepo workaround
56
- // react-native can be hoisted or in project's own node_modules
57
- def reactNativeFromProjectNodeModules = file("${rootProject.projectDir}/../node_modules/react-native")
58
- if (reactNativeFromProjectNodeModules.exists()) {
59
- return reactNativeFromProjectNodeModules
60
- }
61
-
62
- def reactNativeFromLiveMarkdownMonorepo = file("${projectDir}/../../../node_modules/react-native")
63
- if (reactNativeFromLiveMarkdownMonorepo.exists()) {
64
- return reactNativeFromLiveMarkdownMonorepo
65
- }
66
-
67
- def reactNativeFromNodeModulesWithLiveMarkdown = file("${projectDir}/../../react-native")
68
- if (reactNativeFromNodeModulesWithLiveMarkdown.exists()) {
69
- return reactNativeFromNodeModulesWithLiveMarkdown
55
+ // Fallback to node resolver for custom directory structures like monorepos.
56
+ def reactNativePackage = file(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim())
57
+ if (reactNativePackage.exists()) {
58
+ return reactNativePackage.parentFile
70
59
  }
71
60
 
72
61
  throw new GradleException("[react-native-live-markdown] Unable to resolve react-native location in node_modules. Your app should define `REACT_NATIVE_NODE_MODULES_DIR` extension property in `app/build.gradle` with a path to react-native in node_modules.")
@@ -1,3 +1,5 @@
1
+ #import <UIKit/UIKit.h>
2
+
1
3
  #ifdef RCT_NEW_ARCH_ENABLED
2
4
  #import <react/renderer/components/RNLiveMarkdownSpec/Props.h>
3
5
  #endif /* RCT_NEW_ARCH_ENABLED */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.130",
3
+ "version": "0.1.132",
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",