A Babel preset for React Native applications, providing the default Babel configuration used by React Native's Metro bundler. This preset is deprecated and has been replaced by metro-react-native-babel-preset for React Native v0.57 and later. The last version (4.0.1) supports Babel 6; users on newer versions must migrate. Key differentiator: it was the official preset before React Native switched to Babel 7, enabling custom Babel configs while preserving baseline transforms.
npm install babel-preset-react-nativeVerified import paths — ran on the pinned version, not inferred.
Minimal .babelrc configuration to use the deprecated babel-preset-react-native in React Native apps using Babel 6.
Replace 'babel-preset-react-native' with 'metro-react-native-babel-preset' in your Babel config.
Install metro-react-native-babel-preset@5 or later, which supports Babel 7.
Ensure your .babelrc includes the preset to restore defaults, and avoid removing essential plugins for RN.
Run 'npm install babel-preset-react-native --save-dev' (or the correct package for your RN version).
Upgrade to metro-react-native-babel-preset which exports a function compatible with Babel 7.
Remove 'babel-preset-react-native' from your Babel config and dependencies.
No dependency data recorded yet.