sohobloo / react-native-modal-dropdown

A react-native dropdown/picker/selector component for both Android & iOS.
MIT License
1.19k stars 478 forks source link

renderButtonComponent or renderRightComponent does not exist in ModalDropdownProps in latest version #267

Open Baloc22m opened 2 years ago

Baloc22m commented 2 years ago

Is this by design?

It works but I get a typescript error as follows:

Property 'renderRightComponent' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ModalDropdown> & Readonly<ModalDropdownProps> & Readonly<...>'.ts(2769)

Will it stop working in future? If yes, what is the alternative to custom render the dropdown main button?

jonatascm commented 2 years ago

The renderRightComponent is missing in types. How to make a fix of this?

Do I need to create a PR here or https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native-modal-dropdown/index.d.ts?