How to use react-imask - 1 common examples

To help you get started, we’ve selected a few react-imask examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uNmAnNeR / imaskjs / packages / react-native-imask / src / mixin.js View on Github external
const userHandler = props[event];

          props[event] = (...args) => {
            maskHandlers[event](...args);
            if (userHandler) userHandler(...args);
          };

          return props;
        }, {...props});
    }
  };

  const nestedComponentName = ComposedComponent.displayName || ComposedComponent.name || 'Component';
  MaskedComponent.displayName = `IMaskNative(${nestedComponentName})`;

  return IMaskMixin(MaskedComponent);
}

react-imask

React input mask

MIT
Latest version published 7 months ago

Package Health Score

66 / 100
Full package analysis

Popular react-imask functions