Skip to content

Commit

Permalink
fix: do not require the TextInput multiline prop
Browse files Browse the repository at this point in the history
  • Loading branch information
gawrysiak authored and satya164 committed Mar 6, 2018
1 parent 74e3228 commit adb97b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Props = {
/**
* Whether the input can have multiple lines.
*/
multiline: boolean,
multiline?: boolean,
/**
* The number of lines to show in the input (Android only).
*/
Expand Down Expand Up @@ -109,6 +109,7 @@ type State = {
class TextInput extends React.Component<Props, State> {
static defaultProps = {
disabled: false,
multiline: false,
};

constructor(props) {
Expand Down

0 comments on commit adb97b3

Please sign in to comment.