React Native auto complete and auto import (WebStorm 2018.3)

Hi,

With react native I don't get auto complete suggestions when I'm typing. StyleSheet, components, nothing gives me auto complete. How can I enable this function?

Also, when I type a component or anything, the auto import is not working. How can I enable this function?

I'm using WebStorm 2018.3. 

1 comment

Please follow https://youtrack.jetbrains.com/issue/WEB-35144 for updates.

Installing react-native typings (@types/react-native) should make things better: hit Alt+Enter on "react-native" in import {...} from 'react-native', choose Install Typescript definitions for better type information. See https://www.jetbrains.com/help/webstorm/configuring-javascript-libraries.html#ws_jsconfigure_libraries_ts_definition_files

1

Please sign in to leave a comment.