Skip to content
Advertisement

Not getting IntelliSense in Visual Studio Code for React Native

I am trying to code a React Native application in Visual Studio Code. But I found that the hint for React Native for Styles element didn’t show when I code. I already installed:

JavaScript

Here is the example when I type flex. It is supposed to show a list of styles element related to flex but it didn’t. Is anyone know how to enable it? Here is a screenshot:

enter image description here

Here is my settings.json file

JavaScript

Advertisement

Answer

I solved this problem by following this post:

VsCode Intellisense react native not working

Which is installing this npm package into your project. By entering this command inside the terminal window of your VS Code:

npm install --save @types/react-native

Thanks for the help!

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement