File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ module.exports = {
116116 require . resolve ( '@babel/runtime/package.json' )
117117 ) ,
118118 // @remove -on-eject-end
119+ // Support React Native Web
120+ // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
121+ 'react-native' : 'react-native-web' ,
119122 } ,
120123 plugins : [
121124 // Prevents users from importing files from outside of src/ (or node_modules/).
Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ module.exports = {
123123 require . resolve ( '@babel/runtime/package.json' )
124124 ) ,
125125 // @remove -on-eject-end
126+ // Support React Native Web
127+ // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
128+ 'react-native' : 'react-native-web' ,
126129 } ,
127130 plugins : [
128131 // Prevents users from importing files from outside of src/ (or node_modules/).
You can’t perform that action at this time.
0 commit comments