Не Работает useState в boom, setBoom, с остальными все норм! REACT NATIVE
Можете пожалуйста объянить почему так происходит? не работает только с setBoom
export default App = () => {
const [boom, setBoom] = useState('boom');
const [text, setText] = useState(' Adjust the color in a way that looks standard on each platform. On iOS, the color prop controls the color of the text. On Android, the color adjusts the background color of the button.');
const [fruit, setFruit] = useState('Banana');
return(
<View>
<Button
title = 'Press me'
onPress= { ()=> setText(' STFU !!! ', ()=> setFruit('Kiwi !!! ', ()=> setBoom('WOW')))}
/>
<Separator />
<Text>{boom}</Text>
<Separator />
<Text>{text}</Text>
<Separator />
<Text>{fruit}</Text>
<Separator />
</View>
);
}