tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
406 stars 280 forks source link

RN 0.60+ update error for "React/Core" #380

Closed uyend closed 4 years ago

uyend commented 4 years ago

While updating to React Native 0.60 for the latest version of react-native-intercom (13.0.1) I get this error on pod install.

CocoaPods could not find compatible versions for pod "React/Core":
  In Podfile:
    react-native-intercom (from `../node_modules/react-native-intercom`) was resolved to 13.0.1, which depends on
      React/Core

This is resolved by workaround: grep -rl "s.dependency 'React/Core'" node_modules/ | xargs sed -i '' 's=React/Core=React-Core=g'

But is not ideal. When is react-native-intercom going to be updated to pull in this pod 'React-Core', :path => '../node_modules/react-native/React' as opposed to React/Core ? Or does anyone have a better solution than above? Because everytime node modules gets cleaned I would need to run this command.

Thanks.