react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

App crashing on IOS (Prod) blinking/flickering in development

Open hraschan opened this issue 2 years ago • 4 comments
trafficstars

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 avatar Jan 26 '23 16:01 hraschan

@hraschan , were you able to solve this issue ? I'm currently facing the same bug :(

ps-dima avatar Mar 13 '23 09:03 ps-dima

Yes I also notice the flicker/blinking on android as well. Got any solutions for this?

saurabhg138 avatar Mar 28 '23 05:03 saurabhg138

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.

hraschan avatar Mar 28 '23 06:03 hraschan

Yup same issue, it's constantly flashing

neosh11 avatar Apr 01 '23 08:04 neosh11