Skip to content

Commit

Permalink
Replace "value" prop with "defaultValue"
Browse files Browse the repository at this point in the history
The purpose of this commit is to address the text entry issues that currently exist for the TextInput component, as described here: facebook/react-native#30503

A working workaround propose in that thread is to replace the "value" prop with "defaultValue".
  • Loading branch information
Siobhan committed Aug 10, 2021
1 parent a6a013b commit f6d9697
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const BottomSheetTextControl = ( {
<TextInput
label={ label }
onChangeText={ ( text ) => onChangeText( text ) }
value={ value }
defaultValue={ value }
multiline={ true }
placeholder={ placeholder }
placeholderTextColor={ '#87a6bc' }
Expand Down

0 comments on commit f6d9697

Please sign in to comment.