diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 3639cc361..ea615d236 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -246,7 +246,7 @@ type DefaultProps = typeof defaultProps; * this.setState((state) => { * // copy the map rather than modifying state. * const selected = new Map(state.selected); - * selected.set(id, !state.get(id)); // toggle + * selected.set(id, !selected.get(id)); // toggle * return {selected}; * }); * };