During creating a form in React Native I faced a issue with the android keyboard. It override the text field, so I could not see what is the enter of the field.
So I found the solution, actually, three. I adopted the first one, just changing the View by KeyboardAvoidingView component.
Here is the complete solution.
Very cool and useful.
Trying to figure out what the hell was going on with a axios get request, I discover by axios – npm documentation a better or more complete way tho handle with error.
This is how:
If we log just the error, it will display just the Network Error message on log.
By the way the error was this one: “_response”: “java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.”,
I was trying to access a https local server. I resolved by change the protocol of the req to http.
Hope I can help!
- template string;
- spread operator.
The first concept lets a array be used as params of methods, on a very easy and functional way.
The second one helps on format messages that uses dynamics values, as variables. We can just reference the value inside a string pattern, marked with the ` character.
See the example…