When using renderCustomizedRowChild or renderCustomizedButtonChild, the default props rowTextForSelection or buttonTextAfterSelection (respectively) aren't needed but cause Typescript errors if they're omitted (see #75).
This PR requires (renderCustomizedRowChild OR rowTextForSelection) AND (renderCustomizedButtonChild OR buttonTextAfterSelection) to fix the error, while ensuring required props are included.
Fixes https://github.com/AdelRedaa97/react-native-select-dropdown/issues/75
When using
renderCustomizedRowChild
orrenderCustomizedButtonChild
, the default propsrowTextForSelection
orbuttonTextAfterSelection
(respectively) aren't needed but cause Typescript errors if they're omitted (see #75).This PR requires (
renderCustomizedRowChild
ORrowTextForSelection
) AND (renderCustomizedButtonChild
ORbuttonTextAfterSelection
) to fix the error, while ensuring required props are included.