native-pytech 1.0.159 → 1.0.162
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 {
|
|
2
|
-
import {
|
|
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
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Spacer,
|
|
2
|
-
import { Color } from 'expo-router';
|
|
1
|
+
import { Spacer, HStack } from '@expo/ui/swift-ui';
|
|
3
2
|
import { memo } from 'react';
|
|
4
3
|
import Text from '../Text';
|
|
4
|
+
import ChevronRight from '../ChevronRight';
|
|
5
5
|
export default memo(({ text, textProps }) => {
|
|
6
6
|
return (<>
|
|
7
7
|
<Spacer />
|
|
@@ -11,4 +11,3 @@ export default memo(({ text, textProps }) => {
|
|
|
11
11
|
</HStack>) : (<ChevronRight />)}
|
|
12
12
|
</>);
|
|
13
13
|
});
|
|
14
|
-
const ChevronRight = memo(() => (<Image systemName='chevron.right' size={16} color={Color.ios.opaqueSeparator}/>));
|