Having the same issue as this Stackoverflow Question
in my React Native app, within my
package.jsonI've set the name torpms. This allows me to do:
import Component from 'rpms/App/common/Component'
[鈥 eslint-plugin-import raises [鈥
import/no-unresolved.
You need to create a resolver for React Native.
Just publish a package that piggy backs on eslint-import-resolver-node, hope this helps
https://www.npmjs.com/package/eslint-import-resolver-reactnative
oo, thanks @guzart!
You can use absolute paths like in this article
https://medium.com/better-programming/using-absolute-paths-in-react-native-3be369244fb1
I hope you found this piece useful.
Most helpful comment
You need to create a resolver for React Native.