react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

renderButtonComponent or renderRightComponent does not exist in ModalDropdownProps in latest version

Open Baloc22m opened this issue 4 years ago • 1 comments

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?

Baloc22m avatar Dec 03 '21 05:12 Baloc22m

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?

jonatascm avatar Feb 01 '22 02:02 jonatascm