| 12345678910111213141516171819202122232425262728 |
- import React from 'react';
- import { StyleSheet, Text, View } from 'react-native';
- import { Button } from 'react-native-paper';
- export default function TestScreen() {
- return (
- <View style={styles.container}>
- <Text style={styles.text}>React!</Text>
- <Button mode="contained" onPress={() => console.log('Pressed')}>
- Click me
- </Button>
- </View>
- );
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#f0f0f0',
- },
- text: {
- fontSize: 32,
- fontWeight: 'bold',
- color: '#333',
- },
- });
|