Git Product home page Git Product logo

Comments (1)

ntk0104 avatar ntk0104 commented on June 12, 2024

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 running react-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 when react-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.

  1. npm install react-native-directed-scrollview
  2. delete pod folder, pod.lock, build in /ios folder
  3. react-native link react-native-directed-scrollview (instead of 'react-native link')
  4. cd ios and pod install
  5. react-native start -- --reset-cache (in seperate terminal window)
  6. 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 .

from react-native-directed-scrollview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.