charliesbot/react-native-media-controls

touchableopacity not working with custom next button beside play/pause button IOS only

sandeepkundu4344 opened this issue · 1 comments

I have an issue with my custom button that plays the next video, if I remove the marginTop from its style it works fine but if I allign it with the play/pause button using marginTop then touchableopacity onpress stop working in IOS only it worka fine in Android.
React native version: 0.63
IOS version: 14.5
iPhone 11

check the screenshot there are two custom buttons one is previous button and one is next button, next button onpress is working fine(because it is not aligned in same line with pause/play button) but previous button onpress is not working.

Screenshot 2021-07-25 at 4 12 16 PM

style for next button
`nextButtonMain: {
marginTop: 50,
marginLeft: 220,
alignItems: 'center',
width: 100,
zIndex: 200

},`

previousButtonMain: {
position: 'absolute',
marginTop: 100,
marginLeft: 50,
alignItems: 'center',
width: 100

},

Screenshot 2021-07-25 at 4 09 20 PM

Yes, I am also getting same issue . please provide the solution