react-native-boxes 1.4.32 → 1.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Modal.tsx +2 -1
package/package.json
CHANGED
package/src/Modal.tsx
CHANGED
|
@@ -379,7 +379,7 @@ export type DropDownViewProps = {
|
|
|
379
379
|
initialVisile?: Boolean,
|
|
380
380
|
title?: string,
|
|
381
381
|
displayType?: 'button' | 'input',
|
|
382
|
-
onRenderOption?: (opt: DropDownViewOption, setSelected
|
|
382
|
+
onRenderOption?: (opt: DropDownViewOption, setSelected: (selectedId: string, opt: DropDownViewOption) => void) => any,
|
|
383
383
|
forceDialogSelectOnWeb?: Boolean
|
|
384
384
|
swipeToCloseDisabled?: boolean
|
|
385
385
|
} & CompositeTextInputViewProps
|
|
@@ -469,6 +469,7 @@ export const DropDownView = (props: DropDownViewProps) => {
|
|
|
469
469
|
}
|
|
470
470
|
return (
|
|
471
471
|
<PressableView
|
|
472
|
+
key={opt.id}
|
|
472
473
|
onPress={() => {
|
|
473
474
|
setVisible(false)
|
|
474
475
|
props.onSelect(opt.id, opt)
|