nuclearpasta / react-native-drax

A drag-and-drop system for React Native
MIT License
554 stars 69 forks source link

Drag smooth on emulator but laggy on physical apk #157

Closed adrian19hub closed 1 year ago

adrian19hub commented 1 year ago

Hi :) First of all, thank you for this amazing library. To the point, drag animation works great on emulator, very smooth, but on physical device its laggy.

This is the list props:

        <DraxProvider>
            <DraxList
                data={data}
                renderItemContent={(x) => <WidgetDriverRow driver={x.item} />}
                keyExtractor={(item, index) => index.toString()}
                numColumns={1}
                scrollEnabled={scrollEnabled}
                horizontal={false}
                ItemSeparatorComponent={() => <View style={{ height: 1, backgroundColor: '#dedede' }} />}
                onItemDragStart={() => setScrollEnabled(false)}
            />
        </DraxProvider>

This is the list item

        <DraxView
            style={[styles.rowContainer]}
            hoverDraggingStyle={[styles.rowContainer, styles.hoverDragging]}
            draggingStyle={styles.dragging}
            onDragStart={() => {
                // isDragging.value = true;
            }}
            onDragEnd={() => {
                // isDragging.value = false;
            }}
            longPressDelay={150}
            key={driver.dbCode}
        >
lafiosca commented 1 year ago

Unfortunately I have no availability to actively maintain and improve the library at this time. It's possible that refreshing Drax with the latest RNGH library could make things better if someone could find the time and energy to work on it.

adrian19hub commented 1 year ago

Unfortunately I have no availability to actively maintain and improve the library at this time. It's possible that refreshing Drax with the latest RNGH library could make things better if someone could find the time and energy to work on it.

Are there any work-arounds on my part? any ways to optimize? what can cause this issue besides it being outdated?

adrian19hub commented 1 year ago

Are there any work-arounds on my part? any ways to optimize? what can cause this issue besides it being outdated?

lafiosca commented 1 year ago

I have no advice for this, sorry :(