@klyftig/mobile-ui 1.10.0 → 1.10.1
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.
package/README.md
CHANGED
|
@@ -15,7 +15,10 @@ version history.
|
|
|
15
15
|
`expo`, `react`, `react-native`, `@expo/vector-icons`, `expo-blur`,
|
|
16
16
|
`expo-glass-effect`, `expo-linear-gradient`, `react-native-svg`,
|
|
17
17
|
`react-native-safe-area-context`, `expo-store-review` (native module, needs a
|
|
18
|
-
dev-client rebuild when added), and `zustand` (>= 5).
|
|
18
|
+
dev-client rebuild when added), and `zustand` (>= 5). `react-native` >= 0.83;
|
|
19
|
+
developed and typechecked against 0.88.1 / Expo SDK 58 (1.10.1 fixed the
|
|
20
|
+
removed `StyleSheet.absoluteFillObject` and other 0.88 type changes — apps on
|
|
21
|
+
RN 0.88 need >= 1.10.1).
|
|
19
22
|
|
|
20
23
|
## Review ("Rate Us") module
|
|
21
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klyftig/mobile-ui",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"test": "jest",
|
|
6
6
|
"sync": "bash scripts/sync-to-kaelo.sh",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@testing-library/react-native": "^13.3.3",
|
|
42
42
|
"@types/jest": "^29.5.14",
|
|
43
|
-
"@types/react": "~19.
|
|
44
|
-
"expo": "~
|
|
45
|
-
"expo-store-review": "~
|
|
43
|
+
"@types/react": "~19.3.0",
|
|
44
|
+
"expo": "~58.0.23",
|
|
45
|
+
"expo-store-review": "~58.0.2",
|
|
46
46
|
"jest": "^29.7.0",
|
|
47
|
-
"jest-expo": "~
|
|
48
|
-
"react": "19.
|
|
49
|
-
"react-native": "0.
|
|
50
|
-
"react-test-renderer": "
|
|
47
|
+
"jest-expo": "~58.0.14",
|
|
48
|
+
"react": "19.3.0",
|
|
49
|
+
"react-native": "0.88.1",
|
|
50
|
+
"react-test-renderer": "19.3.0",
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"zustand": "^5.0.15"
|
|
53
53
|
},
|
package/src/components/FAB.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useCallback, memo } from 'react';
|
|
2
2
|
import { View, TextInput as RNTextInput, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
-
import type {
|
|
3
|
+
import type { StyleProp, TextInputContentSizeChangeEvent, ViewStyle } from 'react-native';
|
|
4
4
|
import { MaterialCommunityIcons as Icon } from '@expo/vector-icons';
|
|
5
5
|
import { useTheme } from '../hooks/useTheme';
|
|
6
6
|
import { colors } from '../theme/colors';
|
|
@@ -94,7 +94,7 @@ const GlassInputComponent: React.FC<GlassInputProps> = ({
|
|
|
94
94
|
const [contentHeight, setContentHeight] = useState(0);
|
|
95
95
|
const isAutoGrow = multiline && autoGrow;
|
|
96
96
|
|
|
97
|
-
const handleContentSizeChange = useCallback((e:
|
|
97
|
+
const handleContentSizeChange = useCallback((e: TextInputContentSizeChangeEvent) => {
|
|
98
98
|
setContentHeight(e.nativeEvent.contentSize.height);
|
|
99
99
|
}, []);
|
|
100
100
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import type { ComponentRef } from 'react';
|
|
2
3
|
import {
|
|
3
4
|
ScrollView,
|
|
4
5
|
View,
|
|
@@ -59,7 +60,7 @@ export function WheelPicker({
|
|
|
59
60
|
loop = false,
|
|
60
61
|
}: WheelPickerProps) {
|
|
61
62
|
const { colors } = useTheme();
|
|
62
|
-
const scrollRef = useRef<ScrollView
|
|
63
|
+
const scrollRef = useRef<ComponentRef<typeof ScrollView>>(null);
|
|
63
64
|
const containerHeight = itemHeight * visibleCount;
|
|
64
65
|
const padding = (containerHeight - itemHeight) / 2;
|
|
65
66
|
const lastIndexRef = useRef<number>(-1);
|