@momo-kits/foundation 0.169.16-beta.4 → 0.169.16-beta.6

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.
Files changed (53) hide show
  1. package/Application/BottomSheet.tsx +2 -2
  2. package/Application/BottomTab/BottomTabBar.styles.ts +1 -1
  3. package/Application/BottomTab/DuoTabBar.styles.ts +1 -1
  4. package/Application/BottomTab/Legacy/TabScreen.tsx +16 -22
  5. package/Application/BottomTab/Legacy/hooks.ts +1 -1
  6. package/Application/BottomTab/Legacy/index.tsx +5 -1
  7. package/Application/BottomTab/TabBarIcon.tsx +1 -1
  8. package/Application/BottomTab/TabScreen.tsx +12 -22
  9. package/Application/BottomTab/index.tsx +1 -1
  10. package/Application/Components/HeaderLeft.tsx +11 -7
  11. package/Application/Components/HeaderRight.styles.ts +5 -1
  12. package/Application/Components/HeaderRight.tsx +7 -21
  13. package/Application/Components/SearchHeader.tsx +2 -2
  14. package/Application/Components/SwipeBackHaptic.tsx +1 -1
  15. package/Application/Components/useHeaderRightWidth.ts +2 -2
  16. package/Application/Components/useToolkitActions.tsx +34 -64
  17. package/Application/KitsBindingProvider.tsx +22 -0
  18. package/Application/KitsHost.ts +182 -0
  19. package/Application/ModalScreen.tsx +4 -4
  20. package/Application/NavigationContainer.tsx +22 -18
  21. package/Application/Navigator.ts +7 -2
  22. package/Application/StackScreen.tracking.ts +22 -12
  23. package/Application/StackScreen.tsx +26 -34
  24. package/Application/TooltipPortal.tsx +3 -3
  25. package/Application/WidgetContainer.tsx +83 -77
  26. package/Application/__tests__/KitsHost.test.ts +76 -0
  27. package/Application/headerLayout.ts +6 -13
  28. package/Application/hooks.ts +16 -1
  29. package/Application/index.ts +4 -0
  30. package/Application/navigationOptions.tsx +5 -12
  31. package/Application/types.binding.ts +134 -0
  32. package/Application/types.ts +14 -3
  33. package/Button/index.tsx +2 -2
  34. package/Divider/DashDivider.tsx +2 -2
  35. package/Divider/index.tsx +3 -3
  36. package/FoundationList/index.tsx +1 -1
  37. package/Icon/types.ts +1 -2
  38. package/Image/index.tsx +62 -7
  39. package/Image/styles.ts +2 -0
  40. package/Image/types.ts +9 -1
  41. package/Input/Input.tsx +2 -2
  42. package/Input/InputMoney.tsx +7 -2
  43. package/Input/InputMoneyView.tsx +2 -2
  44. package/Input/InputOTP.tsx +2 -2
  45. package/Input/InputPhoneNumber.tsx +2 -2
  46. package/Input/InputSearch.tsx +2 -2
  47. package/Input/InputTextArea.tsx +2 -2
  48. package/Input/SearchTextTyping.tsx +2 -2
  49. package/Input/SystemTextInput.tsx +2 -1
  50. package/Input/TextTyping.tsx +7 -2
  51. package/Layout/screenHeader.tsx +15 -17
  52. package/Pagination/types.ts +6 -2
  53. package/package.json +28 -26
@@ -10,7 +10,7 @@ type CombinedListProps<ItemT> = FlatListProps<ItemT> &
10
10
  * switch to it without type changes.
11
11
  */
12
12
  const FoundationList = <ItemT,>(props: CombinedListProps<ItemT>) => {
13
- return <FlashList {...props} />;
13
+ return <FlashList {...(props as FlashListProps<ItemT>)} />;
14
14
  };
15
15
 
16
16
  export { FoundationList };
package/Icon/types.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { ImageStyle } from 'react-native-fast-image';
2
- import { StyleProp } from 'react-native';
1
+ import { ImageStyle, StyleProp } from 'react-native';
3
2
 
