File tree 3 files changed +12
-3
lines changed
components/ExpensiTextInput
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,19 @@ class BaseExpensiTextInput extends Component {
120
120
ignoreLabelTranslateX,
121
121
innerRef,
122
122
autoFocus,
123
+ multiline,
123
124
...inputProps
124
125
} = this . props ;
125
126
126
127
const hasLabel = Boolean ( label . length ) ;
127
128
return (
128
129
< View >
129
- < View style = { [ styles . componentHeightLarge , ...containerStyles ] } >
130
+ < View
131
+ style = { [
132
+ ! multiline && styles . componentHeightLarge ,
133
+ ...containerStyles ,
134
+ ] }
135
+ >
130
136
< TouchableWithoutFeedback onPress = { ( ) => this . input . focus ( ) } focusable = { false } >
131
137
< View
132
138
style = { [
@@ -160,6 +166,7 @@ class BaseExpensiTextInput extends Component {
160
166
placeholderTextColor = { themeColors . placeholderText }
161
167
underlineColorAndroid = "transparent"
162
168
style = { [ ...inputStyle , errorText ? styles . errorOutline : undefined ] }
169
+ multiline = { multiline }
163
170
onFocus = { this . onFocus }
164
171
onBlur = { this . onBlur }
165
172
onChangeText = { this . setValue }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class WorkspaceInvitePage extends React.Component {
52
52
53
53
this . state = {
54
54
userLogins : '' ,
55
- welcomeNote : '' ,
55
+ welcomeNote : this . getWelcomeNotePlaceholder ( ) ,
56
56
} ;
57
57
58
58
this . focusEmailOrPhoneInput = this . focusEmailOrPhoneInput . bind ( this ) ;
@@ -128,7 +128,7 @@ class WorkspaceInvitePage extends React.Component {
128
128
label = { this . props . translate ( 'workspace.invite.personalMessagePrompt' ) }
129
129
autoCompleteType = "off"
130
130
autoCorrect = { false }
131
- numberOfLines = { 10 }
131
+ numberOfLines = { 5 }
132
132
textAlignVertical = "top"
133
133
multiline
134
134
value = { this . state . welcomeNote }
Original file line number Diff line number Diff line change @@ -542,6 +542,8 @@ const styles = {
542
542
expensiTextInput : {
543
543
fontFamily : fontFamily . GTA ,
544
544
fontSize : variables . fontSizeNormal ,
545
+ color : themeColors . text ,
546
+ ...spacing . pv0 ,
545
547
} ,
546
548
expensiTextInputDesktop : addOutlineWidth ( { } , 0 ) ,
547
549
expensiTextInputAndroid : left => ( {
You can’t perform that action at this time.
0 commit comments