Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    It really helps! I guess this is one of the dependency of react-native. Commented Jun 12, 2021 at 0:55
  • 3
    react-native-web is not a dependency of react-native, but if you make a web build of a react-native project, webpack/babel/etc use an alias under the hood to hijack every import of react-native and point them at react-native-web instead. So if react-native-web isn't installed, the react-native import will fail because it has been aliased to point somewhere that doesn't exist. Commented Mar 16, 2022 at 14:57