Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react native app crash without log in debug mode

i'm using the last version of react and react-native :

"react": "16.1.1",
"react-native": "^0.50.3"

Some times my app's crash completely and close without any log in chrome and i don't get the red screen on the phone, i'm in debug mode of course and get usual error or log in chrome console.

For example with this view, i render the same data. The render 1 work well and don't crash the app. the render 2 work for fews lines thans the app crash

enter image description here

I get the app crash without any log for other kind of bug too ( missing parameter in props for example ).

Any way to track or solve this ? i don't found local tools for that

like image 460
AlainIb Avatar asked Nov 24 '17 10:11

AlainIb


1 Answers

I finaly solve this by using adb logcat, working for android

adb logcat com.yourAppName:D *:W

yourAppName is the one you used in package.json under name field

like image 119
AlainIb Avatar answered Oct 15 '22 18:10

AlainIb