I am using @react-navigation/bottom-tabs in the react native. And i need Plus button above the area, So i am able to achieve it, but in the Android Above half area of the Plus icon is not clickable in android.But in IOS it is working fine anybody have an answer about it.
Asked
Active
Viewed 1,175 times
7
-
the issue probably lies with `zIndex`. have you try setting a higher `zIndex`? – kenmistry Oct 19 '20 at 14:31
-
@kenmistry not working with zIndex – Rover Oct 21 '20 at 09:24
-
without code, it's gonna be hard to debug. Please attach some code to the question. – Reyansh Mishra Oct 27 '20 at 10:16
-
It's the same problem I've answered here https://stackoverflow.com/a/63578864/9098350, maybe my answer there is helpful to you. My answer uses a custom tab bar to solve the problem. – 5eb Oct 27 '20 at 10:34
-
@PuneetKansal your central icon is absolute? – Nooruddin Lakhani Oct 28 '20 at 14:02
-
@PuneetKansal did you find the solution? – Asif Mushtaq Nov 26 '20 at 07:39
-
@AsifMushtaq Did you? – Necmettin Sargın Apr 14 '21 at 13:12
-
@NecmettinSargın Not Yet! – Asif Mushtaq Apr 14 '21 at 17:28
1 Answers
0
Kindly use hitSlop property on your button like this to increase the tapping area:
hitSlop={{top: 20, bottom: 20, left: 50, right: 50}}

Syed Amir Ali
- 873
- 12
- 22