babel.config.js #4660
Replies: 2 comments 2 replies
-
| If you're using React Native, add this in the module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: ['react-native-reanimated/plugin'], // --- Add this line env: { production: { plugins: ['react-native-paper/babel'], }, }, // --- };If you're using Expo, just add it in the module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo'], plugins: ['react-native-reanimated/plugin'], /// --- Add this line env: { production: { plugins: ['react-native-paper/babel'], }, }, // --- }; };For more info, read the Getting Started Guide using |
Beta Was this translation helpful? Give feedback.
-
| @RainPlays09 - Thanks for your reply. or module.exports = { Which one I need to use for both Debug(Test) and Release(Production)? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I installed the react-native-paper in my project with version 5.13.1.
Here are the details of babel.config.js used in my project.
module.exports = {
presets: ['babel-preset-expo'],
plugins: [
'react-native-reanimated/plugin',
],
};
Can you please help me how to add plugins: ['react-native-paper/babel'] in above one?
Beta Was this translation helpful? Give feedback.
All reactions