Using RN And typescript, when I try and install, react-native-linear-gradient, I get the above error and the package doesn’t install.
react-native-linear-gradient
How can I use the package in my app?
2
have you tried with yarn? yarn add react-native-linear-gradient
yarn add react-native-linear-gradient
Add this in your package.json
"react-native-linear-gradient": "^2.6.2",
And then run npm install after that run your code with "npx react-native run-android"
Click here to cancel reply.
2
Answers
have you tried with yarn?
yarn add react-native-linear-gradient
Add this in your package.json
And then run npm install after that run your code with "npx react-native run-android"