import * as React from 'react'; import { useContext } from 'react'; import { StyleProp, StyleSheet } from 'react-native'; import { Text as RNPText } from 'react-native-paper'; import { ThemeContext } from '../Theme'; export interface IProps { children: string; style?: StyleProp; numberOfLines?: number; } export const Text = (props: IProps) => { const theme = useContext(ThemeContext); return ( {props.children} ); }; export const TextSecondaryColor = (props: IProps) => { const theme = useContext(ThemeContext); return ( {props.children} ); }; export const Title = (props: IProps) => { const theme = useContext(ThemeContext); return ( {props.children} ); }; const styles = StyleSheet.create({ text: { fontSize: 14, lineHeight: 20, }, textBold: { fontWeight: 'bold', }, subtitle: { fontSize: 14, lineHeight: 22, }, title: { fontSize: 16, lineHeight: 24, }, });