Skip to content

alias not working #38

@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions