File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
demo/src/screens/componentScreens Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default class InputScreen extends Component {
49
49
50
50
< TextInput
51
51
text70
52
- title = "Title "
52
+ title = "title "
53
53
placeholder = "character counter && error"
54
54
maxLength = { 3 }
55
55
showCharacterCounter
@@ -66,6 +66,7 @@ export default class InputScreen extends Component {
66
66
showCharacterCounter
67
67
onChangeText = { text => this . setState ( { error : text ? '' : 'This field is required' } ) }
68
68
error = { this . state . error }
69
+ autoCapitalize = "words"
69
70
/>
70
71
71
72
< TextInput
Original file line number Diff line number Diff line change @@ -254,12 +254,11 @@ export default class TextInput extends BaseInput {
254
254
renderTitle ( ) {
255
255
const { floatingPlaceholder, title} = this . props ;
256
256
if ( ! floatingPlaceholder && title ) {
257
- const capitalizedTitle = _ . capitalize ( title ) ;
258
257
return (
259
258
< Text
260
259
style = { this . styles . title }
261
260
>
262
- { capitalizedTitle }
261
+ { title }
263
262
</ Text >
264
263
) ;
265
264
}
You can’t perform that action at this time.
0 commit comments