flexn-io/renative

TypeScript Error with Plugin Imports After rnv plugin add

Closed this issue · 1 comments

Hello, I am facing a TypeScript error when trying to import plugins after adding them using rnv plugin add. I would like to know the correct way to import a plugin after installation.

Image

Steps to Reproduce:

  • rnv new
  • npx rnv plugin add react-native-splash-screen
  • npx rnv plugin add react-native-vector-icons
  • I got "Plugins installed successfully"

renative.json:

.....
"plugins": {
        "react-native-splash-screen": "source:rnv",
        "react-native-vector-icons": "source:rnv",

You just need to install the packages with Yarn. The prompt will appear when running the project.