Skip to content

Commit

Permalink
Remove unnecessary code from html-text-input-ui.android.js
Browse files Browse the repository at this point in the history
  • Loading branch information
etoledom committed Mar 26, 2019
1 parent 5139b51 commit d496c64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 1 addition & 17 deletions src/components/html-text-input-ui/html-text-input-ui.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,15 @@ type PropsType = {
};

type StateType = {
contentHeight: number,
};

class HTMLInputContainer extends React.Component<PropsType, StateType> {
static scrollEnabled: boolean;

constructor() {
super( ...arguments );

this.state = {
contentHeight: 0,
};
}

onContentSizeChange = ( event: NativeSyntheticEvent<TextInputContentSizeChangeEventData> ) => {
this.setState( { contentHeight: event.nativeEvent.contentSize.height } );
}

render() {
return (
<KeyboardAvoidingView style={ styles.keyboardAvoidingView } parentHeight={ this.props.parentHeight }>
<ScrollView
style={ { flex: 1 } }
keyboardDismissMode="interactive"
>
<ScrollView style={ styles.scrollView } >
{ this.props.children }
</ScrollView>
</KeyboardAvoidingView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
padding-top: $padding;
padding-bottom: $padding;
}

.scrollView {
flex: 1;
}

0 comments on commit d496c64

Please sign in to comment.