You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this library, but I'm getting the error in the title.
I didn't even use it... I simply imported it like so:
import AnimatedLinearGradient, {presetColors} from 'react-native-animated-linear-gradient'
And got this error when trying to run.
This is the error message: ERROR [Error: undefined Unable to resolve module react-native-linear-gradient from ....\node_modules\react-native-animated- linear-gradient\index.js: react-native-linear-gradient could not be found within the project or in these directories: node_modules 2 | import React, { Component } from 'react'; 3 | import { StyleSheet, StatusBar, Dimensions, View, Animated, Easing } from 'react-native'; > 4 | import NativeLinearGradient from 'react-native-linear-gradient'; | ^ 5 | import rgb2hex from 'rgb2hex';
I am using React Native Expo
Expo Version:
"expo": "~46.0.16",
Visual Studio Code
The text was updated successfully, but these errors were encountered:
From what I saw, I think it is missing an "index.d.ts" file wich exports it in order to make react native able to use it.
If what I said works I'll leave it here.
I am trying to use this library, but I'm getting the error in the title.
I didn't even use it... I simply imported it like so:
import AnimatedLinearGradient, {presetColors} from 'react-native-animated-linear-gradient'
And got this error when trying to run.
This is the error message:
ERROR [Error: undefined Unable to resolve module react-native-linear-gradient from ....\node_modules\react-native-animated- linear-gradient\index.js: react-native-linear-gradient could not be found within the project or in these directories: node_modules 2 | import React, { Component } from 'react'; 3 | import { StyleSheet, StatusBar, Dimensions, View, Animated, Easing } from 'react-native'; > 4 | import NativeLinearGradient from 'react-native-linear-gradient'; | ^ 5 | import rgb2hex from 'rgb2hex';
I am using React Native Expo
Expo Version:
"expo": "~46.0.16",
Visual Studio Code
The text was updated successfully, but these errors were encountered: