Skip to content

Commit

Permalink
(fix) TextInput RTL issue when focus (#317)
Browse files Browse the repository at this point in the history
Without textAlign, RTL not working perfectly on textInput. Thanks for your awesome work.
  • Loading branch information
saifulapm authored Jul 11, 2024
1 parent 0058830 commit 93288dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const Input = React.forwardRef<TextInput, NInputProps>((props, ref) => {
{...inputProps}
style={StyleSheet.flatten([
{ writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr' },
{ textAlign: I18nManager.isRTL ? 'right' : 'left' },
inputProps.style,
])}
/>
Expand Down

0 comments on commit 93288dd

Please sign in to comment.