Open muja555 opened 2 years ago
Describe the bug Odd behaviour while dragging on RTL as seen in gif below (Android device):
To Reproduce list:
<DraggableFlatList ref={ref} horizontal={true} data={images} renderItem={renderItem} onDragEnd={onDragEnd} contentContainerStyle={{ flexGrow: 1, flexDirection: 'row', }} initialScrollIndex={0} keyExtractor={item => item.id} />
renderItem:
const renderItem = ({item, drag, index, isActive}) => { return ( <TouchableOpacity key={item.id} disabled={isActive} onLongPress={drag}> <!-- content --> </TouchableOpacity> ); }
enabling rtl on app start:
I18nManager.allowRTL(true); I18nManager.forceRTL(true);
Platform & Dependencies
Weird! This looks like an issue with RN flatlist: https://github.com/facebook/react-native/issues/19150
Describe the bug Odd behaviour while dragging on RTL as seen in gif below (Android device):
To Reproduce list:
renderItem:
enabling rtl on app start:
Platform & Dependencies