react native elements
luizcarlospedrosogomes opened this issue · 1 comments
luizcarlospedrosogomes commented
error Avatar.js: Unexpected token
how configure react native elements in the file config-overrides.js?
brunolemos commented
Hi, I've never used this library, but this error means you need to transpile the code.
You'll need to add their node_modules path to config-overrides.js
like this:
const appIncludes = [
resolveApp('src'),
resolveApp('../core/src'),
resolveApp('../components/src'),
+ resolveApp('../../node_modules/react-native-elements/'),
+ resolveApp('../../node_modules/react-native-vector-icons/'),
+ resolveApp('../../node_modules/react-native-ratings/'),
]
Also check their docs about web usage to see if there's any other step: https://react-native-elements.github.io/react-native-elements/docs/web_usage.html