computerjazz / react-native-draggable-flatlist

A drag-and-drop-enabled FlatList for React Native
MIT License
1.91k stars 393 forks source link

App crashing on release build #458

Open tara-singh-danu opened 1 year ago

tara-singh-danu commented 1 year ago

When I am creating a build from fastlane application(ios and android) crashing when I tap on the app icon

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

yksingh12 commented 1 year ago

Facing same issue

vtyagiDMINC commented 1 year ago

Any solution? for same

Shenith commented 1 year ago

I tried with downgraded version 3.1.2 and It's working fine for me

rkstar commented 1 year ago

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,
}