thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[BUG]: i have problem on samsung android, no response when pressing textinput or navigation #367

Closed vnphu closed 1 year ago

vnphu commented 1 year ago

react-native environment setup

Description

when i build or release on samsung device, it doesn't react when i press button or textinput

Version

3.7.o

On which OS this issue appear on?

Desktop OS

12

FBL-dev commented 1 year ago

I have exactly the same problem, I have to click a dozen times on the buttons for the click to work.

JeremyDolle commented 1 year ago

Maybe there is an asset on top of it and the touch does not pass through so the button is not triggered. Could you try to remove each asset and see if one of them block the access to the button ?

vnphu commented 1 year ago

Maybe there is an asset on top of it and the touch does not pass through so the button is not triggered. Could you try to remove each asset and see if one of them block the access to the button ?

Is it possible that the reason is due to the new architecture of react native, assets or the whole src, I use react native 0.71 version, it's normal

JeremyDolle commented 1 year ago

Yes it's possible. I am on vacation for now, so I cannot make tests.

Did you have the issue on the default screen (Example.tsx) of the boilerplate or any of your screens.

If it's on the Example screens could you try to remove all <Image /> and see if you have access to buttons.

Did the error appears only on Samsung? Did you try another device ? Which one ?

Let me know 🙂

vnphu commented 1 year ago

it started crashing when I used navigation to switch screen, Besides samsung, google pixel 5 also suffers

JeremyDolle commented 1 year ago

Can you share me a reproductible example ? I cannot reproduce on my side

mithileshparmar commented 11 months ago

I am facing the same problem. I have tab navigator and multiple stack navigators. In tab navigator screens everything works while in Stack navigator screens. For Buttons and textField onPress is skipped, onPressIn and onPressOut is called but onPress is skipped many times. It is a random behaviour. If it s a react architecture issue can any one point me to downgrade react version and disable new architecture properly.

StasSokolov1 commented 7 months ago

@JeremyDolle hello, i have the same issue, check video please, when i press any of tabs nothing happens, same for textinput

this behavior occurs not on every device but only on android

https://github.com/thecodingmachine/react-native-boilerplate/assets/75898310/f0893827-2f0e-407f-a192-8ef59fc5eff6

Android 12