Update docs suggested preset to metro-react-native-babel-preset

Updating the document as `babel-preset-react-native` is deprecated in favor for
`metro-react-native-babel-preset`. More info here -
https://www.npmjs.com/package/babel-preset-react-native.

Close #1751
This commit is contained in:
Shobhit Chittora
2020-09-23 00:41:14 +05:30
committed by Nicolas Gallagher
parent 72bfe499c5
commit 06d3cadf05
@@ -94,8 +94,8 @@ const babelLoaderConfiguration = {
loader: 'babel-loader',
options: {
cacheDirectory: true,
// The 'react-native' preset is recommended to match React Native's packager
presets: ['react-native'],
// The 'metro-react-native-babel-preset' preset is recommended to match React Native's packager
presets: ['module:metro-react-native-babel-preset'],
// Re-write paths to import only the modules needed by the app
plugins: ['react-native-web']
}