react-native-draggable-flatlist
react-native-draggable-flatlist copied to clipboard
App crashing on IOS (Prod) blinking/flickering in development
Describe the bug When using Draggable Flatlist in production the app first is freezing when I try to drag an Item. After a minute the App crashes. When I'm using the list in development I noticed a flicker/blinking of the list every time I drag an item to the new position.
const onDragEnd = useCallback(({ data }: DragEndParams<WorkoutExercise>) => {
dispatch(
workoutActions.updateWorkoutExercises(
[...data].map((item, index) => {
return { ...item, sort: (index + 1).toString() };
})
)
);
}, []);
<DraggableFlatList
contentContainerStyle={{
paddingBottom: 160,
}}
keyboardShouldPersistTaps="handled"
// style={{ flex: 1 }}
showsVerticalScrollIndicator={false}
data={workoutExercises}
onDragEnd={onDragEnd}
renderItem={renderItem}
keyExtractor={(item) => item.id}
/>
To Reproduce Link a snack if possible.
Platform & Dependencies Please list any applicable dependencies in addition to those below (react-navigation etc).
- react-native-draggable-flatlist version: 4.0.0
- Platform: IOS
- React Native or Expo version: 47.0.8
- Reanimated version: 2.12.0
- React Native Gesture Handler version: 2.8.0
Additional context Add any other context about the problem here.
@hraschan , were you able to solve this issue ? I'm currently facing the same bug :(
Yes I also notice the flicker/blinking on android as well. Got any solutions for this?
Nope. I didn’t find any solution. This issue doesn’t come up every time 🥲 I will investigate this issue when I got time for my side project. But please let me know when u got some kind of a solution.
Yup same issue, it's constantly flashing