INNER CODE UNIT · JavaScript

BaseTextComponent

bhrott/react-native-masked-text · lib/base-text-component.js:4

export default class BaseTextComponent extends PureComponent {
    constructor(props) {
        super(props);
        this._resolveMaskHandler();
    }

    componentDidMount() {
        this._bindProps(this.props);
    }

    componentDidUpdate(prevProps) {
        this._bindProps(prevProps);
    }

    updateValue(text) {
        let maskedText = this._getMaskedValue(text);
        const rawText = this.props.includeRawValueInChangeText ? this.getRawValueFor(maskedText) : undefined

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…