native-pytech 1.0.203 → 1.0.205
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.
|
@@ -5,7 +5,7 @@ import { Ionicons } from '@expo/vector-icons';
|
|
|
5
5
|
import colors, { sizes } from '../../constants';
|
|
6
6
|
export default memo(({ text, color = 'default', type = 'small', icon, ionIconName, }) => {
|
|
7
7
|
const typeSizes = useMemo(() => sizes[type], [type]);
|
|
8
|
-
const iconSize = typeSizes.diameter * 0.
|
|
8
|
+
const iconSize = typeSizes.diameter * 0.5;
|
|
9
9
|
const textComponent = useMemo(() => {
|
|
10
10
|
const cantLetras = text?.length;
|
|
11
11
|
if (!text || !cantLetras)
|
|
@@ -33,6 +33,11 @@ const Table = memo(({ children, title, renderDetail, colorThemeType = 'default',
|
|
|
33
33
|
const layoutAnimation = disableLayoutAnimation ? undefined : (isLowTier ? LinearTransition.duration(500) : LinearTransition.easing(Easing.bezier(0.2, 0.2, 0, 1)).duration(600));
|
|
34
34
|
// ------------- useEffect -------------
|
|
35
35
|
Hooks.useEffectWithoutFirstRender(() => store.deleted.keys.set(keys), [keys]);
|
|
36
|
+
const tableAnimations = Platform.OS === 'web' ? {} : {
|
|
37
|
+
exiting: FadeOut.duration(100),
|
|
38
|
+
entering: FadeIn.duration(100),
|
|
39
|
+
layout: layoutAnimation
|
|
40
|
+
};
|
|
36
41
|
const value = useMemo(() => ({ colorThemeType, type, keys, allBorders }), [colorThemeType, type, keys, allBorders]);
|
|
37
42
|
return (<Animated.View key={title || 'title'} layout={Platform.OS === 'web' ? undefined : LinearTransition.duration(100).easing(Easing.bezier(0.1, 0.1, 0, 1))} style={[
|
|
38
43
|
styles.container,
|
|
@@ -44,7 +49,7 @@ const Table = memo(({ children, title, renderDetail, colorThemeType = 'default',
|
|
|
44
49
|
{title}
|
|
45
50
|
</Animated.Text>}
|
|
46
51
|
|
|
47
|
-
<Animated.View
|
|
52
|
+
<Animated.View {...tableAnimations} style={[
|
|
48
53
|
styles.contentContainer,
|
|
49
54
|
{ backgroundColor: colors.table[colorThemeType][colorScheme].background },
|
|
50
55
|
contentContainerStyle,
|