Skip to content

Commit

Permalink
fix: react native text input alignment with prefix (#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar authored Nov 2, 2023
1 parent 2d07f56 commit f0d4dce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-cycles-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/blade": patch
---

fix: react native text input alignment with prefix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
TouchableHighlightProps,
GestureResponderEvent,
} from 'react-native';
import { Platform as RNPlatform } from 'react-native';
import type { BaseInputProps } from './BaseInput';
import type { StyledBaseInputProps } from './types';
import { getBaseInputStyles } from './baseInputStyles';
Expand Down Expand Up @@ -127,7 +128,10 @@ const getRNInputStyles = (
hasTags: props.hasTags,
isDropdownTrigger: props.isDropdownTrigger,
}),
lineHeight: undefined,
lineHeight: RNPlatform.select({
android: makeSize(props.theme.typography.lineHeights[100]),
ios: undefined,
}),
textAlignVertical: 'top',
height: getInputHeight({
isTextArea: props.isTextArea,
Expand Down

0 comments on commit f0d4dce

Please sign in to comment.