margelo / react-native-graph

📈 Beautiful, high-performance Graphs and Charts for React Native built with Skia
https://margelo.io
MIT License
2.08k stars 118 forks source link

add a readme for the example app #12

Closed esthor closed 2 years ago

esthor commented 2 years ago

I ran into an issue getting the iOS app to work. (Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault)

I looked at the babel config of the example app, and saw it was looking at the package.json at the root of the project (line 2: const pak = require('../package.json')

That might be the root cause of the issue with the iOS app not working unless you also yarn install in the root of the project. This seems like a hacky workaround, and should probably instead make the example folder independent of the root project, but...this is also a fast way to get people up and going with the example app until then.

mrousavy commented 2 years ago

Awesome, thanks!