native-pytech 1.0.91 → 1.0.92
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type Props from './types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar, ...props }: Props) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Stack, router } from "expo-router";
|
|
2
2
|
import React, { memo } from "react";
|
|
3
3
|
import Content from '../Content';
|
|
4
|
-
export default memo(({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar = 'Buscar',
|
|
4
|
+
export default memo(({ children, onChangeSearchText, onSelectionChange, placeholderSearchBar = 'Buscar', ...props }) => {
|
|
5
5
|
const _onSelectionChange = async (selection) => {
|
|
6
6
|
await onSelectionChange?.(selection);
|
|
7
7
|
router.back();
|
|
8
8
|
};
|
|
9
9
|
return (<>
|
|
10
10
|
<Stack.Toolbar placement="right">
|
|
11
|
-
<Stack.Toolbar.Button onPress={
|
|
11
|
+
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
12
12
|
<Stack.Toolbar.Icon sf="xmark"/>
|
|
13
13
|
</Stack.Toolbar.Button>
|
|
14
14
|
</Stack.Toolbar>
|
|
@@ -20,11 +20,6 @@ type Props = {
|
|
|
20
20
|
@default 'Buscar'
|
|
21
21
|
*/
|
|
22
22
|
placeholderSearchBar?: string;
|
|
23
|
-
/**
|
|
24
|
-
Function to be called when the user press the cancel button on the header.
|
|
25
|
-
@default () => router.back()
|
|
26
|
-
*/
|
|
27
|
-
onPressHeaderCancel?: () => void;
|
|
28
23
|
/**
|
|
29
24
|
Adjusts the row insets on ios.
|
|
30
25
|
Is is useful when uses items with gradients.
|