native-pytech 1.0.75 → 1.0.77
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,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ children, selected, onSelectionChange, adjustRowInsets }: Props) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { Host, Section, Picker } from '@expo/ui/swift-ui';
|
|
|
2
2
|
import { listRowInsets, listStyle, pickerStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
3
|
import React, { memo, useMemo } from 'react';
|
|
4
4
|
import { List } from "../../../../libs/swiftui";
|
|
5
|
-
export default memo(({ children,
|
|
5
|
+
export default memo(({ children, selected, onSelectionChange, adjustRowInsets }) => {
|
|
6
6
|
const _modifiersPicker = useMemo(() => [
|
|
7
7
|
pickerStyle('inline'),
|
|
8
8
|
...(adjustRowInsets ? [listRowInsets({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : []),
|
|
@@ -10,7 +10,7 @@ export default memo(({ children, selectedValue, onSelectionChange, adjustRowInse
|
|
|
10
10
|
return (<Host style={{ flex: 1 }}>
|
|
11
11
|
<List modifiers={[listStyle('inset')]} disablePaddingTop>
|
|
12
12
|
<Section>
|
|
13
|
-
<Picker selection={
|
|
13
|
+
<Picker selection={selected} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
|
|
14
14
|
{children}
|
|
15
15
|
</Picker>
|
|
16
16
|
</Section>
|