react-native-image-viewer icon indicating copy to clipboard operation
react-native-image-viewer copied to clipboard

无法滑动图片,滑动事件老是触发点击事件

Open mmyhs opened this issue 5 years ago • 1 comments

无法滑动图片,滑动事件老是触发点击事件。 目前的我只能把代码改成这样, <Modal visible={modalVisible} transparent={true} onRequestClose={() => setModalVisible(false)}> <ImageViewer imageUrls={listData} onSave={(url) => { console.log('onSave=>', url); }} onClick={(onCancel) => { console.log('onClick=>', onCancel); }} menus={() => null} menuContext={{saveToLocal: '保存图片', cancel: '取消'}} index={index} enableSwipeDown={false} saveToLocalByLongPress={false} /> </Modal> 改成这样后,图片仅只有预览功能,还是不可以滑动

感觉还不如直接用,<Modal><Image source={{uri=""}} /></Modal>

mmyhs avatar Feb 02 '21 06:02 mmyhs

我也遇到这个问题了。 然后发现是开了react native debugger 关掉这个调试工具以后我的就可以滑动了。

xinyangmaojian avatar Sep 03 '21 14:09 xinyangmaojian