native-pytech 1.0.164 → 1.0.166

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.
@@ -11,6 +11,7 @@ export default memo(({ itemKey, defaultValue, placeholder, keyboardType, autocap
11
11
  const keyRef = useRef(itemKey ?? 0);
12
12
  useEffect(() => {
13
13
  keyRef.current = registerItem(itemKey, ref);
14
+ onValueChange(defaultValue ?? '');
14
15
  }, []);
15
16
  // onChange
16
17
  const onValueChange = useCallback((value) => {
@@ -1,3 +1,3 @@
1
1
  import type Props from './types';
2
- declare const _default: import("react").MemoExoticComponent<({ children, onPress, icon, label, systemImage, listRowInsets, trailingText, trailingTextProps }: Props) => import("react").JSX.Element>;
2
+ declare const _default: import("react").MemoExoticComponent<({ children, onPress, icon, label, systemImage, listRowInsets, trailingText, trailingTextProps, trailingComponent }: Props) => import("react").JSX.Element>;
3
3
  export default _default;
@@ -2,13 +2,13 @@ import { Button, HStack, Label } from '@expo/ui/swift-ui';
2
2
  import { listRowInsets as listRowInsetsModifier, foregroundStyle } from '@expo/ui/swift-ui/modifiers';
3
3
  import { memo, useMemo } from 'react';
4
4
  import Trailing from './Trailing';
5
- export default memo(({ children, onPress, icon, label, systemImage, listRowInsets = false, trailingText, trailingTextProps }) => {
5
+ export default memo(({ children, onPress, icon, label, systemImage, listRowInsets = false, trailingText, trailingTextProps, trailingComponent }) => {
6
6
  const modifiers = useMemo(() => listRowInsets ? [listRowInsetsModifier({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : [], [listRowInsets]);
7
7
  return (<HStack modifiers={modifiers}>
8
8
  <Button onPress={onPress} modifiers={[foregroundStyle({ type: 'hierarchical', style: 'primary' })]}>
9
9
  {children ?? (!systemImage ? <Label title={label} icon={icon}/> : undefined)}
10
10
  </Button>
11
11
  {systemImage && <Label title={label} systemImage={systemImage} icon={icon}/>}
12
- <Trailing text={trailingText} textProps={trailingTextProps}/>
12
+ <Trailing text={trailingText} textProps={trailingTextProps} component={trailingComponent}/>
13
13
  </HStack>);
14
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",