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
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
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 ❤️
If you still want to keep the zIndex
, you can add the following to the FlatList
:
removeClippedSubviews={false}
Credit to this comment on a react-native issue.
Not sure how this affects performance, seems like iOS has this as false
by default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.