native-pytech 1.0.202 → 1.0.203

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,6 +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.4;
8
9
  const textComponent = useMemo(() => {
9
10
  const cantLetras = text?.length;
10
11
  if (!text || !cantLetras)
@@ -16,7 +17,7 @@ export default memo(({ text, color = 'default', type = 'small', icon, ionIconNam
16
17
  </Text>);
17
18
  }, [text, typeSizes]);
18
19
  return (<LinearGradient style={[styles.gradient, { height: typeSizes.diameter, borderRadius: typeSizes.diameter }]} colors={[colors[color].light, colors[color].dark]} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }}>
19
- {textComponent ?? (icon ?? (ionIconName && <Ionicons name={ionIconName} size={24} color={'white'}/>))}
20
+ {textComponent ?? (icon ?? (ionIconName && <Ionicons name={ionIconName} size={iconSize} color={'white'}/>))}
20
21
  </LinearGradient>);
21
22
  });
22
23
  const styles = StyleSheet.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.202",
3
+ "version": "1.0.203",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",