test.tsx 620 B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import { StyleSheet, Text, View } from 'react-native';
  3. import { Button } from 'react-native-paper';
  4. export default function TestScreen() {
  5. return (
  6. <View style={styles.container}>
  7. <Text style={styles.text}>React!</Text>
  8. <Button mode="contained" onPress={() => console.log('Pressed')}>
  9. Click me
  10. </Button>
  11. </View>
  12. );
  13. }
  14. const styles = StyleSheet.create({
  15. container: {
  16. flex: 1,
  17. justifyContent: 'center',
  18. alignItems: 'center',
  19. backgroundColor: '#f0f0f0',
  20. },
  21. text: {
  22. fontSize: 32,
  23. fontWeight: 'bold',
  24. color: '#333',
  25. },
  26. });