native-pytech 1.0.215 → 1.0.217

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.
@@ -40,6 +40,7 @@ const styles = StyleSheet.create({
40
40
  text: {
41
41
  color: 'white',
42
42
  fontWeight: 'bold',
43
+ userSelect: 'none',
43
44
  letterSpacing: -0.5,
44
45
  }
45
46
  });
@@ -1,6 +1,6 @@
1
1
  import { LinearGradient } from 'expo-linear-gradient';
2
2
  import React, { memo, useCallback, useMemo } from 'react';
3
- import { Pressable, StyleSheet, View } from 'react-native';
3
+ import { Pressable, StyleSheet, View, Platform } from 'react-native';
4
4
  import { Ionicons } from '@expo/vector-icons';
5
5
  import colors from '../../constants';
6
6
  import Table from '../Table';
@@ -36,7 +36,10 @@ export default memo(({ children, childrenLeft, childrenRight, onPress, style, ba
36
36
  </>;
37
37
  const styleView = useMemo(() => [styles.Item_View, style], [style]);
38
38
  const childrenOption = onPress === undefined ? <View style={styleView}>{content}</View>
39
- : (backgroundColorPressed ? (<Pressable onPress={onPress} style={({ pressed }) => !pressed ? styleView : [styleView, { backgroundColor: backgroundColorPressed }]}>
39
+ : (backgroundColorPressed ? (<Pressable onPress={onPress} style={({ pressed, hovered }) => [
40
+ styleView,
41
+ (pressed || (Platform.OS === 'web' && hovered)) && { backgroundColor: backgroundColorPressed }
42
+ ]}>
40
43
  {content}
41
44
  </Pressable>) : (<PressableView onPress={onPress} colorScheme={colorScheme} styleView={styleView}>
42
45
  {content}
@@ -50,7 +53,10 @@ export default memo(({ children, childrenLeft, childrenRight, onPress, style, ba
50
53
  const PressableView = memo(({ children, onPress, colorScheme, styleView }) => {
51
54
  const { colorThemeType } = useTable();
52
55
  const backgroundColorPressed = colors.table[colorThemeType][colorScheme].background_pressed;
53
- return (<Pressable onPress={onPress} style={({ pressed }) => !pressed ? styleView : [styleView, { backgroundColor: backgroundColorPressed }]}>
56
+ return (<Pressable onPress={onPress} style={({ pressed, hovered }) => [
57
+ styleView,
58
+ (pressed || (Platform.OS === 'web' && hovered)) && { backgroundColor: backgroundColorPressed }
59
+ ]}>
54
60
  {children}
55
61
  </Pressable>);
56
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.215",
3
+ "version": "1.0.217",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "@supabase/supabase-js": "^2.106.1",
28
28
  "color2k": "^2.0.3",
29
29
  "date-fns": "^4.1.0",
30
- "expo": "~56.0.3",
31
- "expo-blur": "~56.0.3",
30
+ "expo": "~56.0.17",
31
+ "expo-blur": "~56.0.4",
32
32
  "expo-constants": "~56.0.14",
33
33
  "expo-device": "~56.0.4",
34
34
  "expo-font": "~56.0.5",
@@ -43,7 +43,7 @@
43
43
  "expo-status-bar": "~56.0.4",
44
44
  "expo-symbols": "~56.0.5",
45
45
  "expo-system-ui": "~56.0.5",
46
- "expo-web-browser": "~56.0.5",
46
+ "expo-web-browser": "~56.0.6",
47
47
  "react": "19.2.3",
48
48
  "react-dom": "19.2.3",
49
49
  "react-native": "0.85.3",
@@ -80,7 +80,7 @@
80
80
  }
81
81
  },
82
82
  "dependencies": {
83
- "expo": "~56.0.17",
83
+ "expo": "56.0.17",
84
84
  "react": "19.2.3",
85
85
  "react-native": "0.85.3"
86
86
  }