Skip to content

Commit

Permalink
fix: correct padding offset in TextInput on Android when RTL (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Oct 2, 2022
1 parent 689961e commit c1ec023
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/TextInput/TextInputFlat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,12 @@ const TextInputFlat = ({
labelScale,
wiggleOffsetX: LABEL_WIGGLE_X_OFFSET,
topPosition,
paddingOffset: { paddingLeft, paddingRight },
paddingOffset: isAndroid
? {
paddingLeft: I18nManager.isRTL ? paddingRight : paddingLeft,
paddingRight: I18nManager.isRTL ? paddingLeft : paddingRight,
}
: { paddingRight, paddingLeft },
hasActiveOutline,
activeColor,
placeholderColor,
Expand Down

0 comments on commit c1ec023

Please sign in to comment.