import { useColors } from './Provider'; import React from 'react'; import { StyleSheet, Text, View, ViewStyle } from 'react-native'; import { TouchableRipple, useTheme } from 'react-native-paper'; interface Props { onPress: () => void; error: boolean; label: string; value: string | number | undefined; right?: React.ReactNode; style?: ViewStyle; } const TextInputFaker = ({ onPress, error, label, value, right, style, }: Props) => { const { colors: paperColors } = useTheme(); const { getColor } = useColors(); return ( {label} {!!value && {value}} {right} ); }; export default TextInputFaker; const styles = StyleSheet.create({ labelWithValue: { fontSize: 12 }, labelWithoutValue: { fontSize: 16 }, text: { marginTop: 5, fontSize: 16 }, input: { backgroundColor: 'white', padding: 10, borderTopRightRadius: 3, borderTopLeftRadius: 3, height: 60, justifyContent: 'center', }, });