This commit is contained in:
Jorrin
2024-01-28 21:53:06 +01:00
parent 8977e3ea2c
commit 89d1310eac
8 changed files with 180 additions and 151 deletions

View File

@@ -1,4 +1,4 @@
import { Text } from 'react-native';
import { Text } from '../components/ui/Text';
import ScreenLayout from '../components/layout/ScreenLayout';

View File

@@ -1,11 +1,10 @@
import { Text } from 'react-native';
import ScreenLayout from '../components/layout/ScreenLayout';
import { Text } from '../components/ui/Text';
export default function HomeScreen() {
return (
<ScreenLayout title="Home" subtitle="This is where all magic happens">
<Text>Movies will be listed here</Text>
<Text className="text-white">Movies will be listed here</Text>
</ScreenLayout>
);
}

View File

@@ -1,5 +1,6 @@
import { Link, Stack } from 'expo-router';
import { Text, View } from 'react-native';
import { View } from 'react-native';
import { Text } from './components/ui/Text';
export default function NotFoundScreen() {
return (

View File

@@ -0,0 +1,9 @@
import { TextProps, Text as RNText } from 'react-native';
import { cn } from '../../lib/utils';
import { cva } from 'class-variance-authority';
const textVariants = cva('font-sans text-white');
export const Text = ({ className, ...props }: TextProps) => {
return <RNText className={cn(textVariants(), className)} {...props} />;
};

View File

@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}