Skip to content

Commit

Permalink
Remove hardcode width of prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Mar 4, 2022
1 parent e872468 commit 791758e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/TextInput/BaseTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as Expensicons from '../Icon/Expensicons';
import Text from '../Text';
import * as styleConst from './styleConst';
import * as StyleUtils from '../../styles/StyleUtils';
import variables from '../../styles/variables';

class BaseTextInput extends Component {
constructor(props) {
Expand All @@ -29,7 +28,7 @@ class BaseTextInput extends Component {
labelScale: new Animated.Value(activeLabel ? styleConst.ACTIVE_LABEL_SCALE : styleConst.INACTIVE_LABEL_SCALE),
passwordHidden: props.secureTextEntry,
textInputWidth: 0,
prefixWidth: variables.fontSizeNormalHeight,
prefixWidth: 0,
};

this.input = null;
Expand Down

0 comments on commit 791758e

Please sign in to comment.