Skip to content

Commit

Permalink
fix: support rn-textarea style. close #949
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Mar 8, 2017
1 parent b12944b commit 20125cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/textarea-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default class TextAreaItem extends React.Component<TextAreaItemProps, any
render() {
const { inputCount } = this.state;
const {
value, defaultValue,
rows, error, clear, count, autoHeight, last, onErrorClick, styles,
value, defaultValue, rows, error, clear, count, autoHeight, last, onErrorClick,
styles, style,
} = this.props;

let valueProps;
Expand All @@ -94,15 +94,15 @@ export default class TextAreaItem extends React.Component<TextAreaItemProps, any
const maxLength = count > 0 ? count : undefined;
const restProps = assign({}, this.props);
[
'rows', 'error', 'clear', 'count', 'autoHeight', 'last', 'onErrorClick', 'styles',
'rows', 'error', 'clear', 'count', 'autoHeight', 'last', 'onErrorClick', 'styles', 'style',
].forEach(prop => {
if (restProps.hasOwnProperty(prop)) {
delete restProps[prop];
}
});

return (
<View style={[styles.container, containerStyle, { position: 'relative' }]}>
<View style={[styles.container, containerStyle, style, { position: 'relative' }]}>
<TextInput
clearButtonMode={clear ? 'while-editing' : 'never'}
underlineColorAndroid="transparent"
Expand Down

0 comments on commit 20125cc

Please sign in to comment.