import React from 'react'; import { I18nManager, StyleProp, StyleSheet, TextInput as RNTextInput, TextStyle } from 'react-native'; import { IRCTextInputProps } from './FormTextInput'; import { themes } from '../../lib/constants'; import { useTheme } from '../../theme'; const styles = StyleSheet.create({ input: { ...(I18nManager.isRTL ? { textAlign: 'right' } : { textAlign: 'auto' }) } }); export interface IThemedTextInput extends IRCTextInputProps { style: StyleProp; } export const TextInput = React.forwardRef(({ style, ...props }, ref) => { const { theme } = useTheme(); return ( ); });