I'm using a ask for iOS application which is written in react native but I don't have good knowledge of react native.
I just want to know that is there any way to permanently disable the error view shows in react native app
enter link description here
Like we can disable the warning by this line..
console.disableYellowBox = true;
If there is any way to disable the error view please help me..
In assemble release or prod release there wont be any error shown like the one you just posted. But in debug or dev environment it's always recommended to actually be shown the errors so to prevent the app from crashing in production. And those error screen actually helps to identify where the code went wrong. But as you have already done disableYellow box to true which mutes the warnings in the app but not the errors since in dev errors are important to correct the code.
Related
I have these errors on Xcode. I have already tried to replace JWTStringCoderProtocol by JWTStringCoder__Protocol in the concerned file but it didn't change anything. Same when I wanted to comment out the lines containing JWTClaimsSetCoordinatorProtocol.
Do you know where the problem comes from?
errors in Xcode
I'm running an app in the emulator and am somehow getting the generic error message "Error - Try Again" shown below.
In order to debug this, I would like to locate the UIView corresponding to the "Error" button. Previously, I've worked on the backend for a React Native app and there was the Inspector (cf. https://facebook.github.io/react-native/docs/debugging) with which you could locate React elements in the code.
As far as I can tell from the Help -> Simulator Help menu (see below), there is no such functionality for iOS, or am I missing something?
The feature you're looking for is not officially supported by apple, but there's an awesome tool named Sherlock that enables such functionality on iOS simulator.
It injects itself into the iOS Simulator so that it can monitor views and adjust them in real time and lets you jump into the file related to the view you want to from the simulator.
You can inspect any app in the simulator, including system apps and dynamically change their UI elements!
I don't know whats going with my project but every time i try to run this .xworkspace file, it gets stuck at the default splash screen of react native. Please refer to the error below
You might have to check your xcode console and enable debug mode for more information.
I have read some articles like app freeze with BKSendHIDEvent error:
iOS 9 App freeze with console log "BKSendHIDEvent", but my problem is slightly different from this one. Since I use ionic to build the ios app, I don't know how to trouble shoot the detailed error in xCode.
My problem is that when the app first runs within the xcode, everything works fine, but if I stop the debug and reopen the app from the simulator, no button responses at all. The whole app stucks at this stage.
I checked the simulator system log, it shows this:
BTW, when I kill the app(flick up the app) while it is still debugging, the xcode says this, I don't know if this was the issue:
I have also tried to get further information from the web inspector, but this does not response either. I could not reload the page by
window.location.reload();
There are no window object at all...:
So I'm totally lost here. I don't know how to further trouble shoot this error. Can anyone please point me to a correct direction? I have no idea why the web inspector shows nothing here and how to get the detailed error info in xCode.
Thanks in advance!
After several search, here is the fix:
App Freeze
But I still do not know how to trouble shoot, in the issues above, they mentioned race condition, how to debug this?
I just set up a new PhoneGap project for android, which worked perfectly fine without any problems, there were almost no changes to the template project.
Then I wanted to move that exact project to iOS, and the woes began.
When I start the project, suddenly a bunch of alter dialogs pop up, with device information, network status. Each offer me "ok" and "cancel". When I press "ok" on any of them, execution is halted, and nothing happens further.
When I cancel them all, I get to the project screen, where it says "connecting to device". Obviously, deviceready is never fired on this.
Since this project is merely the template offered by Cordova themselves, I find it hard to believe it is not supposed to run. I suspect the console.log messages get popped up on screen rather than the XCode debug window.
I am completely new to XCode or any iOS programming (hence PhoneGap), and I would appreciate any help.
Using Cordova 2.8.1.
Reason was I mistakenly copies the cordova.js for android into the ios project, see here.