native-pytech 1.0.40 → 1.0.42

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.
@@ -7,7 +7,7 @@ export default memo(({ text, color, type = 'small', systemName }) => {
7
7
  const typeSizes = useMemo(() => sizes[type], [type]);
8
8
  const textComponent = useMemo(() => {
9
9
  const cantLetras = text?.length;
10
- if (!text || !cantLetras || systemName)
10
+ if (!text || !cantLetras)
11
11
  return null;
12
12
  if (cantLetras > 3)
13
13
  throw new Error('Text must be less than 3 characters');
@@ -13,9 +13,7 @@ type Props = {
13
13
  /**
14
14
  If it is given, displays a gradient.
15
15
  */
16
- gradientProps?: {
17
- text: GradientProps['text'];
18
- color: GradientProps['color'];
16
+ gradientProps?: Omit<GradientProps, 'type'> & {
19
17
  type: 'extraLarge' | 'extraExtraLarge';
20
18
  };
21
19
  /**
@@ -1,14 +1,11 @@
1
1
  import { Button, RNHostView, VStack } from '@expo/ui/swift-ui';
2
2
  import { frame, font, buttonStyle } from '@expo/ui/swift-ui/modifiers';
3
- import React, { memo, useMemo } from 'react';
3
+ import React, { memo } from 'react';
4
4
  import Gradient from '../../../../../libs/components/Gradient';
5
5
  import Text from '../Text';
6
6
  import Section from './Section';
7
7
  export default memo(({ title, subtitle, gradientProps, buttonProps, }) => {
8
8
  const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
9
- const titleElement = useMemo(() => (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
10
- {title}
11
- </Text>), [title]);
12
9
  return (<Section spacing={spacing}>
13
10
  {gradientProps && (<RNHostView matchContents>
14
11
  <Gradient {...gradientProps}/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",