Skip to content
Advertisement

Tag: react-native

How to solve undefined is not a function (near ‘…userForm.map…’)?

Im trying to render some strings , but I’m getting error, someone knows how to solve it ? code : route.params.paramKey is a string route.params.paramKey string is = {“objeto”:”CLMobj_test”,”fields”:[“abcs”,”test”],”type”:[“Date”,”Text”]} Answer Since route.params.paramKey is a string, you cannot call map on it directly. If you want to go ahead with this approach you can do something like this: EDIT: After you

How to return from promise inside useEffect

I am creating my first custom hook. I would like the hook to return the deviceType which is the result of a Promise in the hook. Hook: Use of hook: Console: undefined I may be having difficulty understanding the useEffect hook but I believe it should just fully run once here. Is the item being returned still undefined because the

Calling 2 props onSLidingComplete in slider

This is my card component. this card i want to call to main component and this is my main component in here i want to call props.getData(value) and props.selectedId but just one of these can be use onSlidingComplete. If someone can help me, its so helpfull to me for finish my project Answer This is what you’re looking for.

React Native UseEffect API CALLS

How to handle multiple api calls in the same render ? Example : I want to get some info from first API call like this for example : and i want to instantly use it for the next API CALL coming under this call example : Soo the question is how to use information that i get inside first API

Advertisement