Skip to content

not working in latest react native (fix) #19

@obsidianart

Description

@obsidianart

new rn-cli.js configuration

module.exports = {
  resolver: {
    extraNodeModules: require('node-libs-react-native'),
    blacklistRE: /react-native\/local-cli\/core\/__fixtures__.*/
  }
}

If this doesn't work try in metro.config.js

module.exports = {
  transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: false,
      },
    }),
  },
  resolver: {
    extraNodeModules: require('node-libs-react-native')
  }
};

To the mantainer: If you keep this alive I can pr on the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions