RyanHub - file viewer
filename: src/components/SomeComponent.tsx
branch: main
back to repo
import { View, Text } from 'react-native';
import { useTheme } from '../contexts/ThemeContext';

// include this in any other page and it will do all of its logic and render there
// abstracting things into nice components like this keeps your project managable
export function SomeComponent() {
    const { colors } = useTheme();
    return (
        <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
        <Text>this is a component!</Text>
        </View>
    );
}