native-pytech 1.0.159 → 1.0.160

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,5 +1,5 @@
1
- import { background, clipShape, buttonStyle, controlSize, frame, glassEffect, padding, foregroundStyle } from '@expo/ui/swift-ui/modifiers';
2
- import { Text, Button } from '@expo/ui/swift-ui';
1
+ import { clipShape, buttonStyle, controlSize, glassEffect, padding } from '@expo/ui/swift-ui/modifiers';
2
+ import { Button } from '@expo/ui/swift-ui';
3
3
  import React, { memo, useMemo } from 'react';
4
4
  import { colors } from '../../../../libs/components/Gradient';
5
5
  export default memo(({ color, size, selectedColor, onSelectColor, renderGradientIOS }) => {
@@ -22,15 +22,4 @@ export default memo(({ color, size, selectedColor, onSelectColor, renderGradient
22
22
  return (<Button onPress={() => onSelectColor?.(color)} modifiers={modifiersButton}>
23
23
  {React.createElement(renderGradientIOS, { color, sizeDiameter: size })}
24
24
  </Button>);
25
- const modifiers = useMemo(() => [
26
- frame({ width: size, height: size }),
27
- foregroundStyle('transparent'),
28
- background(colors[color].middle),
29
- clipShape('circle'),
30
- ], [size]);
31
- return (<Button modifiers={modifiersButton} onPress={() => onSelectColor?.(color)}>
32
- <Text modifiers={modifiers}>
33
- .
34
- </Text>
35
- </Button>);
36
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.159",
3
+ "version": "1.0.160",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",