/** * Sample React Native App * https://github.com/facebook/react-native * * Generated with the TypeScript template * https://github.com/react-native-community/react-native-template-typescript * * @format */ import React, {useState} from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, useColorScheme, Text, Button, } from 'react-native'; import {Colors, Header} from 'react-native/Libraries/NewAppScreen'; const App = () => { const [title, setTitle] = useState('this is test title'); const isDarkMode = useColorScheme() === 'dark'; const setTitles = () => { setTitle('a'); }; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return (