Better React Native Web support (#2511)

* Better React Native Web support

* Adding better react-native-web support for jest testing
This commit is contained in:
Evan Jones
2017-06-28 07:29:58 -07:00
committed by Dan Abramov
parent 16e5d15e92
commit 6ab0ec0075
3 changed files with 7 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
moduleNameMapper: {
'^react-native$': 'react-native-web',
},
moduleFileExtensions: ['web.js', 'js', 'json', 'web.jsx', 'jsx'],
};
if (rootDir) {
config.rootDir = rootDir;