GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.17k stars 2.39k forks source link

Allow overriding underlying native component #4362

Closed AndrewIngram closed 2 years ago

AndrewIngram commented 2 years ago

I'm using react-native-text-input-mask, which provides a native component that's ultimately a wrapper around React Native's TextInput (with a few additional props, and a different onChangeText signature). I want to use it with NativeBase, as well as all my theme config, but I'm finding that i'm having to reimplement the majority of the Input component, including a whole bunch of private APIs that aren't exposed.

I'd be interested in a mechanism that lets us override the underlying native component, something like:


<Input baseComponent={TextInputMask} /* other props */ />
Viraj-10 commented 2 years ago

Hi @AndrewIngram, Thanks for reporting the issue. We will look into it.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.