Closed chixor closed 2 years ago
Since this repo uses create-react-app, you need to add other libraries you intend to use with web to the webpack config so that babel will compile the library (ES6) code to ES5, RN libraries usually only need ES6. here is an example of what i meant using the craco package https://github.com/orYoffe/rn-nav/blob/main/craco.config.js
Closing cause of lack of interaction. Please feel free to reopen if still having issues
Describe the bug Running
npm run web
errors with:When I add
@babel/preset-react
and@babel/preset-env
to mybabel.config.js
it doesn't resolve this error. This error is not unique toreact-native-sketch-canvas
, I also encountered it withreact-navigation
and various other libraries.Expected behavior I expect that updating
babel.config.js
would solve the problem.Desktop (please complete the following information):