xxxxxxxxxx
import React from 'react';
import {SafeAreaView, Text, StyleSheet} from 'react-native';
const App: React.FC = () => {
return (
<SafeAreaView>
<Text style={styles.text}>Hello World</Text>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
text: {
fontSize: 15,
marginVertical: 10,
marginHorizontal: 10,
},
});
export default App;
xxxxxxxxxx
npx react-native init nomeProjeto --template react-native-template-typescript
xxxxxxxxxx
cd [nome da pasta que o projeto esta]
yarn android
yarn ios
yarn start