Обновить текст отреагировать нативно
import React, { useState } from 'react';
import { View, Text } from 'react-native';
const ReactApp = () => {
const [myText, setMyText] = useState("My Original Text");
return (
<View>
<Text onPress = {() => setMyText("My Changed Text")}>
{myText}
</Text>
</View>
)
}
export default ReactApp;
Strange Spider