Skip to content

Tag: react-native

Why is my useEffect function called only once?

I am rendering a list of Trips objects inside a FlatList. So I have a screen named Network where I have FlatList which represents each of the trips. My render method: Inside my Trip component is the trip information. Trip’s name AND trip’s geo locations. From those geolocations I want to get the t…

How to update nested object state in React

I have multiple checkbox svgs which i’m mapping over which removes the inner tick icon when I manually set either of the isSelected states to false. I want to remove/add the tick icon svg when I press the checkbox in my app. Im unsure where Im currently going wrong in my logic. It works correctly when I…