SHISME / react-native-draggable-grid

A draggable and sortable grid of react-native
321 stars 94 forks source link

any events doesn't work on android build #32

Closed GalushkoVasiliy closed 4 years ago

GalushkoVasiliy commented 4 years ago

react-native android app

onLongPress, onPress, etc events doesn't work

GalushkoVasiliy commented 4 years ago

hi, did you resolve your problem?

ср, 14 окт. 2020 г. в 07:31, lohtiavip notifications@github.com:

Hiii @GalushkoVasiliy https://github.com/GalushkoVasiliy , How you have solved it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SHISME/react-native-draggable-grid/issues/32#issuecomment-708149637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJANUVNSWZM5NEA733I3I63SKUSSHANCNFSM4NLDZZAQ .

lohtiavip commented 4 years ago

yes , in my case when i wasn't give height to view then that time onLongPress, onPress was not working in android but working in ios <View style={{width: '90%', marginTop: 20}}> <DraggableGrid numColumns={3} renderItem={render_item} data={list} onItemPress={(item) => { // if (item.disabledDrag === false) { // // } else { setselectedIndex(item.name); setisOpen(true); // } }} onDragRelease={(data) => { console.log(data); setList(data); }} />

when i have give height to view, then onLongPress, onPress working fine android <View style={{width: '90%', height:'90%',marginTop: 20}}> <DraggableGrid numColumns={3} renderItem={render_item} data={list} onItemPress={(item) => { // if (item.disabledDrag === false) { // // } else { setselectedIndex(item.name); setisOpen(true); // } }} onDragRelease={(data) => { console.log(data); setList(data); }} />

GalushkoVasiliy commented 4 years ago

👍🏻👍🏻👍🏻

Сб, 21 нояб. 2020 г. в 14:08, lohtiavip notifications@github.com:

yes , in my case when i wasn't give height to view then that time onLongPress, onPress was not working in android but working in ios <View style={{width: '90%', marginTop: 20}}> <DraggableGrid numColumns={3} renderItem={render_item} data={list} onItemPress={(item) => { // if (item.disabledDrag === false) { // // } else { setselectedIndex(item.name); setisOpen(true); // } }} onDragRelease={(data) => { console.log(data); setList(data); }} />

when i have give height to view, then onLongPress, onPress working fine android <View style={{width: '90%', height:'90%',marginTop: 20}}> <DraggableGrid numColumns={3} renderItem={render_item} data={list} onItemPress={(item) => { // if (item.disabledDrag === false) { // // } else { setselectedIndex(item.name); setisOpen(true); // } }} onDragRelease={(data) => { console.log(data); setList(data); }} />

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SHISME/react-native-draggable-grid/issues/32#issuecomment-731570312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJANUVIG4GP5LMG3CXSWID3SQ6UUFANCNFSM4NLDZZAQ .