Intellisense not working and symbols not getting recognised for react-native

I'm using IntelliJ IDEA 2021.3 Ultimate Edition. I'm trying to make code completion work on react-native but it isn't even recognising RN's symbols in the import. Plus there is no recognition for `Stylesheet` as it is also being imported from `react-native`, hence no intelli-sense for Stylesheet properties too. Code is building and running fine, and `react-native` dependency is also added in the `package.json`.

I have tried adding `@types/react-native` but still the problem persists. Interesting thing is that all other libraries are working fine, even imports from `react` is working and getting recognised by the IDE as expected.


Imports from `react-native` are not getting recognised, hence no navigating to the documentation functionality or anyother intellisense:

No intelli-sense for `StyleSheet` properties:

`StyleSheet` not getting recognised:





can't reproduce, works as expected for me

Does the issue persist after caches invalidation (File > Invalidate caches, Invalidate and Restart)? If yes, could you share a sample project it can be repeated with?