The React import is ok, but other import can not used in autocompletion.
If I import as import Text from 'react-native'
, this can be resolve correctly, but this is incorrect import.So I assume IDE will resolve symbol by lookup import Class name only, The question is how can I work around this ?
The plugins are available only in IntelliJ IDEA Ultimate, where they are enabled by default. With React Native you can develop native mobile applications for iOS and Android using JavaScript and React.
We consider WebStorm to be the best-paid IDE on the market for React development, thanks to its many features, plugins, and good documentation.
The problem occurs because of a tricky way react-native modules are defined. I'd suggest using typescript community stubs to solve the issue: Preferences | Languages & Frameworks | JavaScript | Libraries
, press Download
, then choose 'react-native' from the stubs list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With