Open davidgruebl opened 5 years ago
First of all thanks to everyone involved in building this great component!
When running
react-native link react-native-directed-scrollview
with CocoaPods setup I ran into the following error: "Invariant Violation: requireNativeComponent: “DirectedScrollViewChild” was not found in the UIManager". I saw in the Pods Xcode Project that this lib was missing. I got around it by simply deleting the "ios/Pods" file and runningreact-native link react-native-directed-scrollview
again, so it would link it directly in the main Xcodeproj rather than via the pod file. After that i restored my Podfile. However I'm not exactly sure what's the issue whenreact-native link
uses the pod file. (I did run `pod install and also tried multiple times deleting node_modules, Pods, Podfile.lock, DerivedData) I'm mostly writing this in case anyone runs into the same issue so they know how to work around :) Thanks for your solution. I will summary for anyone who stuck in this step.
- npm install react-native-directed-scrollview
- delete pod folder, pod.lock, build in /ios folder
- react-native link react-native-directed-scrollview (instead of 'react-native link')
- cd ios and pod install
- react-native start -- --reset-cache (in seperate terminal window)
- react-native run-ios (in seperate terminal window) I also recommend using node 10. Notice that: I can only install this lib in version < 0.6 . I still cannot install this lib for react-native >= 0.6 .
First of all thanks to everyone involved in building this great component!
When running
react-native link react-native-directed-scrollview
with CocoaPods setup I ran into the following error: "Invariant Violation: requireNativeComponent: “DirectedScrollViewChild” was not found in the UIManager". I saw in the Pods Xcode Project that this lib was missing. I got around it by simply deleting the "ios/Pods" file and runningreact-native link react-native-directed-scrollview
again, so it would link it directly in the main Xcodeproj rather than via the pod file. After that i restored my Podfile. However I'm not exactly sure what's the issue whenreact-native link
uses the pod file. (I did run `pod install and also tried multiple times deleting node_modules, Pods, Podfile.lock, DerivedData) I'm mostly writing this in case anyone runs into the same issue so they know how to work around :)