Posts by Gabriel Mariano • 57 points
8 posts
-
0
votes1
answer75
viewsQ: Check that all sub-rray items are in "false" status
I have an array(parent) and within it I have two more arrays. The child arrays exist a property status. I would like to know how I can validate that all items in the array are with the property…
-
-1
votes0
answers21
viewsQ: Processing of subarray data
I have an array(thirdArray) and there is a subArray(data). I need to do a treatment, where every data you have with an amount above 0 he receives a status true but a status false. After doing this…
-
-1
votes2
answers38
viewsA: How to make continuous increment with React Native Touchable?
The shape I found was using onPressIn and onPressOut with setTimeout. const App = () => { const [count, setCount] = useState(0); const [timer,setTimer] = useState(null); const handlePressIn = ()…
-
0
votes2
answers38
viewsQ: How to make continuous increment with React Native Touchable?
Is there any property in the TouchableOpacity React Native which, when I pressed the increment button and held the touch, continued incrementing the values? For example, I have this button:…
-
0
votes0
answers29
viewsQ: Remove duplicate data from an object array
I would like to know how do I remove duplicate data from an object array. I tried it the way below, if there is another way better please tell me : I first created two arrays and then merged the two…
-
0
votes0
answers41
viewsQ: Generated apk with zero bytes
Personal talk I’m having trouble generating an apk with React Native. It comes to build the project and run in the simulator, but the app-release.apk file that is generated in the…
-
-1
votes1
answer30
viewsQ: Place one state array inside another
I wonder how I can put the contents of an array that is with true status within another array, for example: { id:1, Fruit:'Banana', status:true }, { id:2, Fruit:'Orange', status:true }, { id:3,…
-
1
votes2
answers58
viewsQ: Change the array data coming from the api
I have a question in an application on React Native I’d like your help. How do I increment a new item in the array that comes from the api. The array of api today returns so: data:[{ id:1,…