Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native update state array of objects

let markers = [ ...this.state.markers ];
markers[index] = {...markers[index], key: value};
this.setState({ markers });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #update #state #array #objects
ADD COMMENT
Topic
Name
4+4 =