Skip to content

How to use react-native-web in combination with this project #1

@tychovbh

Description

@tychovbh

I'm trying to use react-native-web within this project.
NextJS delivers an example:
https://github.com/zeit/next.js/tree/master/examples/with-react-native-web

It adds a .babelrc file with the following content

{
  "presets": ["next/babel"],
  "plugins": [
    ["react-native-web", { commonjs: true }]
  ]
}

This however breaks importing components from the core folder. I guess that the .babelrc file does not merge with next.config.js file reading from this issue vercel/next.js#4010 Don't use a .babelrc and instead pack everything into the next.config.js Unfortunately I have no idea how to pack everything into the next.config.js. I was hoping that you guys might have an example?

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