I have for example this :
this.state = {
lang1: { name: 'Anglais', code: "en" },
lang2: { name: 'Français', code: "fr" }
};
How can I setState the lang1.name? It doesn't work when I do:
this.setState({ lang1.name: "myExample" });
I'm new in React Native and I didn't understand that clearly