native-pytech 1.0.77 → 1.0.78
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.
|
@@ -3,8 +3,8 @@ import React, { memo } from "react";
|
|
|
3
3
|
import Content from '../Content';
|
|
4
4
|
export default memo(({ children, onChangeSearchText, onSelectionChange, ...props }) => {
|
|
5
5
|
const router = useRouter();
|
|
6
|
-
const _onSelectionChange = (selection) => {
|
|
7
|
-
onSelectionChange?.(selection);
|
|
6
|
+
const _onSelectionChange = async (selection) => {
|
|
7
|
+
await onSelectionChange?.(selection);
|
|
8
8
|
router.back();
|
|
9
9
|
};
|
|
10
10
|
return (<>
|
|
@@ -14,7 +14,7 @@ type Props = {
|
|
|
14
14
|
/**
|
|
15
15
|
Function to be called when the user selects a selection.
|
|
16
16
|
*/
|
|
17
|
-
onSelectionChange?: (selection: string) => void
|
|
17
|
+
onSelectionChange?: (selection: string) => void | Promise<void>;
|
|
18
18
|
/**
|
|
19
19
|
Adjusts the row insets on ios.
|
|
20
20
|
Is is useful when uses items with gradients.
|