App crashing on release build
When I am creating a build from fastlane application(ios and android) crashing when I tap on the app icon
- react-native-draggable-flatlist version:4.0.1
- Platform: Android and iOS
- React Native :0.68.2
- Reanimated version:2.14.0
- React Native Gesture Handler version:2.9.0
Added 'react-native-reanimated/plugin', in babel file
const presets = ['module:metro-react-native-babel-preset'] const plugins = [ 'react-native-reanimated/plugin', ] module.exports = { presets, plugins, }
getting
Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from.
when using Reanimated version:2.9.1
Facing same issue
Any solution? for same
I tried with downgraded version 3.1.2 and It's working fine for me
you need to put @babel/plugin-proposal-export-namespace-from before react-native-reanimated/plugin in your babel config:
const plugins = [
// has to be before the reanimated/plugin
'@babel/plugin-proposal-export-namespace-from',
// has to be the last plugin in this list...
'react-native-reanimated/plugin'
];
module.exports = {
...rest,
plugins,
}