React Native: Unable to import React headers after updating to 0.60

前端 未结 2 578
逝去的感伤
逝去的感伤 2020-12-22 11:56

After updating to React Native 0.60 the header linking does no longer work.

I\'m having problems linking from the React library during buil

相关标签:
2条回答
  • 2020-12-22 12:27

    It took me 3 hours. Finally I found the solution:

    Use specific version 1.1.0 by running the command:

    npm install react-native-image-resizer@1.1.0  
    

    Then run the command:

    cd ios && pod install 
    
    0 讨论(0)
  • 2020-12-22 12:38

    There were many changes in React Native 0.60, one of the main ones is that React modules are now packaged using CocoaPods, which replaces header linking.

    I recommend you generate a new project in 0.60+ and check out its project structure (mainly the Podfile). You can also use the upgrade helper to see what's changed.

    0 讨论(0)
提交回复
热议问题