CaioQuirinoMedeiros / react-native-mask-input

🎭:iphone: A simple and effective Text Input with mask for ReactNative on iOS and Android. Includes obfuscation characters feature.
https://www.npmjs.com/package/react-native-mask-input
MIT License
309 stars 31 forks source link

Feature Request - Pass custom TextInput component #5

Closed bombillazo closed 1 year ago

bombillazo commented 3 years ago

Currently, this component relies on the base React Native TextInput component.

It would be great to pass in a custom TextInput that this library could use to "wrap around" and maintain the functionality and styling of the passed component while adding the masking logic.

nandorojo commented 2 years ago

Yeah I want the same thing. @CaioQuirinoMedeiros would you accept a PR? I could do this in a few minutes.

CaioQuirinoMedeiros commented 2 years ago

Yes @nandorojo. But mind to keep it typescript friendly, I'm sure that this is the real challenge here

nandorojo commented 2 years ago

Could just use customInputProps which reads the generic of InputComponent's props.

But I ended up just using styled from dripsy to achieve what I wanted anyway.

CasuallyCaffeinated commented 2 years ago

Any update on this?

bombillazo commented 1 year ago

Im no longer using RN, I'll let others request this if they need it.