@expensify/react-native-live-markdown 0.1.131 → 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.
- package/android/build.gradle +4 -15
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -52,21 +52,10 @@ def resolveReactNativeDirectory() {
|
|
|
52
52
|
return file(reactNativeLocation)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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.")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-live-markdown",
|
|
3
|
-
"version": "0.1.
|
|
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",
|