4
3
  export type IconProps = {
5
4
  /**
package/Image/index.tsx CHANGED
@@ -1,6 +1,11 @@
1
1
  import React, { useContext, useRef, useState } from 'react';
2
- import { StyleSheet, View } from 'react-native';
3
- import FastImage from 'react-native-fast-image';
2
+ import {
3
+ ImageBackground,
4
+ ImageSourcePropType,
5
+ StyleSheet,
6
+ View,
7
+ } from 'react-native';
8
+ import FastImage, { FastImageProps } from 'react-native-fast-image';
4
9
  import styles from './styles';
5
10
  import {
6
11
  ApplicationContext,
@@ -24,6 +29,10 @@ export const getImageName = (source: any): string => {
24
29
  return '';
25
30
  };
26
31
 
32
+ const isDataUriSource = (source: any): boolean => {
33
+ return typeof source?.uri === 'string' && source.uri.startsWith('data:');
34
+ };
35
+
27
36
  /**
28
37
  * FastImage that shows a skeleton while loading (if `loading`) or inside a
29
38
  * loading `SkeletonProvider`, and a fail icon on error.
@@ -48,6 +57,7 @@ const Image: React.FC<ImageProps> = ({
48
57
  const [status, setStatus] = useState<Status>('success');
49
58
 
50
59
  const showBaseLineDebug = context?.features?.showBaseLineDebug ?? false;
60
+ const useFastImage = !isDataUriSource(source);
51
61
 
52
62
  const imageName = getImageName(source);
53
63
  let accessibilityLabel: any = `img|${imageName}`;
@@ -81,16 +91,61 @@ const Image: React.FC<ImageProps> = ({
81
91
  return children;
82
92
  };
83
93
 
94
+ if (!useFastImage) {
95
+ // RN <Image> throws when given children (skeleton / fail icon), so use
96
+ // ImageBackground, which renders them on top of the image like FastImage.
97
+ return (
98
+ <ImageBackground
99
+ {...(rest as any)}
100
+ {...{
101
+ accessibilityLabel: rest.accessibilityLabel ?? accessibilityLabel,
102
+ }}
103
+ source={source as ImageSourcePropType}
104
+ style={[
105
+ styles.dataUriContainer,
106
+ styles.container,
107
+ style,
108
+ showBaseLineDebug && styles.debugBaseLine,
109
+ ]}
110
+ onLoadStart={() => {
111
+ hasErrorRef.current = false;
112
+ if (status !== 'loading' && loading) {
113
+ setStatus('loading');
114
+ }
115
+ }}
116
+ onLoad={() => {
117
+ hasErrorRef.current = false;
118
+ }}
119
+ onLoadEnd={() => {
120
+ let current: Status = 'success';
121
+ if (hasErrorRef.current) {
122
+ current = 'error';
123
+ }
124
+ setStatus(prevState =>
125
+ prevState !== current ? current : prevState,
126
+ );
127
+ }}
128
+ onError={() => {
129
+ hasErrorRef.current = true;
130
+ }}
131
+ >
132
+ {renderContent()}
133
+ </ImageBackground>
134
+ );
135
+ }
136
+
84
137
  return (
85
138
  <FastImage
86
139
  {...rest}
87
140
  {...{ accessibilityLabel: rest.accessibilityLabel ?? accessibilityLabel }}
88
141
  source={source}
89
- style={[
90
- styles.container,
91
- style,
92
- showBaseLineDebug && styles.debugBaseLine,
93
- ]}
142
+ style={
143
+ [
144
+ styles.container,
145
+ style,
146
+ showBaseLineDebug && styles.debugBaseLine,
147
+ ] as FastImageProps['style']
148
+ }
94
149
  onProgress={event => {
95
150
  hasErrorRef.current = false;
96
151
  if (status !== 'loading' && loading) {
package/Image/styles.ts CHANGED
@@ -3,5 +3,7 @@ import { Colors } from '../Consts';
3
3
 
4
4
  export default StyleSheet.create({
5
5
  container: {},
6
+ // same clipping as FastImage's container, so borderRadius rounds the image
7
+ dataUriContainer: { overflow: 'hidden' },
6
8
  debugBaseLine: { borderWidth: 1, borderColor: Colors.green_06 },
7
9
  });
package/Image/types.ts CHANGED
@@ -1,6 +1,14 @@
1
+ import { ImageStyle, StyleProp } from 'react-native';
1
2
  import { FastImageProps } from 'react-native-fast-image';
2
3
 
3
- export interface ImageProps extends FastImageProps {
4
+ /**
5
+ * `style` uses React Native's own `ImageStyle`: from RN 0.87 (Strict TS API)
6
+ * react-native no longer exports `FlexStyle`/`ShadowStyleIOS`, which
7
+ * react-native-fast-image's `ImageStyle` extends, so that type lost layout
8
+ * props such as `width`, `margin*` or `position`.
9
+ */
10
+ export interface ImageProps extends Omit<FastImageProps, 'style'> {
11
+ style?: StyleProp<ImageStyle>;
4
12
  loading?: boolean;
5
13
  accessibilityLabel?: any;
6
14
  params?: any;
package/Input/Input.tsx CHANGED
@@ -6,10 +6,10 @@ import React, {
6
6
  useState,
7
7
  } from 'react';
8
8
  import {
9
- TextInput,
10
9
  TextInputFocusEvent,
11
10
  TouchableOpacity,
12
11
  View,
12
+ type TextInputInstance,
13
13
  } from 'react-native';
14
14
  import { useComponentId } from '../Application';
15
15
  import { Icon } from '../Icon';
@@ -81,7 +81,7 @@ const Input = forwardRef(
81
81
  const [isFocused, setIsFocused] = useState(false);
82
82
  const [internalText, setInternalText] = useState(defaultValue || '');
83
83
  const hasValue = value !== undefined ? !!value : !!internalText;
84
- const inputRef = useRef<TextInput | null>(null);
84
+ const inputRef = useRef<TextInputInstance | null>(null);
85
85
  const componentName = 'Input';
86
86
 
87
87
  const showBaseLineDebug = context?.features?.showBaseLineDebug ?? false;
@@ -7,7 +7,12 @@ import React, {
7
7
  useRef,
8
8
  useState,
9
9
  } from 'react';
10
- import { Platform, TextInput, TextInputFocusEvent, View } from 'react-native';
10
+ import {
11
+ Platform,
12
+ TextInputFocusEvent,
13
+ View,
14
+ type TextInputInstance,
15
+ } from 'react-native';
11
16
  import { useComponentId } from '../Application';
12
17
  import { ComponentContext, MiniAppContext } from '../Context';
13
18
  import { ErrorView } from './ErrorView';
@@ -56,7 +61,7 @@ const InputMoney = forwardRef(
56
61
  const [displayValue, setDisplayValue] = useState('');
57
62
  const [numericValue, setNumericValue] = useState('');
58
63
  const [lastDisplayValue, setLastDisplayValue] = useState('');
59
- const inputRef = useRef<TextInput>(null);
64
+ const inputRef = useRef<TextInputInstance>(null);
60
65
  const caretDigitsAfter = useRef<number | undefined>(undefined);
61
66
  const lastRawText = useRef('');
62
67
  const [caretSelection, setCaretSelection] = useState<{
@@ -2,11 +2,11 @@ import React, { RefObject, useContext } from 'react';
2
2
  import {
3
3
  Pressable,
4
4
  Text,
5
- TextInput,
6
5
  TextInputFocusEvent,
7
6
  TextInputProps,
8
7
  TouchableOpacity,
9
8
  View,
9
+ type TextInputInstance,
10
10
  } from 'react-native';
11
11
  import { ApplicationContext } from '../Context';
12
12
  import { Icon } from '../Icon';
@@ -43,7 +43,7 @@ type InputMoneyViewProps = Pick<
43
43
  componentId: string;
44
44
  displayValue: string;
45
45
  caretSelection?: { start: number; end: number };
46
- inputRef: RefObject<TextInput | null>;
46
+ inputRef: RefObject<TextInputInstance | null>;
47
47
  focusAtEnd: () => void;
48
48
  onClearText: () => void;
49
49
  onChangeText: (text: string) => void;
@@ -9,10 +9,10 @@ import React, {
9
9
  } from 'react';
10
10
  import {
11
11
  PixelRatio,
12
- TextInput,
13
12
  TextInputFocusEvent,
14
13
  TouchableOpacity,
15
14
  View,
15
+ type TextInputInstance,
16
16
  } from 'react-native';
17
17
  import Animated, {
18
18
  cancelAnimation,
@@ -116,7 +116,7 @@ const InputOTP = forwardRef(
116
116
  ) => {
117
117
  const [value, setValue] = useState('');
118
118
  const [isFocused, setIsFocused] = useState(false);
119
- const inputRef = useRef<TextInput | null>(null);
119
+ const inputRef = useRef<TextInputInstance | null>(null);
120
120
  const { theme } = useContext(ApplicationContext);
121
121
  const context = useContext<any>(MiniAppContext);
122
122
 
@@ -7,10 +7,10 @@ import React, {
7
7
  } from 'react';
8
8
  import {
9
9
  StyleSheet,
10
- TextInput,
11
10
  TextInputFocusEvent,
12
11
  TouchableOpacity,
13
12
  View,
13
+ type TextInputInstance,
14
14
  } from 'react-native';
15
15
  import { useComponentId } from '../Application';
16
16
  import {
@@ -76,7 +76,7 @@ const InputPhoneNumber = forwardRef(
76
76
  const [isFocused, setIsFocused] = useState(false);
77
77
  const [internalText, setInternalText] = useState(defaultValue || '');
78
78
  const hasValue = value !== undefined ? !!value : !!internalText;
79
- const inputRef = useRef<TextInput | null>(null);
79
+ const inputRef = useRef<TextInputInstance | null>(null);
80
80
  const componentName = 'InputPhoneNumber';
81
81
 
82
82
  const showBaseLineDebug = context?.features?.showBaseLineDebug ?? false;
@@ -7,10 +7,10 @@ import React, {
7
7
  useState,
8
8
  } from 'react';
9
9
  import {
10
- TextInput,
11
10
  TextInputFocusEvent,
12
11
  TouchableOpacity,
13
12
  View,
13
+ type TextInputInstance,
14
14
  } from 'react-native';
15
15
  import { useComponentId } from '../Application';
16
16
  import { HeaderBarMetrics } from '../Application/headerLayout';
@@ -76,7 +76,7 @@ const InputSearch: ForwardRefRenderFunction<InputRef, InputSearchProps> = (
76
76
  const [internalText, setInternalText] = useState(defaultValue || '');
77
77
  const currentValue = value !== undefined ? value : internalText;
78
78
  const hasValue = !!currentValue;
79
- const inputRef = useRef<TextInput | null>(null);
79
+ const inputRef = useRef<TextInputInstance | null>(null);
80
80
 
81
81
  const componentName = 'InputSearch';
82
82
 
@@ -7,10 +7,10 @@ import React, {
7
7
  useState,
8
8
  } from 'react';
9
9
  import {
10
- TextInput,
11
10
  TextInputFocusEvent,
12
11
  TouchableOpacity,
13
12
  View,
13
+ type TextInputInstance,
14
14
  } from 'react-native';
15
15
  import { setAutomationID, useComponentId } from '../Application';
16
16
  import { ApplicationContext, MiniAppContext } from '../Context';
@@ -70,7 +70,7 @@ const InputTextArea = forwardRef(
70
70
  const inputFontFamily = exportFontFamily('regular');
71
71
  const [isFocused, setIsFocused] = useState(false);
72
72
  const [inputValue, setInputValue] = useState(defaultValue ?? '');
73
- const inputRef = useRef<TextInput | null>(null);
73
+ const inputRef = useRef<TextInputInstance | null>(null);
74
74
 
75
75
  useEffect(() => {
76
76
  setInputValue(value ?? '');
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react-hooks/exhaustive-deps */
2
2
  import React, { FC, useEffect, useRef } from 'react';
3
- import { TextInput } from 'react-native';
3
+ import { TextInput, type TextInputInstance } from 'react-native';
4
4
  import { useScaleSize, exportFontFamily } from '../Text';
5
5
  import styles from './styles';
6
6
 
@@ -13,7 +13,7 @@ export const TextTyping: FC<any> = ({
13
13
  timeDelayEnd = 2000,
14
14
  timeDelayNextChar = 20,
15
15
  }) => {
16
- const textRef = useRef<TextInput>(null);
16
+ const textRef = useRef<TextInputInstance>(null);
17
17
  const scaledFontSize = useScaleSize(12);
18
18
  const typingFontFamily = exportFontFamily('regular');
19
19
 
@@ -4,11 +4,12 @@ import {
4
4
  TextInput,
5
5
  TextInputProps,
6
6
  TouchableOpacity,
7
+ type TextInputInstance,
7
8
  } from 'react-native';
8
9
  import { Styles } from '../Consts';
9
10
 
10
11
  interface SystemTextInputProps extends TextInputProps {
11
- ref?: React.RefObject<TextInput | null>;
12
+ ref?: React.RefObject<TextInputInstance | null>;
12
13
  }
13
14
 
14
15
  /**
@@ -1,6 +1,11 @@
1
1
  /* eslint-disable react-hooks/exhaustive-deps */
2
2
  import React, { FC, memo, useEffect, useRef } from 'react';
3
- import { Platform, TextInput, TextStyle } from 'react-native';
3
+ import {
4
+ Platform,
5
+ TextInput,
6
+ TextStyle,
7
+ type TextInputInstance,
8
+ } from 'react-native';
4
9
  import { Colors } from '../Consts';
5
10
  import { useScaleSize, exportFontFamily } from '../Text';
6
11
 
@@ -21,7 +26,7 @@ const TextTyping: FC<TextTypingProps> = ({
21
26
  timeDelayNextChar = 20,
22
27
  inputStyle = {},
23
28
  }) => {
24
- const textRef = useRef<TextInput>(null);
29
+ const textRef = useRef<TextInputInstance>(null);
25
30
  const scaledFontSize = useScaleSize(12);
26
31
  const inputFontFamily = exportFontFamily('regular');
27
32
 
@@ -14,12 +14,11 @@ import {
14
14
  } from '../Application';
15
15
  import { DuoGlassBackground } from '../Application/Components/DuoGlassBackground';
16
16
  import {
17
- getHeaderRowInset,
18
17
  type HeaderContentLayout,
19
- TITLE_CONTAINER_RESET,
20
18
  useHeaderFrameOptions,
21
19
  useHeaderLayout,
22
20
  } from '../Application/headerLayout';
21
+ import { getHeaderMargin } from './utils';
23
22
  import { ANIMATED_BANNER_HEIGHT } from './screenTypes';
24
23
  import { HeaderType } from './types';
25
24
 
@@ -248,11 +247,10 @@ export const useScreenHeader = ({
248
247
  // the search field spans the content (or the stretch frame), clear of the side bar
249
248
  // and status bar clusters; kept as numbers so the setter below stays stable
250
249
  let searchWidth = headerLayout.frameWidth;
251
- // past back, or at the row start when back is hidden or floats in the side bar
252
- const rowStartLeft = getHeaderRowInset(layout.width);
253
- const searchLeft = layout.sideBar ? rowStartLeft : Spacing.M;
250
+ let searchLeft = Spacing.M;
254
251
  if (layout.sideBar) {
255
252
  searchWidth = layout.contentWidth - Spacing.M * 2;
253
+ searchLeft = Spacing.M - getHeaderMargin(layout.width);
256
254
  }
257
255
  const clearance = layout.statusBarClearance;
258
256
  if (clearance) {
@@ -266,18 +264,25 @@ export const useScreenHeader = ({
266
264
  const setSearchHeader = useCallback(
267
265
  (params: SearchHeaderProps) => {
268
266
  searchHeaderParams.current = params;
269
- const hasBack = !params?.hiddenBack;
270
267
  const options: StackNavigationOptions = {
271
268
  ...frameOptions,
272
269
  headerRight: undefined,
273
270
  headerTitleContainerStyle: {
274
- ...TITLE_CONTAINER_RESET,
275
271
  width: searchWidth,
276
272
  maxWidth: searchWidth,
277
- left: hasBack ? searchLeft : rowStartLeft,
273
+ marginLeft: 0,
274
+ marginEnd: 0,
275
+ marginStart: 0,
276
+ marginHorizontal: 0,
277
+ marginVertical: 0,
278
+ margin: 0,
279
+ left: searchLeft,
278
280
  },
279
281
  headerLeft: (props: any) => {
280
- return hasBack && <HeaderLeft {...props} floating />;
282
+ if (params?.hiddenBack) {
283
+ return null;
284
+ }
285
+ return <HeaderLeft {...props} floating />;
281
286
  },
282
287
  headerTitle: () => (
283
288
  <SearchHeader {...params} animatedValue={sharedValue} />
@@ -286,14 +291,7 @@ export const useScreenHeader = ({
286
291
 
287
292
  navigation?.instance?.setOptions(options);
288
293
  },
289
- [
290
- navigation?.instance,
291
- sharedValue,
292
- frameOptions,
293
- searchWidth,
294
- searchLeft,
295
- rowStartLeft,
296
- ],
294
+ [navigation?.instance, sharedValue, frameOptions, searchWidth, searchLeft],
297
295
  );
298
296
 
299
297
  useEffect(() => {
@@ -1,4 +1,8 @@
1
- import {ScrollView, ScrollViewProps, ViewStyle} from 'react-native';
1
+ import {
2
+ ScrollViewProps,
3
+ ViewStyle,
4
+ type ScrollViewInstance,
5
+ } from 'react-native';
2
6
  import {Ref} from 'react';
3
7
 
4
8
  export type PaginationProps = {
@@ -32,7 +36,7 @@ export interface ScrollIndicatorProps extends ScrollViewProps {
32
36
  * Optional. Represents a reference to the ScrollView component.
33
37
  * It can be used to access the instance methods of the ScrollView.
34
38
  */
35
- scrollViewRef?: Ref<ScrollView>;
39
+ scrollViewRef?: Ref<ScrollViewInstance>;
36
40
  }
37
41
 
38
42
  export type ChildPaginationProps = Omit<PaginationProps, 'type'>;
package/package.json CHANGED
@@ -1,39 +1,41 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.169.16-beta.4",
3
+ "version": "0.169.16-beta.6",
4
4
  "description": "React Native Component Kits",
5
- "main": "index.ts",
6
- "scripts": {},
7
5
  "keywords": [
8
6
  "@momo-kits/foundation"
9
7
  ],
8
+ "license": "MoMo",
9
+ "main": "index.ts",
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "scripts": {},
10
14
  "dependencies": {
11
- "react-native-fast-image": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
12
- "@react-navigation/bottom-tabs": "7.4.2",
13
- "@react-navigation/core": "7.12.1",
14
- "@react-navigation/elements": "2.5.2",
15
- "@react-navigation/native": "7.1.14",
16
- "@react-navigation/routers": "7.4.1",
17
- "@react-navigation/stack": "7.4.2",
18
- "react-native-gesture-handler": "2.27.1",
19
- "react-native-linear-gradient": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
20
- "react-native-reanimated": "4.1.3",
21
- "react-native-worklets": "0.6.1",
22
- "react-native-safe-area-context": "5.5.2",
23
- "react-native-reserved-regions": "0.2.0",
15
+ "@react-navigation/bottom-tabs": "7.21.0",
16
+ "@react-navigation/core": "7.24.0",
17
+ "@react-navigation/elements": "2.9.45",
18
+ "@react-navigation/native": "7.5.1",
19
+ "@react-navigation/routers": "7.6.5",
20
+ "@react-navigation/stack": "7.12.1",
24
21
  "@shopify/flash-list": "2.1.0",
25
- "lottie-react-native": "7.2.4"
22
+ "lottie-react-native": "7.3.6",
23
+ "react-native-fast-image": "git+https://oauth2:k_r5y_gV6sX9-TqQxgcd@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
24
+ "react-native-gesture-handler": "3.4.0",
25
+ "react-native-linear-gradient": "git+https://oauth2:k_r5y_gV6sX9-TqQxgcd@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
26
+ "react-native-reanimated": "4.7.1",
27
+ "react-native-safe-area-context": "5.7.0",
28
+ "react-native-reserved-regions": "0.2.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/color": "3.0.6",
32
+ "react-native-reanimated": "4.7.1",
33
+ "react-native-worklets": "0.13.0"
26
34
  },
27
35
  "peerDependencies": {
28
36
  "react-native": "*",
29
37
  "react-native-svg": "*",
30
- "react-native-worklets": "0.6.1"
31
- },
32
- "devDependencies": {
33
- "@types/color": "3.0.6"
34
- },
35
- "publishConfig": {
36
- "registry": "https://registry.npmjs.org/"
37
- },
38
- "license": "MoMo"
38
+ "react-native-reanimated": ">=4.7.0",
39
+ "react-native-worklets": ">=0.13.0"
40
+ }
39
41
  }