21 lines
397 B
TypeScript
21 lines
397 B
TypeScript
import { Button, Text, View } from 'react-native'
|
|
import { useCounter } from '@/hooks/useCounter'
|
|
|
|
export default function App() {
|
|
const { count, increment, decrement, reset } = useCounter(0)
|
|
|
|
return (
|
|
<View>
|
|
<Text>
|
|
Welcome to Nativewind!
|
|
</Text>
|
|
<Text>
|
|
Count:
|
|
<Text>{count}</Text>
|
|
</Text>
|
|
|
|
<Button title="你好" />
|
|
</View>
|
|
)
|
|
}
|