native-pytech 1.0.54 → 1.0.56

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.
@@ -2,7 +2,6 @@ import { Button, Text } from '@expo/ui/swift-ui';
2
2
  import { frame, font, foregroundStyle, buttonStyle, controlSize, disabled } from '@expo/ui/swift-ui/modifiers';
3
3
  import React, { memo, useMemo } from 'react';
4
4
  import { useWindowDimensions } from 'react-native';
5
- import colors from '../../constants';
6
5
  export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = true, themeColor = 'default' }) => {
7
6
  const { width } = useWindowDimensions();
8
7
  const modifiers = useMemo(() => [
@@ -13,8 +12,8 @@ export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = t
13
12
  const modifiersText = useMemo(() => [
14
13
  frame({ width: width - 110 }),
15
14
  font({ weight: 'semibold' }),
16
- foregroundStyle(colors.especiales.celeste)
17
- ], [width]);
15
+ ...(enabled ? [foregroundStyle('#85fffd')] : []), // colors.especiales.celeste
16
+ ], [width, enabled]);
18
17
  return (<Button onPress={onSubmit} modifiers={modifiers}>
19
18
  <Text modifiers={modifiersText}>
20
19
  Siguiente
@@ -1,7 +1,9 @@
1
1
  import React, { memo } from 'react';
2
- import { Overlay } from '@expo/ui/swift-ui';
2
+ import { Overlay, VStack } from '@expo/ui/swift-ui';
3
3
  export default memo(({ children, backgroundColorPage }) => {
4
4
  return (<Overlay.Content>
5
- {children}
5
+ <VStack spacing={10}>
6
+ {children}
7
+ </VStack>
6
8
  </Overlay.Content>);
7
9
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",