-
Notifications
You must be signed in to change notification settings - Fork 18
Open

Description
Issue i'm facing is can't find module linear gradient
while importing the react-native-linear-gradient.
This is my .babelrc config
resolve: {
alias: {
'react-native': 'react-native-web',
'react-native-linear-gradient': 'react-native-web-linear-gradient',
}
}
However if I directly import like this
import LinearGradient from 'react-native-web-linear-gradient';
it is working
neil-marcellini
Metadata
Metadata
Assignees
Labels
No labels
Activity
retyui commentedon Jul 12, 2025
you need apply changes with
resolve: {alias:{ ... } }
in webpack !!! (not.babelrc
)retyui commentedon Jul 13, 2025
@ghost
You can use the
experimental_backgroundImage
style property, which is available in React Native 0.76.x and later.