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
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.
Related
I am working on a react-native app and set up my Android App. I am using
"react": "16.3.2",
"react-native": "0.55.3"
Genymotion Version 2.12.0
React Native Debugger 0.7.18
I have some styling problems and wanted to solve them. For that I wanted to use the Inspector. Nothing else is enabled. Toggling the inspector works. When I try to inspect an item with clicking on it, I get this error:
Debugging with React Native Debugger works, if that helps. Inspector works on iOS. Has anybody an idea what the problem is?
I recently came across this issue and it drove me nuts.
The solution to this was to remove a package which was using another package that was causing the issue. In my case, I had to uninstall react-native-root-toast
Found the answer in the last comment in the link below:
https://github.com/facebook/react-devtools/issues/1032
Search the web and this was the only answer that worked. Hope it helps someone
I faced off a problem that I can't solve. I've searched on the web before posting this but I found nothing really useful for me.
Straight to the point. This is the problem, I have a ion-searchbar that does not receive keyboard input in Android device. I run that with ionic cordova CLI and the build was successful.
Please help me, all the other features of the app work well, I only have to fix this.
<ion-searchbar [(ngModel)]="searchedText" [showCancelButton]="shouldShowCancel"
(ionInput)="onInput($event)" (ionClear)="onCancel($event)"></ion-searchbar>
That searchbar does not receive any character of my keyboard input.
If I run it on local with ionic serve it works instead.
What could be the problem?
Found the solution.
I put that searchbar in ion header instead of ion content. I changed that and then it worked.
Simple Listview bind is not working.I am not understand what is the missing in my case?
Here I have downloaded project from https://github.com/xamarin/xamarin-forms-book-samples/tree/master/Chapter19/ListViewList
Build successful and When debug code (android) then going perfect on the code but after debug got error like
Without debug application crash.
Anyone have idea what is the missing in my case?
This is a bug already reported in bugzilla.
I think that PR 910 will fix this issue while running with pre-Marshmallow APIs.
I'm trying to use SocketIOClient on Xamarin.Android and Xamarin.iOS, and it works corrrectly but only on imulators. When I start apps on real devices socket doesn't work and app just doesn't show any errors in try-catch blocks. May by anyone has same problem and fixed it. Thanks.
Did you use this library SocketIoClientDotNet. If yes, I also have your problem on iOS. My solution is get the SocketIoClientDotNet code and rebuild in my xamarin project.
Checkout my demo here:
https://github.com/tudushare/XamarinSocketIODemo
To resolve : Application error - A network error occurred. (file:///android_asset/www/messagedetails.html?Id=29) in Android 4.0,I am using LocalStorage.
This approach gave me the solution for the problem.But when the App is not run for long time or kept on hold., I am facing the issue again.
I am not able to navigate from one page to another page. :(
I added the code to clear the App cache , is it the right approach???
Thanks in advance.
I do believe you are experiencing the "Unknown Chromium Error -6" issue. It's a known error in the Android 4.0 release that the file-URL can't contain parameters. (See further here: Android 4.0 Issue). There are a number of possible solutions;
Redesign to use LocalStorage for passing parameters around.
Upgrading PhoneGap to 1.7+ (Cordova), seem to solve the issue. I haven't tried.
Hope it helps.