Posts by Eduardo Henrique • 148 points
6 posts
-
2
votes1
answer101
viewsA: How can I update a parent status via child in React?
Is that passing the function this way onClick={callbackParent(board.id)} already with the parentheses (and the parameters when there are), the function is executed immediately in the rendering. Now…
-
0
votes3
answers125
viewsA: Check whether an item exists within an array, using a variable
That condition typeof checkOne[0].attributes.tipo !== 'undefined' will always be false, because there is no property tipo inside attributes, that is to say, attributes.tipo is undefined. In addition…
-
0
votes1
answer161
viewsA: How to install a package manually in an React Native project?
You can install from Github like this: npm install git+https://[email protected]/teopeurt/react-native-threatmetrix.git
-
1
votes2
answers365
viewsA: How to render asynchronous content in React Native?
You must do things separately, a function async it takes a while to return, while the component is already rendered. A solution would be: Have a variable in state, where you will store the items:…
-
0
votes2
answers132
viewsA: How to pass value between Functional Components using Navigation.navigate
Try this: const AuditScreen = ({ navigation, route }) => { const { audit } = route.params; console.log(audit); ... }
-
0
votes1
answer130
viewsQ: How do I know if a file exists in Storage Firabase?
I’m using Firebase Storage to store a user profile photo, I made a method to search the image and place it in an Imageview. It works very well when the image exists in Firebase, but when it doesn’t…