From 44a9ec40d013833d2d27f70b580826ffeb38a340 Mon Sep 17 00:00:00 2001 From: huangteng02 Date: Wed, 2 Sep 2020 15:31:30 +0800 Subject: [PATCH] fix: onPress not work in some andriod phone like Huawei nova5 Plus+ --- Lightbox.js | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Lightbox.js b/Lightbox.js index 9830f59..722392a 100644 --- a/Lightbox.js +++ b/Lightbox.js @@ -94,7 +94,7 @@ const Lightbox = (props) => { }; return ( - {}}> + {}, willClose: () => {}, onClose: () => {}, - onLongPress: () => {}, + onLongPress: null, // in andriod mobile, e.g HuaWei Nova5 Plus+, onPress will not work well + onLayout: () => {} }; export default Lightbox; diff --git a/package.json b/package.json index 79461b6..51ea754 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-lightbox-v2", - "version": "0.8.3", + "version": "0.8.4", "description": "Images etc in Full Screen Lightbox Popovers for React Native", "main": "Lightbox.js", "scripts": {