Skip to content

Commit 93288dd

Browse files
authored
(fix) TextInput RTL issue when focus (obytes#317)
Without textAlign, RTL not working perfectly on textInput. Thanks for your awesome work.
1 parent 0058830 commit 93288dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui/input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const Input = React.forwardRef<TextInput, NInputProps>((props, ref) => {
105105
{...inputProps}
106106
style={StyleSheet.flatten([
107107
{ writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr' },
108+
{ textAlign: I18nManager.isRTL ? 'right' : 'left' },
108109
inputProps.style,
109110
])}
110111
/>

0 commit comments

Comments
 (0)