Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.ArrayIndexOutOfBoundsException in facebook.react.uimanager.ViewGroupDrawingOrderHelper.getChildDrawingOrder in React Native

Hi i am working in react native 0.61.4 and i got crashes in android not for iOS.

java.lang.ArrayIndexOutOfBoundsException:facebook.react.uimanager.ViewGroupDrawingOrderHelper.getChildDrawingOrder(ViewGroupDrawingOrderHelper.java:98)

Android Crash only

https://github.com/facebook/react-native/issues/27610

I have also created issue but nothing seem to helpful

Can anybody tell me what is the actual error and how to fix this.

thanks

like image 419
Muhammad Ashfaq Avatar asked Oct 28 '25 05:10

Muhammad Ashfaq


1 Answers

I fixed it by understanding

ViewGroupDrawingOrderHelper.java

The mistake i was doing that i was giving loader of zIndex 70 in style.

that's why app was crashing on android. on iOS it was working fine. and

by removing zIndex 70. from styles, my crash fixed ❤️

like image 79
Muhammad Ashfaq Avatar answered Oct 29 '25 21:10

Muhammad Ashfaq



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!