Skip to content

alias not working #38

Open
Open
@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      alias not working · Issue #38 · react-native-web-community/react-native-web-linear-gradient