mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 11:33:26 +00:00
help
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Text } from 'react-native';
|
||||
import { Text } from '../components/ui/Text';
|
||||
|
||||
import ScreenLayout from '../components/layout/ScreenLayout';
|
||||
|
||||
|
@@ -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>
|
||||
);
|
||||
}
|
||||
|
@@ -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 (
|
||||
|
9
apps/mobile/app/components/ui/Text.tsx
Normal file
9
apps/mobile/app/components/ui/Text.tsx
Normal 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} />;
|
||||
};
|
6
apps/mobile/app/lib/utils.ts
Normal file
6
apps/mobile/app/lib/utils.ts
Normal 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));
|
||||
}
|
@@ -12,7 +12,13 @@ export default {
|
||||
extend: {
|
||||
colors,
|
||||
fontFamily: {
|
||||
|
||||
sans: ['OpenSansRegular'],
|
||||
thin: ['OpenSansLight'],
|
||||
normal: ['OpenSansRegular'],
|
||||
medium: ['OpenSansMedium'],
|
||||
semibold: ['OpenSansSemiBold'],
|
||||
bold: ['OpenSansBold'],
|
||||
extrabold: ['OpenSansExtra'],
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user