From 56ae3a1b2df1da5fc2559c296096771bd3edfe7d Mon Sep 17 00:00:00 2001 From: Linus109 Date: Mon, 24 Nov 2025 22:06:55 +0100 Subject: [PATCH] added tailwind --- app.json | 3 +- app/Hello_World.tsx | 49 +++ app/_layout.tsx | 1 + app/index.tsx | 13 +- babel.config.js | 9 + global.css | 3 + metro.config.js | 6 + nativewind-env.d.ts | 1 + package-lock.json | 939 ++++++++++++++++++++++++++++++++++++++++++-- package.json | 15 +- tailwind.config.js | 10 + tsconfig.json | 5 +- 12 files changed, 1010 insertions(+), 44 deletions(-) create mode 100644 app/Hello_World.tsx create mode 100644 babel.config.js create mode 100644 global.css create mode 100644 metro.config.js create mode 100644 nativewind-env.d.ts create mode 100644 tailwind.config.js diff --git a/app.json b/app.json index d097947..be40188 100644 --- a/app.json +++ b/app.json @@ -23,7 +23,8 @@ }, "web": { "output": "static", - "favicon": "./assets/images/favicon.png" + "favicon": "./assets/images/favicon.png", + "bundler": "metro" }, "plugins": [ "expo-router", diff --git a/app/Hello_World.tsx b/app/Hello_World.tsx new file mode 100644 index 0000000..f9e177d --- /dev/null +++ b/app/Hello_World.tsx @@ -0,0 +1,49 @@ +import React, { useState } from 'react'; +import { Button, Text, View } from 'react-native'; + +// const styles = StyleSheet.create({ +// container: { +// alignItems: 'center', +// }, +// text: { +// fontSize: 40 +// } +// }) + +type HelloWorldProps = { + text: string; + aNumber: number; +} + +const HelloWorld = (props: HelloWorldProps) => { + return ( + + {props.text} : {props.aNumber} + + ) +} + +const Counter = () => { + const [count, setCount] = useState(0); + + return ( + +