@ledgerhq/native-ui 0.35.0-nightly.1 → 0.36.0-next.0
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/lib/components/Form/Input/BaseInput/index.d.ts +1 -1
- package/lib/components/Form/Input/BaseInput/index.d.ts.map +1 -1
- package/lib/components/Form/Input/BaseInput/index.js +2 -1
- package/lib/components/Icon/type.d.ts +1 -1
- package/lib/components/Icon/type.d.ts.map +1 -1
- package/lib/components/Layout/ScrollListContainer/index.d.ts +1 -1
- package/lib/components/Layout/ScrollListContainer/index.d.ts.map +1 -1
- package/lib/components/Layout/ScrollListContainer/index.js +1 -0
- package/lib/components/Loader/InfiniteLoader/index.d.ts +2 -1
- package/lib/components/Loader/InfiniteLoader/index.d.ts.map +1 -1
- package/lib/components/Loader/InfiniteLoader/index.js +39 -33
- package/package.json +42 -40
|
@@ -94,7 +94,7 @@ export declare const InputRenderRightContainer: import("styled-components").Styl
|
|
|
94
94
|
flexDirection: string;
|
|
95
95
|
paddingLeft: string;
|
|
96
96
|
}, "alignItems" | "flexDirection" | "paddingLeft">;
|
|
97
|
-
declare function Input<T = string>(props: InputProps<T>, ref?:
|
|
97
|
+
declare function Input<T = string>(props: InputProps<T>, ref?: React.Ref<unknown>): JSX.Element;
|
|
98
98
|
declare const _default: <T>(props: InputProps<T> & {
|
|
99
99
|
ref?: React.ForwardedRef<TextInput> | null;
|
|
100
100
|
}) => ReturnType<typeof Input>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/BaseInput/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAuE,MAAM,OAAO,CAAC;AAC5F,OAAO,EACL,SAAS,EACT,cAAc,EAEd,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,QAAQ,CAAC,EAAE,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 -76,9 +76,10 @@ export const InputRenderRightContainer = styled(FlexBox).attrs(() => ({
|
|
|
76
76
|
// Yes, this is dirty. If you can figure out a better way please change the code :).
|
|
77
77
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78
78
|
const IDENTITY = (_) => _;
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
80
|
function Input(props, ref) {
|
|
80
81
|
const { value, onChange, onChangeText, onChangeEvent, disabled, error, renderLeft, renderRight, serialize = IDENTITY, deserialize = IDENTITY, containerStyle, hasBorder = true, inputContainerStyle, baseInputContainerStyle, inputErrorContainerStyles, autoFocus, onFocus, onBlur, color, inputErrorColor = "error.c50", showErrorIcon = false, ...textInputProps } = props;
|
|
81
|
-
const inputRef = useRef();
|
|
82
|
+
const inputRef = useRef(null);
|
|
82
83
|
useImperativeHandle(ref, () => inputRef.current, [inputRef]);
|
|
83
84
|
const inputValue = useMemo(() => serialize(value), [serialize, value]);
|
|
84
85
|
const handleChange = useCallback((value) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,CAAC,YAAY,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,KAAK,CAAC,YAAY,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const ScrollListContainer: React.ForwardRefExoticComponent<import("style
|
|
|
7
7
|
display?: string | undefined;
|
|
8
8
|
position?: string | undefined;
|
|
9
9
|
maxHeight?: string | number | undefined;
|
|
10
|
-
} & Omit<FlatListProps<
|
|
10
|
+
} & Omit<FlatListProps<unknown>, "data" | "onScroll" | "renderItem"> & {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
onScroll?: ((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined;
|
|
13
13
|
horizontal?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/ScrollListContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAEL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACT,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/ScrollListContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAEL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACT,MAAM,cAAc,CAAC;AAmBtB,QAAA,MAAM,mBAAmB;;;;;;;;cATX,MAAM,SAAS;wBACN,qBAAqB,iBAAiB,CAAC,KAAK,IAAI;;uCAqBtE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { View, } from "react-native";
|
|
|
3
3
|
import Animated from "react-native-reanimated";
|
|
4
4
|
import baseStyled from "../../styled";
|
|
5
5
|
const StyledFlatList = baseStyled.FlatList ``;
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
7
|
const AnimatedFlatList = Animated.createAnimatedComponent(StyledFlatList);
|
|
7
8
|
/*
|
|
8
9
|
** This Layout is a wrapper for FlatList that accepts
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import Svg from "react-native-svg";
|
|
4
4
|
import { SizeProps } from "styled-system";
|
|
5
|
-
declare const Loader: import("styled-components").StyledComponent<typeof Svg, import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
|
|
6
5
|
export type Props = React.ComponentProps<typeof Loader> & {
|
|
7
6
|
color?: string;
|
|
7
|
+
mock?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export default function InfiniteLoader({ size, color, mock, testID, ...extraProps }: Props): JSX.Element;
|
|
10
|
+
declare const Loader: import("styled-components").StyledComponent<typeof Svg, import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/InfiniteLoader/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/InfiniteLoader/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,GAAwD,MAAM,kBAAkB,CAAC;AAExF,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAiBxD,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAS,EACT,KAAqB,EACrB,IAAY,EACZ,MAAW,EACX,GAAG,UAAU,EACd,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAuFrB;AAED,QAAA,MAAM,MAAM,2RAQX,CAAC"}
|
|
@@ -1,48 +1,54 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import Svg, { LinearGradient, Stop, Mask, Path, Rect } from "react-native-svg";
|
|
2
|
+
import Svg, { LinearGradient, Stop, Mask, Path, Rect, G, Defs } from "react-native-svg";
|
|
3
3
|
import styled from "styled-components/native";
|
|
4
4
|
import { system, size } from "styled-system";
|
|
5
|
-
import Animated, {
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withRepeat, withTiming, cancelAnimation, Easing, } from "react-native-reanimated";
|
|
6
6
|
const strokeSystem = system({
|
|
7
7
|
stroke: {
|
|
8
8
|
property: "stroke",
|
|
9
9
|
scale: "colors",
|
|
10
10
|
},
|
|
11
11
|
});
|
|
12
|
-
const Loader = styled(Svg).attrs((props) => ({
|
|
13
|
-
...strokeSystem(props),
|
|
14
|
-
})) `
|
|
15
|
-
${size}
|
|
16
|
-
`;
|
|
17
12
|
export default function InfiniteLoader({ size = 38, color = "primary.c50", mock = false, testID = "", ...extraProps }) {
|
|
18
13
|
const rotation = useSharedValue(0);
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
transform: [
|
|
22
|
-
{
|
|
23
|
-
rotateZ: `${rotation.value}deg`,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
}, [rotation.value]);
|
|
14
|
+
// Start the rotation animation if not in mock mode
|
|
28
15
|
useEffect(() => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
if (!mock) {
|
|
17
|
+
rotation.value = withRepeat(withTiming(360, {
|
|
18
|
+
duration: 1000,
|
|
19
|
+
easing: Easing.linear,
|
|
20
|
+
}), mock ? 1 : -1, false);
|
|
21
|
+
}
|
|
33
22
|
return () => cancelAnimation(rotation);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
}, [mock, rotation.value]);
|
|
24
|
+
// Animated style for rotation
|
|
25
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
26
|
+
transform: [{ rotate: `${rotation.value}deg` }],
|
|
27
|
+
}));
|
|
28
|
+
return (React.createElement(Animated.View, { style: [{ display: "flex", justifyContent: "center", alignItems: "center" }, animatedStyle], testID: testID },
|
|
37
29
|
React.createElement(Loader, { size: size, stroke: color, viewBox: "0 0 38 38", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...extraProps },
|
|
38
|
-
React.createElement(
|
|
39
|
-
React.createElement(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
React.createElement(Defs, null,
|
|
31
|
+
React.createElement(LinearGradient, { id: "gradient-start", gradientUnits: "userSpaceOnUse", gradientTransform: "rotate(-20)" },
|
|
32
|
+
React.createElement(Stop, { offset: 0, stopColor: "white", stopOpacity: 0.5 }),
|
|
33
|
+
React.createElement(Stop, { offset: 1, stopColor: "white", stopOpacity: 1 })),
|
|
34
|
+
React.createElement(LinearGradient, { id: "gradient-end", gradientUnits: "userSpaceOnUse", gradientTransform: "rotate(-20)" },
|
|
35
|
+
React.createElement(Stop, { offset: 0, stopColor: "white", stopOpacity: 0.5 }),
|
|
36
|
+
React.createElement(Stop, { offset: 1, stopColor: "white", stopOpacity: 0 })),
|
|
37
|
+
React.createElement(Mask, { id: "gradient-mask", x: "0", y: "0", width: "44", height: "44", maskUnits: "userSpaceOnUse" },
|
|
38
|
+
React.createElement(Rect, { x: 0, y: -4, width: 44, height: 22, strokeWidth: 0, fill: "url(#gradient-start)", transform: "rotate(10)" }),
|
|
39
|
+
React.createElement(Rect, { x: 0, y: 18, width: 44, height: 21, strokeWidth: 0, fill: "url(#gradient-end)", transform: "rotate(10)" }))),
|
|
40
|
+
React.createElement(G, { mask: "url(#gradient-mask)" },
|
|
41
|
+
React.createElement(StyledPath, { d: "M34.8807 20.9499C35.3608 17.0398 34.3815 13.09 32.1304 9.85712C29.8793 6.6242 26.5146 4.33541 22.6808 3.42914C18.847 2.52287 14.8136 3.06283 11.3532 4.94559C7.89277 6.82836 5.24858 9.92158 3.92708 13.6328C2.60558 17.344 2.69968 21.4123 4.19135 25.0584C5.68302 28.7045 8.4674 31.6722 12.0112 33.3929C15.5549 35.1137 19.609 35.4666 23.3968 34.384C27.1846 33.3015 30.4398 30.8596 32.5391 27.526", strokeWidth: 6, strokeLinecap: "round", strokeLinejoin: "round", stroke: color, fill: "none" })))));
|
|
48
42
|
}
|
|
43
|
+
const Loader = styled(Svg).attrs((props) => ({
|
|
44
|
+
...strokeSystem(props),
|
|
45
|
+
width: props.size,
|
|
46
|
+
height: props.size,
|
|
47
|
+
})) `
|
|
48
|
+
${size}
|
|
49
|
+
width: ${(props) => props.size}px;
|
|
50
|
+
height: ${(props) => props.size}px;
|
|
51
|
+
`;
|
|
52
|
+
const StyledPath = styled(Path).attrs((props) => ({
|
|
53
|
+
...strokeSystem(props),
|
|
54
|
+
})) ``;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0-next.0",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,40 +36,41 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"color": "^4.0.0",
|
|
39
|
-
"react-native-modal": "
|
|
39
|
+
"react-native-modal": "14.0.0-rc.1",
|
|
40
40
|
"rn-range-slider": "2.1.1",
|
|
41
41
|
"styled-system": "^5.1.5",
|
|
42
|
-
"@ledgerhq/crypto-icons-ui": "^1.
|
|
43
|
-
"@ledgerhq/icons-ui": "^0.
|
|
42
|
+
"@ledgerhq/crypto-icons-ui": "^1.15.0-next.0",
|
|
43
|
+
"@ledgerhq/icons-ui": "^0.11.0-next.0",
|
|
44
44
|
"@ledgerhq/ui-shared": "^0.3.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=17",
|
|
48
48
|
"react-native": ">=0.64.0",
|
|
49
|
-
"react-native-reanimated": "3.16.
|
|
49
|
+
"react-native-reanimated": "3.16.7",
|
|
50
50
|
"react-native-svg": ">=12.1.1",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@babel/core": "
|
|
55
|
-
"@babel/generator": "
|
|
56
|
-
"@babel/plugin-
|
|
57
|
-
"@babel/plugin-
|
|
58
|
-
"@babel/plugin-
|
|
59
|
-
"@babel/plugin-
|
|
60
|
-
"@babel/plugin-transform-
|
|
61
|
-
"@babel/plugin-transform-shorthand-properties": "
|
|
62
|
-
"@babel/plugin-transform-template-literals": "
|
|
63
|
-
"@babel/preset-env": "
|
|
64
|
-
"@babel/runtime": "
|
|
54
|
+
"@babel/core": "7.27.1",
|
|
55
|
+
"@babel/generator": "7.27.1",
|
|
56
|
+
"@babel/plugin-transform-arrow-functions": "7.27.1",
|
|
57
|
+
"@babel/plugin-transform-class-properties": "7.27.1",
|
|
58
|
+
"@babel/plugin-transform-export-namespace-from": "7.27.1",
|
|
59
|
+
"@babel/plugin-transform-nullish-coalescing-operator": "7.27.1",
|
|
60
|
+
"@babel/plugin-transform-optional-chaining": "7.27.1",
|
|
61
|
+
"@babel/plugin-transform-shorthand-properties": "7.27.1",
|
|
62
|
+
"@babel/plugin-transform-template-literals": "7.27.1",
|
|
63
|
+
"@babel/preset-env": "7.27.1",
|
|
64
|
+
"@babel/runtime": "7.27.1",
|
|
65
65
|
"@emotion/core": "^11.0.0",
|
|
66
66
|
"@emotion/native": "^11.0.0",
|
|
67
|
-
"@expo/metro-config": "^0.
|
|
68
|
-
"@expo/webpack-config": "
|
|
69
|
-
"@react-native-async-storage/async-storage": "1.
|
|
67
|
+
"@expo/metro-config": "^0.19.11",
|
|
68
|
+
"@expo/webpack-config": "19.0.1",
|
|
69
|
+
"@react-native-async-storage/async-storage": "2.1.2",
|
|
70
70
|
"@react-native-community/cli-server-api": "^7.0.3",
|
|
71
71
|
"@react-native-community/datetimepicker": "6.7.5",
|
|
72
72
|
"@react-native-community/slider": "^4.4.2",
|
|
73
|
+
"@react-native/assets-registry": "0.77.2",
|
|
73
74
|
"@storybook/addon-actions": "^7.6.18",
|
|
74
75
|
"@storybook/addon-controls": "^7.6.18",
|
|
75
76
|
"@storybook/addon-essentials": "^7.6.18",
|
|
@@ -97,42 +98,43 @@
|
|
|
97
98
|
"@types/styled-components-react-native": "^5.1.3",
|
|
98
99
|
"@types/styled-system": "^5.1.13",
|
|
99
100
|
"assert": "^2.0.0",
|
|
100
|
-
"babel-loader": "
|
|
101
|
-
"babel-plugin-module-resolver": "
|
|
101
|
+
"babel-loader": "10.0.0",
|
|
102
|
+
"babel-plugin-module-resolver": "5.0.2",
|
|
102
103
|
"babel-plugin-react-docgen-typescript": "^1.5.1",
|
|
103
104
|
"babel-plugin-react-native-web": "^0.19.0",
|
|
104
|
-
"babel-preset-expo": "
|
|
105
|
+
"babel-preset-expo": "13.1.11",
|
|
106
|
+
"buffer": "6.0.3",
|
|
105
107
|
"camelcase": "^6.2.1",
|
|
106
108
|
"csstype": "^3.0.11",
|
|
107
109
|
"eslint-plugin-react": "^7.33.2",
|
|
108
110
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
109
111
|
"eslint-plugin-storybook": "^0.6.15",
|
|
110
|
-
"expo": "
|
|
112
|
+
"expo": "52.0.46",
|
|
111
113
|
"expo-asset": "8.10.1",
|
|
112
|
-
"expo-constants": "
|
|
113
|
-
"expo-font": "
|
|
114
|
-
"expo-modules-core": "
|
|
114
|
+
"expo-constants": "17.1.6",
|
|
115
|
+
"expo-font": "13.0.4",
|
|
116
|
+
"expo-modules-core": "2.2.3",
|
|
115
117
|
"fs-extra": "^10.0.1",
|
|
116
118
|
"glob": "^7.2.0",
|
|
117
|
-
"metro": "
|
|
118
|
-
"metro-config": "
|
|
119
|
-
"metro-core": "
|
|
119
|
+
"metro": "0.81.5",
|
|
120
|
+
"metro-config": "0.81.5",
|
|
121
|
+
"metro-core": "0.81.5",
|
|
120
122
|
"metro-minify-uglify": "^0.76.8",
|
|
121
|
-
"metro-react-native-babel-preset": "
|
|
122
|
-
"metro-react-native-babel-transformer": "
|
|
123
|
-
"metro-resolver": "
|
|
124
|
-
"metro-runtime": "
|
|
125
|
-
"metro-source-map": "
|
|
126
|
-
"metro-transform-worker": "
|
|
123
|
+
"metro-react-native-babel-preset": "0.77.0",
|
|
124
|
+
"metro-react-native-babel-transformer": "0.77.0",
|
|
125
|
+
"metro-resolver": "0.81.5",
|
|
126
|
+
"metro-runtime": "0.81.5",
|
|
127
|
+
"metro-source-map": "0.81.5",
|
|
128
|
+
"metro-transform-worker": "0.81.5",
|
|
127
129
|
"minimatch": "^5.1.0",
|
|
128
130
|
"prop-types": "^15.8.1",
|
|
129
131
|
"react": "^18.2.0",
|
|
130
132
|
"react-dom": "^18.2.0",
|
|
131
133
|
"react-is": "^18",
|
|
132
|
-
"react-native": "0.
|
|
133
|
-
"react-native-reanimated": "3.16.
|
|
134
|
-
"react-native-safe-area-context": "
|
|
135
|
-
"react-native-svg": "
|
|
134
|
+
"react-native": "0.77.2",
|
|
135
|
+
"react-native-reanimated": "3.16.7",
|
|
136
|
+
"react-native-safe-area-context": "5.1.0",
|
|
137
|
+
"react-native-svg": "15.11.2",
|
|
136
138
|
"react-native-web": "~0.19.6",
|
|
137
139
|
"regenerator-runtime": "^0.14.0",
|
|
138
140
|
"rimraf": "^4.4.1",
|
|
@@ -165,6 +167,6 @@
|
|
|
165
167
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
166
168
|
"test": "exit 0",
|
|
167
169
|
"web": "expo start --web",
|
|
168
|
-
"unimported": "
|
|
170
|
+
"unimported": "pnpm knip --directory ../../../.. -W libs/ui/packages/native"
|
|
169
171
|
}
|
|
170
172
|
}
|