Skip to content

Commit 39b92c5

Browse files
committed
MaskedInput - remove TextField.extractOwnProps (#2827)
1 parent 633520a commit 39b92c5

File tree

1 file changed

+3
-4
lines changed
  • src/components/maskedInput

1 file changed

+3
-4
lines changed

src/components/maskedInput/old.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,19 @@ export default class MaskedInput extends BaseInput {
5656
}
5757

5858
render() {
59-
const {containerStyle} = this.props;
60-
const TextInputProps = TextField.extractOwnProps(this.props, ['containerStyle', 'style']);
59+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
60+
const {containerStyle, style} = this.props;
6161

6262
return (
6363
<TouchableOpacity style={containerStyle} activeOpacity={1} onPress={() => this.input.focus()}>
6464
<TextField
65-
{...this.props}
6665
ref={r => (this.input = r)}
6766
containerStyle={styles.hiddenInputContainer}
6867
style={styles.hiddenInput}
6968
enableErrors={false}
7069
hideUnderline
7170
placeholder=""
72-
{...TextInputProps}
71+
{...this.props}
7372
caretHidden
7473
multiline={false}
7574
onChangeText={this.onChangeText}

0 commit comments

Comments
 (0)