Skip to content

Commit 3ec5ba0

Browse files
authored
Fix/TextField - Unneeded iOS multiline spacing (#781)
* Remove unneeded ios multiline spacing * Lint
1 parent 36297d3 commit 3ec5ba0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/inputs/TextField.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export default class TextField extends BaseInput {
374374
/** Renders */
375375
renderPlaceholder() {
376376
const {floatingPlaceholderState, floatingPlaceholderTranslate} = this.state;
377-
const {placeholder, placeholderTextColor, floatingPlaceholderColor, floatingPlaceholderStyle, multiline} = this.getThemeProps();
377+
const {placeholder, placeholderTextColor, floatingPlaceholderColor, floatingPlaceholderStyle} = this.getThemeProps();
378378
const typography = this.getTypography();
379379
const placeholderColor = this.getStateColor(placeholderTextColor || PLACEHOLDER_COLOR_BY_STATE.default);
380380

@@ -401,7 +401,7 @@ export default class TextField extends BaseInput {
401401
{
402402
translateY: floatingPlaceholderState.interpolate({
403403
inputRange: [0, 1],
404-
outputRange: multiline && Constants.isIOS ? [30, 5] : [25, 0]
404+
outputRange: [25, 0]
405405
})
406406
},
407407
{
@@ -714,7 +714,7 @@ function createStyles({centered, multiline, expandable}) {
714714
flexDirection: 'row',
715715
justifyContent: centered ? 'center' : undefined,
716716
borderBottomWidth: 1,
717-
borderColor: Colors.dark70,
717+
borderColor: Colors.dark70,
718718
paddingBottom: Constants.isIOS ? 10 : 5
719719
},
720720
innerContainerWithoutUnderline: {

0 commit comments

Comments
 (0)