Update babel.config.js of your project

from:

module.exports = {
    presets: ['module:metro-react-native-babel-preset'],
};

to:

module.exports = {
    presets: [['module:metro-react-native-babel-preset', {
        unstable_disableES6Transforms: true
    }]],
};

Run npm start –reset-cache to restart app.

Leave a Reply