I just updated to react native navigation version 5. Now I am trying to send data back to previous screen on goBack() call. I push next view with And making move back after selecting item from FlatList with call: But by sending function over with params I get a warning: Non-serializable valuse were found in t…
Tag: react-native
React Navigation V5 Hide Bottom Tabs
I would like to be able to hide the tabs on a screen using React Native Navigation v5. I’ve been reading the documentation but it doesn’t seem like they’ve updated this for v5 and it refers to the < v4 way of doing things. here is my code: Things I have tried: Accessing the options of the…
Can’t find variable: counter, in expo
Been using React for a bit and wanted to try out native using expo, when I click on a button to increment a counter, I get a ReferenceError on my phone saying “Can’t find variable: counter”, I don’t get any error on the expo gui or in VSCode, very confused. Answer Change your increment…
How to pass the props when set ref for a component
This is my code, I’m put all the item in param map. and render by using: Now, i’m trying to pass the props color in the item by this.state.map[0][0].props.color =’#fff’ but not working, get an error ‘Cannot add property color, object is not extensible’, so is there any way …
What is {‘ ‘} in react-native?
I was working on a collaborative project and there is a lot of {‘ ‘} used. Examples – constant. is text as a constant. Answer You can use {‘ ‘} syntax to insert intentional whitespace (or tabs, newlines, etc).
What is axios rate limit?
Does anyone know’s the rate limit of the axios api because it is throwing a lot of 429 errors when i am using it here is my codes Answer Axios is an Http Client. Http Clients won’t have a rate limit. However, API’s typically have rate limiting implemented (especially public onces). The error…
How to resolve “Animated: `useNativeDriver` is not supported because the native animated module is missing.” in react-navigation?
I am working on expo SDK Version: 36, and on all platforms (ios/android/web) When installing react-navigation for the first time as described in the documentation and running jest –watch while doing it, and the following warning appeared: It also happen in the browser console: Related issues: https://gi…
How to place floating action button in bottom right in React Native
I am trying to place a floating action button in the lower right corner of my app but it is placing it in the top left way off screen. Returned view: Styles: My current view displays a header and a bottom tab view. I am able to place multiple FAB’s in each tab screen but that produces an undesirable beh…
How get notifications from stack overflow for new questions?
I would like to answer to new javascript, react, react-native and node questions. So, how would I know about the new questions which are asked by users on these areas? Answer Open a Websocket connection to wss://qa.sockets.stackexchange.com/, then send the message 1-questions-newest-tag-TAG where TAG is the t…
What is a react js the way to learn?
I was a Java developer for coding Android for 3 years But now I find that learning to React.Js brings me one step closer to world-class technology. I did a lot of research on its learning path . I realized that for React.js and React Native I had to learn the following sequence : 1-html 2-css 3-java script 4-…