mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
29 lines
582 B
TypeScript
29 lines
582 B
TypeScript
import { StyleSheet } from "react-native"
|
|
import { Button } from "react-native-paper"
|
|
import { SafeAreaView } from "react-native-safe-area-context"
|
|
|
|
const NewHabitPage: React.FC = () => {
|
|
return (
|
|
<SafeAreaView style={styles.container}>
|
|
<Button
|
|
mode="contained"
|
|
onPress={() => {
|
|
return console.log("Pressed")
|
|
}}
|
|
>
|
|
Press me
|
|
</Button>
|
|
</SafeAreaView>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
},
|
|
})
|
|
|
|
export default NewHabitPage
|