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 +1,7 @@
1
- export { default } from './src/Page';
1
+ import Page from './src/Page';
2
+ import Item from './src/Item';
3
+ type PickerPageComponent = typeof Page & {
4
+ Item: typeof Item;
5
+ };
6
+ declare const PickerPage: PickerPageComponent;
7
+ export default PickerPage;
@@ -1 +1,5 @@
1
- export { default } from './src/Page';
1
+ import Page from './src/Page';
2
+ import Item from './src/Item';
3
+ const PickerPage = Page;
4
+ PickerPage.Item = Item;
5
+ export default PickerPage;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type Props from './types';
3
- declare const _default: React.MemoExoticComponent<({ children, selectedValue, onSelectionChange, adjustRowInsets }: Props) => React.JSX.Element>;
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, selectedValue, onSelectionChange, adjustRowInsets }) => {
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={selectedValue} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
13
+ <Picker selection={selected} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
14
14
  {children}
15
15
  </Picker>
16
16
  </Section>
@@ -6,7 +6,7 @@ type Props = {
6
6
  /**
7
7
  Selected value.
8
8
  */
9
- selectedValue?: string;
9
+ selected?: string;
10
10
  /**
11
11
  Function to be called when the user changes the search text.
12
12
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",