Expensify / react-native-live-markdown

Drop-in replacement for React Native's TextInput component with Markdown formatting.
https://www.npmjs.com/package/@expensify/react-native-live-markdown
MIT License
755 stars 55 forks source link

Issue when running pod install #453

Open Lump01 opened 1 month ago

Lump01 commented 1 month ago

I'm getting this error when running pod install and RCT_NEW_ARCH_ENABLED=0 pod install:

[!] Invalid `Podfile` file: 
[!] Invalid `RNLiveMarkdown.podspec` file: undefined method `add_dependency' for Pod:Module.

 #  from $PROJECT_DIR/node_modules/@expensify/react-native-live-markdown/RNLiveMarkdown.podspec:26
 #  -------------------------------------------
 #    if ENV['USE_FRAMEWORKS'] && ENV['RCT_NEW_ARCH_ENABLED']
 >      add_dependency(s, "React-Fabric", :additional_framework_paths => [
 #        "react/renderer/textlayoutmanager/platform/ios",
 #  -------------------------------------------
.

 #  from $PROJECT_DIR/ios/Podfile:12
 #  -------------------------------------------
 >    config = use_native_modules!
 #  
 #  -------------------------------------------

Versions:

"react-native": "0.72.3",
"@expensify/react-native-live-markdown": "0.1.113",
"react": "18.2.0",

The new architecture is not enabled on my project and I also disabled it with the RCT_NEW_ARCH_ENABLED flag in my pod install.

tomekzaw commented 1 week ago

@Lump01 Thanks for opening the issue!

Are you using react-native-live-markdown in a bare React Native project or with Expo?

Lump01 commented 1 week ago

I’m using a bare React Native project.

tomekzaw commented 1 week ago

@Lump01 I just noticed that you're using RN 0.72.3. Currently, react-native-live-markdown supports only RN 0.74. Some older versions support only RN 0.73 and we're about to merge RN 0.75 support later this week.