react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

does not work on React Native CLI

Open andra961 opened this issue 3 years ago • 2 comments

I'm using react native CLI and testing on android. I followed precisely installation instructions on both this repo and reanimated 2 page, and then tried with a simple chart like the example in the read me. At first i got an error saying the module "react-native-gesture-handler" couldn't be found. Which,made sense since i hadn't i installed it, but no one told me it was necessary for this to work. After installing it, i got another error regarding SVG. Again, no one told me but i installed "react-native-svg" and the error was gone. Only for it to be replaced by a crash on app launch. Before crashing, sometime i could see a glimpse of an error message: "rngesturehandlermodule.attach gesture handler got 2 arguments expected 3". Finally, i changed the version of "react-native-gesture-handler" from 2.x.x to 1.8.0 and the app doesn't crashes anymore or show any error. But still, only the first time i change code related to the chart i can see the chart appearing on screen, most of the time i can't see anything.

andra961 avatar Dec 19 '21 16:12 andra961

hey @andra961 - i ran into the same issue just yesterday, I was able to resolve it by importing import 'react-native-gesture-handler'; in the index.js file. Let me know if this helps 🚀

TheHumanJenkins avatar Jan 03 '22 13:01 TheHumanJenkins

After some hours of mindblowing experience, I found solution

If you installed gesture-handler manually, you need to delete gesture-handler folder from node-modules/this lib

ssmdssmp avatar Feb 27 '23 14:02 ssmdssmp