When I use the renderCustomizedRowChild or renderCustomizedButtonChild function, according to the documentation, I don't need to define the rowTextForSelection/buttonTextAfterSelection. However, this is not represented in TypeScript and therefore I get the following error:
No overload matches this call. Overload 1 of 2, '(props: SelectDropdownProps | Readonly<SelectDropdownProps>): SelectDropdown', gave the following error. Type '{ data: MenuItemOptionValue[]; defaultValueByIndex: number; onSelect: (selectedItem: any) => void; dropdownStyle: { borderRadius: number; }; buttonStyle: { width: string; ... 5 more ...; paddingHorizontal: number; }; ... 4 more ...; renderCustomizedRowChild: (item: any, index: number) => Element; }' is missing the following properties from type 'Readonly<SelectDropdownProps>': buttonTextAfterSelection, rowTextForSelection Overload 2 of 2, '(props: SelectDropdownProps, context: any): SelectDropdown', gave the following error. Type '{ data: MenuItemOptionValue[]; defaultValueByIndex: number; onSelect: (selectedItem: any) => void; dropdownStyle: { borderRadius: number; }; buttonStyle: { width: string; ... 5 more ...; paddingHorizontal: number; }; ... 4 more ...; renderCustomizedRowChild: (item: any, index: number) => Element; }' is missing the following properties from type 'Readonly<SelectDropdownProps>': buttonTextAfterSelection, rowTextForSelectionts(2769)
Would it be possible to adjust the definition, so that it's possible to use renderCustomizedRowChild/renderCustomizedButtonChild without TypeScript errors?
When I use the renderCustomizedRowChild or renderCustomizedButtonChild function, according to the documentation, I don't need to define the rowTextForSelection/buttonTextAfterSelection. However, this is not represented in TypeScript and therefore I get the following error:
No overload matches this call. Overload 1 of 2, '(props: SelectDropdownProps | Readonly<SelectDropdownProps>): SelectDropdown', gave the following error. Type '{ data: MenuItemOptionValue[]; defaultValueByIndex: number; onSelect: (selectedItem: any) => void; dropdownStyle: { borderRadius: number; }; buttonStyle: { width: string; ... 5 more ...; paddingHorizontal: number; }; ... 4 more ...; renderCustomizedRowChild: (item: any, index: number) => Element; }' is missing the following properties from type 'Readonly<SelectDropdownProps>': buttonTextAfterSelection, rowTextForSelection Overload 2 of 2, '(props: SelectDropdownProps, context: any): SelectDropdown', gave the following error. Type '{ data: MenuItemOptionValue[]; defaultValueByIndex: number; onSelect: (selectedItem: any) => void; dropdownStyle: { borderRadius: number; }; buttonStyle: { width: string; ... 5 more ...; paddingHorizontal: number; }; ... 4 more ...; renderCustomizedRowChild: (item: any, index: number) => Element; }' is missing the following properties from type 'Readonly<SelectDropdownProps>': buttonTextAfterSelection, rowTextForSelectionts(2769)
Would it be possible to adjust the definition, so that it's possible to use renderCustomizedRowChild/renderCustomizedButtonChild without TypeScript errors?