intellidev1991 / react-native-image-slider-box

A simple and fully customizable React Native component that implements an Image Slider UI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

disableOnPress={true} and black background onPress

MazenO opened this issue · comments

when I set disableOnPress={true} I can click on the image, and when I click I have a black background.
How can I fix this ?
thank you

I have the same question. Any ideas?

I found some temporary solution you can go into
node_modules/react-native-image-slider-box/dist/SliderBox.js
there you can add underlayColor="transparent" to "TouchableHighlight"

same issue !!

I found some temporary solution you can go into
node_modules/react-native-image-slider-box/dist/SliderBox.js
there you can add underlayColor="transparent" to "TouchableHighlight"

it works fine

Unfortunately it is only a workaround but this worked for me:

node_modules/react-native-image-slider-box/dist/SliderBox.js
In TouchableHighlight you can set activeOpacity={1}