babel.config.js #4660
Unanswered
gkasireddy202
asked this question in
Q&A
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 |
0 replies
|
@RainPlays09 - Thanks for your reply. or module.exports = { Which one I need to use for both Debug(Test) and Release(Production)? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
All reactions