react-native-ui-lib 7.45.0-snapshot.7266 → 7.46.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.
Files changed (201) hide show
  1. package/babel.config.js +0 -12
  2. package/index.js +0 -1
  3. package/lib/android/build.gradle +5 -5
  4. package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +2 -0
  5. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +23 -31
  6. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +30 -0
  7. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +34 -0
  8. package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
  9. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +33 -0
  10. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +53 -0
  11. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +54 -0
  12. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +28 -0
  13. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +36 -0
  14. package/lib/components/{HighlighterOverlayView/index.d.ts → HighlighterOverlayView.d.ts} +1 -1
  15. package/lib/components/HighlighterOverlayView.js +40 -0
  16. package/lib/components/{HighlighterOverlayView/index.web.d.ts → HighlighterOverlayView.web.d.ts} +1 -1
  17. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.android.d.ts +2 -5
  18. package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +28 -0
  19. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
  20. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
  21. package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.d.ts +0 -3
  22. package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.js +1 -1
  23. package/lib/components/Keyboard/{KeyboardAccessoryView/index.d.ts → KeyboardInput/KeyboardAccessoryView.d.ts} +1 -11
  24. package/lib/components/Keyboard/{KeyboardAccessoryView/index.js → KeyboardInput/KeyboardAccessoryView.js} +5 -31
  25. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.d.ts → KeyboardInput/KeyboardRegistry.d.ts} +1 -1
  26. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.js → KeyboardInput/KeyboardRegistry.js} +1 -1
  27. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/__tests__/KeyboardRegistry.spec.js +1 -1
  28. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/keyboardAccessoryView.api.json +5 -5
  29. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/keyboardRegistry.api.json +9 -9
  30. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +11 -0
  31. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +17 -0
  32. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager → KeyboardInput/utils}/__tests__/EventEmitterManager.spec.js +1 -1
  33. package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.d.ts → KeyboardTracking/KeyboardAwareInsetsView.d.ts} +1 -1
  34. package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.js → KeyboardTracking/KeyboardAwareInsetsView.js} +1 -1
  35. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +4 -1
  36. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.js +8 -5
  37. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.d.ts +2 -2
  38. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/keyboardTrackingView.api.json +20 -11
  39. package/lib/components/Keyboard/index.d.ts +6 -6
  40. package/lib/components/Keyboard/index.js +6 -6
  41. package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +7 -21
  42. package/lib/components/SafeArea/SafeAreaInsetsManager.js +31 -95
  43. package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
  44. package/lib/components/SafeArea/SafeAreaSpacerView.js +9 -63
  45. package/lib/components/index.d.ts +1 -1
  46. package/lib/components/index.js +1 -1
  47. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +8 -52
  48. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +7 -1
  49. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +1 -1
  50. package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +41 -109
  51. package/lib/package.json +1 -1
  52. package/lib/react-native.config.js +3 -1
  53. package/metro.config.js +2 -2
  54. package/package.json +24 -24
  55. package/panningViews.d.ts +2 -0
  56. package/panningViews.js +1 -0
  57. package/react-native.config.js +3 -1
  58. package/sharedTransition.d.ts +2 -0
  59. package/sharedTransition.js +1 -0
  60. package/src/commons/Constants.js +5 -2
  61. package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +1 -5
  62. package/src/components/actionSheet/index.d.ts +12 -2
  63. package/src/components/actionSheet/index.js +42 -3
  64. package/src/components/badge/index.d.ts +47 -107
  65. package/src/components/button/Button.driver.new.d.ts +1 -0
  66. package/src/components/button/Button.driver.new.js +4 -0
  67. package/src/components/button/button.api.json +1 -1
  68. package/src/components/button/index.d.ts +23 -53
  69. package/src/components/button/types.d.ts +1 -0
  70. package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
  71. package/src/components/colorPicker/ColorPickerDialog.js +1 -1
  72. package/src/components/dateTimePicker/index.d.ts +5 -186
  73. package/src/components/dateTimePicker/index.js +4 -3
  74. package/src/components/dialog/DialogDismissibleView.d.ts +34 -0
  75. package/src/components/dialog/DialogDismissibleView.js +184 -0
  76. package/src/components/dialog/OverlayFadingBackground.d.ts +14 -0
  77. package/src/components/dialog/OverlayFadingBackground.js +45 -0
  78. package/src/components/dialog/dialog.api.json +37 -31
  79. package/src/components/dialog/index.d.ts +105 -13
  80. package/src/components/dialog/index.js +212 -204
  81. package/src/components/drawer/Swipeable.js +2 -1
  82. package/src/components/drawer/index.js +25 -31
  83. package/src/components/fadedScrollView/index.js +2 -7
  84. package/src/components/featureHighlight/index.d.ts +1 -1
  85. package/src/components/index.js +19 -0
  86. package/src/components/modal/index.d.ts +0 -5
  87. package/src/components/modal/index.js +10 -14
  88. package/src/components/modal/modal.api.json +0 -5
  89. package/src/components/panningViews/asPanViewConsumer.d.ts +3 -0
  90. package/src/components/panningViews/asPanViewConsumer.js +16 -0
  91. package/src/components/panningViews/panDismissibleView.d.ts +51 -0
  92. package/src/components/panningViews/panDismissibleView.js +350 -0
  93. package/src/components/panningViews/panGestureView.d.ts +23 -0
  94. package/src/components/panningViews/panGestureView.js +156 -0
  95. package/src/components/panningViews/panListenerView.d.ts +66 -0
  96. package/src/components/panningViews/panListenerView.js +155 -0
  97. package/src/components/panningViews/panResponderView.d.ts +19 -0
  98. package/src/components/panningViews/panResponderView.js +79 -0
  99. package/src/components/panningViews/panningContext.d.ts +3 -0
  100. package/src/components/panningViews/panningContext.js +4 -0
  101. package/src/components/panningViews/panningProvider.d.ts +73 -0
  102. package/src/components/panningViews/panningProvider.js +101 -0
  103. package/src/components/picker/Picker.driver.new.d.ts +3 -2
  104. package/src/components/picker/Picker.driver.new.js +3 -3
  105. package/src/components/picker/PickerItem.js +20 -6
  106. package/src/components/picker/PickerPresenter.d.ts +1 -0
  107. package/src/components/picker/PickerPresenter.js +23 -1
  108. package/src/components/picker/api/picker.api.json +1 -0
  109. package/src/components/picker/api/pickerItem.api.json +5 -0
  110. package/src/components/picker/helpers/useFieldType.d.ts +23 -53
  111. package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
  112. package/src/components/picker/helpers/usePickerLabel.js +3 -2
  113. package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
  114. package/src/components/picker/helpers/usePickerMigrationWarnings.js +12 -0
  115. package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
  116. package/src/components/picker/helpers/usePickerSearch.js +8 -4
  117. package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
  118. package/src/components/picker/helpers/usePickerSelection.js +10 -2
  119. package/src/components/picker/index.js +22 -4
  120. package/src/components/picker/types.d.ts +24 -1
  121. package/src/components/segmentedControl/index.js +3 -3
  122. package/src/components/sharedTransition/ShareTransitionContext.js +3 -0
  123. package/src/components/sharedTransition/SharedArea.js +153 -0
  124. package/src/components/sharedTransition/SourceElement.js +44 -0
  125. package/src/components/sharedTransition/TargetElement.js +38 -0
  126. package/src/components/sharedTransition/index.js +9 -0
  127. package/src/components/slider/GradientSlider.d.ts +1 -1
  128. package/src/components/sortableGridList/SortableItem.js +4 -13
  129. package/src/components/sortableList/SortableListItem.js +4 -13
  130. package/src/components/stackAggregator/index.js +11 -16
  131. package/src/components/text/Text.driver.new.d.ts +2 -2
  132. package/src/components/text/Text.driver.new.js +2 -2
  133. package/src/components/textField/Input.js +1 -0
  134. package/src/components/textField/TextField.driver.new.d.ts +3 -2
  135. package/src/components/textField/TextField.driver.new.js +2 -2
  136. package/src/components/textField/presets/outline.d.ts +46 -106
  137. package/src/components/textField/presets/underline.d.ts +46 -106
  138. package/src/components/textField/usePreset.d.ts +44 -72
  139. package/src/incubator/dialog/dialog.api.json +54 -0
  140. package/src/{components → incubator}/dialog/dialogHeader.api.json +2 -2
  141. package/src/incubator/dialog/index.d.ts +15 -0
  142. package/src/incubator/dialog/index.js +218 -0
  143. package/src/{components → incubator}/dialog/types.d.ts +19 -0
  144. package/src/{components → incubator}/dialog/types.js +3 -1
  145. package/src/{components → incubator}/dialog/useDialogContent.d.ts +1 -1
  146. package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
  147. package/src/incubator/expandableOverlay/index.d.ts +3 -42
  148. package/src/incubator/expandableOverlay/index.js +4 -1
  149. package/src/{hooks/useHiddenLocation/index.d.ts → incubator/hooks/useHiddenLocation.d.ts} +1 -1
  150. package/src/{hooks/useHiddenLocation/index.web.d.ts → incubator/hooks/useHiddenLocation.web.d.ts} +1 -1
  151. package/src/incubator/index.d.ts +2 -0
  152. package/src/incubator/index.js +2 -0
  153. package/src/{components → incubator}/panView/index.d.ts +3 -3
  154. package/src/{components → incubator}/panView/index.js +4 -4
  155. package/src/{components → incubator}/panView/usePanGesture.d.ts +1 -1
  156. package/src/incubator/toast/Toast.driver.new.d.ts +1 -0
  157. package/src/incubator/toast/index.js +1 -1
  158. package/src/index.d.ts +10 -3
  159. package/src/index.js +160 -41
  160. package/src/testkit/index.d.ts +1 -1
  161. package/src/testkit/index.js +1 -1
  162. package/src/testkit/new/Component.driver.d.ts +1 -4
  163. package/src/testkit/new/Component.driver.js +3 -3
  164. package/lib/components/HighlighterOverlayView/index.js +0 -49
  165. package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +0 -51
  166. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +0 -26
  167. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +0 -91
  168. package/lib/components/SafeArea/__tests__/SafeAreaInsetsManager.spec.js +0 -274
  169. package/lib/components/SafeArea/index.d.ts +0 -10
  170. package/lib/components/SafeArea/index.js +0 -11
  171. package/panView.d.ts +0 -2
  172. package/panView.js +0 -1
  173. /package/lib/components/{HighlighterOverlayView/index.web.js → HighlighterOverlayView.web.js} +0 -0
  174. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.d.ts +0 -0
  175. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.js +0 -0
  176. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.d.ts +0 -0
  177. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.js +0 -0
  178. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
  179. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
  180. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
  181. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
  182. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.d.ts +0 -0
  183. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.js +0 -0
  184. /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts → KeyboardInput/utils/EventEmitterManager.d.ts} +0 -0
  185. /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js → KeyboardInput/utils/EventEmitterManager.js} +0 -0
  186. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
  187. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
  188. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.js +0 -0
  189. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.d.ts +0 -0
  190. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.js +0 -0
  191. /package/lib/components/Keyboard/{KeyboardAwareInsetsView → KeyboardTracking}/keyboardAwareInsetsView.api.json +0 -0
  192. /package/src/{components → incubator}/dialog/Dialog.driver.new.d.ts +0 -0
  193. /package/src/{components → incubator}/dialog/Dialog.driver.new.js +0 -0
  194. /package/src/{components → incubator}/dialog/DialogHeader.d.ts +0 -0
  195. /package/src/{components → incubator}/dialog/DialogHeader.js +0 -0
  196. /package/src/{components → incubator}/dialog/useDialogContent.js +0 -0
  197. /package/src/{hooks/useHiddenLocation/index.js → incubator/hooks/useHiddenLocation.js} +0 -0
  198. /package/src/{hooks/useHiddenLocation/index.web.js → incubator/hooks/useHiddenLocation.web.js} +0 -0
  199. /package/src/{components → incubator}/panView/panningUtil.d.ts +0 -0
  200. /package/src/{components → incubator}/panView/panningUtil.js +0 -0
  201. /package/src/{components → incubator}/panView/usePanGesture.js +0 -0
@@ -0,0 +1,44 @@
1
+ import React, {Component} from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import TouchableOpacity from '../touchableOpacity';
4
+
5
+ import ShareTransitionContext from './ShareTransitionContext';
6
+
7
+ class SourceElement extends Component {
8
+ displayName = 'IGNORE';
9
+ static propTypes = {
10
+ /**
11
+ * Data to share between shared element and placeholder
12
+ */
13
+ data: PropTypes.object
14
+ };
15
+
16
+ state = {};
17
+
18
+ onPress = () => {
19
+ const {data} = this.props;
20
+ const {setSharedData, setSource} = this.context;
21
+ setSharedData(data);
22
+
23
+ this.element.measure((_x, _y, width, height, pageX, pageY) => {
24
+ const sourceLayout = {x: pageX, y: pageY, width, height};
25
+ setSource(sourceLayout, this.props.children);
26
+ });
27
+ };
28
+
29
+ setRef = ref => {
30
+ this.element = ref;
31
+ };
32
+
33
+ render() {
34
+ const {style, children} = this.props;
35
+ return (
36
+ <TouchableOpacity activeOpacity={0.9} style={style} ref={this.setRef} onPress={this.onPress}>
37
+ {children}
38
+ </TouchableOpacity>
39
+ );
40
+ }
41
+ }
42
+
43
+ SourceElement.contextType = ShareTransitionContext;
44
+ export default SourceElement;
@@ -0,0 +1,38 @@
1
+ import React, {Component} from 'react';
2
+ import TouchableOpacity from '../touchableOpacity';
3
+
4
+ import ShareTransitionContext from './ShareTransitionContext';
5
+
6
+ class TargetElement extends Component {
7
+ displayName = 'IGNORE';
8
+ state = {};
9
+
10
+ componentDidMount() {
11
+ const {setTarget} = this.context;
12
+
13
+ if (!this.targetLayout) {
14
+ setTimeout(() => {
15
+ this.element.measure((_x, _y, width, height, pageX, pageY) => {
16
+ this.targetLayout = {x: pageX, y: pageY, width, height};
17
+ setTarget(this.targetLayout);
18
+ });
19
+ });
20
+ }
21
+ }
22
+
23
+ setRef = ref => {
24
+ this.element = ref;
25
+ };
26
+
27
+ render() {
28
+ const {style, children} = this.props;
29
+ return (
30
+ <TouchableOpacity style={[style, {opacity: 0}]} ref={this.setRef}>
31
+ {children}
32
+ </TouchableOpacity>
33
+ );
34
+ }
35
+ }
36
+
37
+ TargetElement.contextType = ShareTransitionContext;
38
+ export default TargetElement;
@@ -0,0 +1,9 @@
1
+ import Source from './SourceElement';
2
+ import Target from './TargetElement';
3
+ import Area from './SharedArea';
4
+
5
+ export default {
6
+ Area,
7
+ Source,
8
+ Target
9
+ };
@@ -6,7 +6,7 @@ import { GradientSliderProps, GradientSliderTypes } from './types';
6
6
  type Props<T> = GradientSliderProps<T> & ForwardRefInjectedProps;
7
7
  declare const _default: React.ForwardRefExoticComponent<Omit<import("./types").SliderProps, "onValueChange"> & {
8
8
  color?: string | import("tinycolor2").ColorFormats.HSLA | undefined;
9
- type?: "default" | "hue" | "saturation" | "lightness" | GradientSliderTypes | undefined;
9
+ type?: "default" | "hue" | "lightness" | "saturation" | GradientSliderTypes | undefined;
10
10
  gradientSteps?: number | undefined;
11
11
  onValueChange?: ((value: string, alfa: number) => void) | undefined;
12
12
  accessible?: boolean | undefined;
@@ -23,8 +23,6 @@ function SortableItem(props) {
23
23
  const currIndex = useSharedValue(initialIndex.value);
24
24
  const translateX = useSharedValue(0);
25
25
  const translateY = useSharedValue(0);
26
- const zIndex = useSharedValue(0);
27
- const scale = useSharedValue(1);
28
26
  const isDragging = useSharedValue(false);
29
27
  const tempItemsOrder = useSharedValue(itemsOrder.value);
30
28
  const tempTranslateX = useSharedValue(0);
@@ -87,15 +85,6 @@ function SortableItem(props) {
87
85
  translateY.value = withTiming(translation.y, animationConfig);
88
86
  }
89
87
  }, []);
90
- useAnimatedReaction(() => isDragging.value, (isDragging, wasDragging) => {
91
- if (isDragging && !wasDragging) {
92
- zIndex.value = withTiming(100, animationConfig);
93
- scale.value = withSpring(1.1);
94
- } else if (!isDragging && wasDragging) {
95
- zIndex.value = withTiming(0, animationConfig);
96
- scale.value = withSpring(1);
97
- }
98
- }, []);
99
88
  const onLayout = useCallback(event => {
100
89
  'worklet';
101
90
 
@@ -159,14 +148,16 @@ function SortableItem(props) {
159
148
  }
160
149
  });
161
150
  const animatedStyle = useAnimatedStyle(() => {
151
+ const scale = withSpring(isDragging.value ? 1.1 : 1);
152
+ const zIndex = isDragging.value ? 100 : withTiming(0, animationConfig);
162
153
  return {
163
- zIndex: Math.round(zIndex.value),
154
+ zIndex,
164
155
  transform: [{
165
156
  translateX: translateX.value
166
157
  }, {
167
158
  translateY: translateY.value
168
159
  }, {
169
- scale: scale.value
160
+ scale
170
161
  }]
171
162
  };
172
163
  });
@@ -51,8 +51,6 @@ const SortableListItem = props => {
51
51
  });
52
52
  const currIndex = useSharedValue(initialIndex.value);
53
53
  const translation = useSharedValue(0);
54
- const zIndex = useSharedValue(0);
55
- const scale = useSharedValue(1);
56
54
  const isDragging = useSharedValue(false);
57
55
  const draggedItemShadow = useSharedValue(StyleUtils.unpackStyle({
58
56
  ...Shadows.sh30.bottom,
@@ -80,15 +78,6 @@ const SortableListItem = props => {
80
78
  translation.value = withTiming(_translation, animationConfig);
81
79
  }
82
80
  }, []);
83
- useAnimatedReaction(() => isDragging.value, (isDragging, wasDragging) => {
84
- if (isDragging && !wasDragging) {
85
- zIndex.value = withTiming(100, animationConfig);
86
- scale.value = withSpring(propsScale);
87
- } else if (!isDragging && wasDragging) {
88
- zIndex.value = withTiming(0, animationConfig);
89
- scale.value = withSpring(1);
90
- }
91
- }, []);
92
81
  const dragOnLongPressGesture = Gesture.Pan().activateAfterLongPress(250).enabled(!locked).onStart(() => {
93
82
  isDragging.value = true;
94
83
  translation.value = getTranslationByIndexChange(currIndex.value, initialIndex.value, itemSize.value);
@@ -154,18 +143,20 @@ const SortableListItem = props => {
154
143
  }
155
144
  });
156
145
  const draggedAnimatedStyle = useAnimatedStyle(() => {
146
+ const scale = withSpring(isDragging.value ? propsScale : 1);
147
+ const zIndex = isDragging.value ? 100 : withTiming(0, animationConfig);
157
148
  const opacity = isDragging.value ? 0.95 : 1;
158
149
  const shadow = isDragging.value ? draggedItemShadow.value : defaultItemShadow.value;
159
150
  return {
160
151
  backgroundColor: itemProps?.backgroundColor ?? LIST_ITEM_BACKGROUND,
161
152
  // required for elevation to work in Android
162
- zIndex: Math.round(zIndex.value),
153
+ zIndex,
163
154
  transform: [horizontal ? {
164
155
  translateX: translation.value
165
156
  } : {
166
157
  translateY: translation.value
167
158
  }, {
168
- scale: scale.value
159
+ scale
169
160
  }],
170
161
  opacity,
171
162
  ...itemProps?.margins,
@@ -27,7 +27,6 @@ const StackAggregator = props => {
27
27
  onItemPress,
28
28
  contentContainerStyle,
29
29
  itemBorderRadius = 0,
30
- backgroundColor,
31
30
  onCollapseWillChange,
32
31
  onCollapseChanged
33
32
  } = props;
@@ -37,11 +36,11 @@ const StackAggregator = props => {
37
36
  useEffect(() => {
38
37
  setIsCollapsed(collapsed);
39
38
  }, [collapsed]);
40
- useDidUpdate(async () => {
39
+ useDidUpdate(() => {
41
40
  onCollapseWillChange?.(isCollapsed);
42
- await animate();
41
+ animate();
43
42
  onCollapseChanged?.(isCollapsed);
44
- }, [isCollapsed, itemsCount]);
43
+ }, [isCollapsed, onCollapseWillChange, onCollapseChanged]);
45
44
 
46
45
  /** Animations */
47
46
 
@@ -53,10 +52,10 @@ const StackAggregator = props => {
53
52
  const easeOut = Easing.bezier(0, 0, 0.58, 1);
54
53
  const getItemScale = useCallback(index => {
55
54
  if (isCollapsed) {
56
- if (index === 1) {
55
+ if (index === itemsCount - 2) {
57
56
  return 0.95;
58
57
  }
59
- if (index === 2) {
58
+ if (index === itemsCount - 1) {
60
59
  return 0.9;
61
60
  }
62
61
  }
@@ -124,10 +123,10 @@ const StackAggregator = props => {
124
123
 
125
124
  const getTop = index => {
126
125
  let start = 0;
127
- if (index === 1) {
126
+ if (index === itemsCount - 2) {
128
127
  start += PEEP;
129
128
  }
130
- if (index === 2) {
129
+ if (index === itemsCount - 1) {
131
130
  start += PEEP * 2;
132
131
  }
133
132
  return start;
@@ -150,11 +149,6 @@ const StackAggregator = props => {
150
149
  zIndex: itemsCount
151
150
  }];
152
151
  }, [firstItemHeight, itemsCount]);
153
- const cardStyle = useMemo(() => {
154
- return backgroundColor ? [styles.card, {
155
- backgroundColor
156
- }] : styles.card;
157
- }, [backgroundColor]);
158
152
 
159
153
  /** Events */
160
154
 
@@ -173,7 +167,7 @@ const StackAggregator = props => {
173
167
  /** Renders */
174
168
 
175
169
  const renderItem = (item, index) => {
176
- return <Animated.View onLayout={index === 0 ? onLayout : undefined} style={[Constants.isIOS && (index === 0 || index === 1 || index === 2 || !isCollapsed) && styles.containerShadow, contentContainerStyle,
170
+ return <Animated.View onLayout={index === 0 ? onLayout : undefined} style={[Constants.isIOS && styles.containerShadow, contentContainerStyle,
177
171
  //@ts-expect-error 'position' doesn't match AnimatedInterpolation type
178
172
  getItemStyle(index), {
179
173
  borderRadius: Constants.isIOS ? itemBorderRadius : undefined,
@@ -185,7 +179,7 @@ const StackAggregator = props => {
185
179
  width: Constants.windowWidth - 40,
186
180
  height: isCollapsed ? firstItemHeight : undefined
187
181
  }]} collapsable={false}>
188
- <Card style={cardStyle} onPress={() => _onItemPress(index)} borderRadius={itemBorderRadius} elevation={5}>
182
+ <Card style={styles.card} onPress={() => _onItemPress(index)} borderRadius={itemBorderRadius} elevation={5}>
189
183
  <Animated.View style={index !== 0 ? {
190
184
  opacity: animatedContentOpacity
191
185
  } : undefined} collapsable={false}>
@@ -237,7 +231,8 @@ const styles = StyleSheet.create({
237
231
  },
238
232
  card: {
239
233
  overflow: 'hidden',
240
- flexShrink: 1
234
+ flexShrink: 1,
235
+ backgroundColor: 'transparent'
241
236
  },
242
237
  button: {
243
238
  zIndex: 100
@@ -1,6 +1,6 @@
1
1
  import { TextStyle } from 'react-native';
2
- import { ComponentProps, ComponentDriverOptions } from '../../testkit/new/Component.driver';
3
- export declare const TextDriver: (props: ComponentProps, options?: ComponentDriverOptions) => {
2
+ import { ComponentProps } from '../../testkit/new/Component.driver';
3
+ export declare const TextDriver: (props: ComponentProps) => {
4
4
  getText: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
5
5
  getStyle: () => TextStyle;
6
6
  press: () => void;
@@ -1,8 +1,8 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
  import { useComponentDriver } from "../../testkit/new/Component.driver";
3
3
  import { usePressableDriver } from "../../testkit/new/usePressable.driver";
4
- export const TextDriver = (props, options) => {
5
- const driver = usePressableDriver(useComponentDriver(props, options));
4
+ export const TextDriver = props => {
5
+ const driver = usePressableDriver(useComponentDriver(props));
6
6
  const getText = () => {
7
7
  const textChildren = driver.getElement().children;
8
8
  if (textChildren.length === 0) {
@@ -81,6 +81,7 @@ const styles = StyleSheet.create({
81
81
  })
82
82
  },
83
83
  webStyle: {
84
+ // @ts-expect-error
84
85
  outlineWidth: 0
85
86
  }
86
87
  });
@@ -1,5 +1,5 @@
1
- import { ComponentProps, ComponentDriverOptions } from '../../testkit/new/Component.driver';
2
- export declare const TextFieldDriver: (props: ComponentProps, options?: ComponentDriverOptions) => {
1
+ import { ComponentProps } from '../../testkit/new/Component.driver';
2
+ export declare const TextFieldDriver: (props: ComponentProps) => {
3
3
  getValue: () => string | undefined;
4
4
  changeText: (text: string) => void;
5
5
  focus: () => void;
@@ -113,6 +113,7 @@ export declare const TextFieldDriver: (props: ComponentProps, options?: Componen
113
113
  getLabelStyle: () => import("react-native").TextStyle;
114
114
  getIconStyle: () => any;
115
115
  getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
116
+ isDisabled: () => boolean;
116
117
  };
117
118
  press: () => void;
118
119
  hasOnPress: () => boolean;
@@ -7,8 +7,8 @@ import { TextDriver } from "../text/Text.driver.new";
7
7
  import { ImageDriver } from "../image/Image.driver.new";
8
8
  import { ButtonDriver } from "../button/Button.driver.new";
9
9
  import { ViewDriver } from "../view/View.driver.new";
10
- export const TextFieldDriver = (props, options) => {
11
- const driver = usePressableDriver(useComponentDriver(props, options));
10
+ export const TextFieldDriver = props => {
11
+ const driver = usePressableDriver(useComponentDriver(props));
12
12
  const floatingPlaceholderDriver = TextDriver({
13
13
  renderTree: props.renderTree,
14
14
  testID: `${props.testID}.floatingPlaceholder`
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  fontFamily?: string | undefined;
37
37
  fontSize?: number | undefined;
38
38
  fontStyle?: "normal" | "italic" | undefined;
39
- fontWeight?: "black" | 900 | 600 | "light" | 100 | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 200 | 300 | 400 | 500 | 700 | 800 | "ultralight" | "thin" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | undefined;
39
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
40
40
  letterSpacing?: number | undefined;
41
41
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
42
42
  textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
@@ -58,41 +58,31 @@ declare const _default: {
58
58
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
59
59
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
60
60
  borderBottomColor?: import("react-native").ColorValue | undefined;
61
- borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
62
- borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
63
- borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
64
- borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
61
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
62
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
63
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
64
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
65
65
  borderColor?: import("react-native").ColorValue | undefined;
66
66
  borderCurve?: "circular" | "continuous" | undefined;
67
67
  borderEndColor?: import("react-native").ColorValue | undefined;
68
- borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
69
- borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
68
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
69
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
70
70
  borderLeftColor?: import("react-native").ColorValue | undefined;
71
- borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
71
+ borderRadius?: import("react-native").AnimatableNumericValue | undefined;
72
72
  borderRightColor?: import("react-native").ColorValue | undefined;
73
73
  borderStartColor?: import("react-native").ColorValue | undefined;
74
- borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
75
- borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
74
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
75
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
76
76
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
77
77
  borderTopColor?: import("react-native").ColorValue | undefined;
78
- borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
79
- borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
80
- borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
81
- borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
82
- outlineColor?: import("react-native").ColorValue | undefined;
83
- outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
84
- outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
85
- outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
78
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
79
+ borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
80
+ borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
81
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
86
82
  opacity?: import("react-native").AnimatableNumericValue | undefined;
87
83
  elevation?: number | undefined;
88
84
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
89
- isolation?: "auto" | "isolate" | undefined;
90
- cursor?: import("react-native").CursorValue | undefined;
91
- boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
92
- filter?: string | readonly import("react-native").FilterFunction[] | undefined;
93
- mixBlendMode?: import("react-native").BlendMode | undefined;
94
- experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
95
- alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
85
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
96
86
  alignItems?: import("react-native").FlexAlignType | undefined;
97
87
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
98
88
  aspectRatio?: string | number | undefined;
@@ -104,15 +94,14 @@ declare const _default: {
104
94
  borderTopWidth?: number | undefined;
105
95
  borderWidth?: number | undefined;
106
96
  bottom?: import("react-native").DimensionValue | undefined;
107
- boxSizing?: "border-box" | "content-box" | undefined;
108
- display?: "none" | "flex" | "contents" | undefined;
97
+ display?: "none" | "flex" | undefined;
109
98
  end?: import("react-native").DimensionValue | undefined;
110
99
  flex?: number | undefined;
111
100
  flexBasis?: import("react-native").DimensionValue | undefined;
112
101
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
113
- rowGap?: string | number | undefined;
114
- gap?: string | number | undefined;
115
- columnGap?: string | number | undefined;
102
+ rowGap?: number | undefined;
103
+ gap?: number | undefined;
104
+ columnGap?: number | undefined;
116
105
  flexGrow?: number | undefined;
117
106
  flexShrink?: number | undefined;
118
107
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -141,32 +130,13 @@ declare const _default: {
141
130
  paddingStart?: import("react-native").DimensionValue | undefined;
142
131
  paddingTop?: import("react-native").DimensionValue | undefined;
143
132
  paddingVertical?: import("react-native").DimensionValue | undefined;
144
- position?: "absolute" | "relative" | "static" | undefined;
133
+ position?: "absolute" | "relative" | undefined;
145
134
  right?: import("react-native").DimensionValue | undefined;
146
135
  start?: import("react-native").DimensionValue | undefined;
147
136
  top?: import("react-native").DimensionValue | undefined;
148
137
  width?: import("react-native").DimensionValue | undefined;
149
138
  zIndex?: number | undefined;
150
139
  direction?: "ltr" | "rtl" | "inherit" | undefined;
151
- inset?: import("react-native").DimensionValue | undefined;
152
- insetBlock?: import("react-native").DimensionValue | undefined;
153
- insetBlockEnd?: import("react-native").DimensionValue | undefined;
154
- insetBlockStart?: import("react-native").DimensionValue | undefined;
155
- insetInline?: import("react-native").DimensionValue | undefined;
156
- insetInlineEnd?: import("react-native").DimensionValue | undefined;
157
- insetInlineStart?: import("react-native").DimensionValue | undefined;
158
- marginBlock?: import("react-native").DimensionValue | undefined;
159
- marginBlockEnd?: import("react-native").DimensionValue | undefined;
160
- marginBlockStart?: import("react-native").DimensionValue | undefined;
161
- marginInline?: import("react-native").DimensionValue | undefined;
162
- marginInlineEnd?: import("react-native").DimensionValue | undefined;
163
- marginInlineStart?: import("react-native").DimensionValue | undefined;
164
- paddingBlock?: import("react-native").DimensionValue | undefined;
165
- paddingBlockEnd?: import("react-native").DimensionValue | undefined;
166
- paddingBlockStart?: import("react-native").DimensionValue | undefined;
167
- paddingInline?: import("react-native").DimensionValue | undefined;
168
- paddingInlineEnd?: import("react-native").DimensionValue | undefined;
169
- paddingInlineStart?: import("react-native").DimensionValue | undefined;
170
140
  shadowColor?: import("react-native").ColorValue | undefined;
171
141
  shadowOffset?: Readonly<{
172
142
  width: number;
@@ -174,7 +144,7 @@ declare const _default: {
174
144
  }> | undefined;
175
145
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
176
146
  shadowRadius?: number | undefined;
177
- transform?: string | readonly (({
147
+ transform?: string | (({
178
148
  perspective: import("react-native").AnimatableNumericValue;
179
149
  } & {
180
150
  rotate?: undefined;
@@ -295,7 +265,7 @@ declare const _default: {
295
265
  skewY?: undefined;
296
266
  matrix?: undefined;
297
267
  }) | ({
298
- translateX: import("react-native").AnimatableNumericValue | `${number}%`;
268
+ translateX: import("react-native").AnimatableNumericValue;
299
269
  } & {
300
270
  perspective?: undefined;
301
271
  rotate?: undefined;
@@ -310,7 +280,7 @@ declare const _default: {
310
280
  skewY?: undefined;
311
281
  matrix?: undefined;
312
282
  }) | ({
313
- translateY: import("react-native").AnimatableNumericValue | `${number}%`;
283
+ translateY: import("react-native").AnimatableNumericValue;
314
284
  } & {
315
285
  perspective?: undefined;
316
286
  rotate?: undefined;
@@ -386,7 +356,7 @@ declare const _default: {
386
356
  fontFamily?: string | undefined;
387
357
  fontSize?: number | undefined;
388
358
  fontStyle?: "normal" | "italic" | undefined;
389
- fontWeight?: "black" | 900 | 600 | "light" | 100 | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 200 | 300 | 400 | 500 | 700 | 800 | "ultralight" | "thin" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | undefined;
359
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
390
360
  letterSpacing?: number | undefined;
391
361
  lineHeight?: number | undefined;
392
362
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
@@ -409,41 +379,31 @@ declare const _default: {
409
379
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
410
380
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
411
381
  borderBottomColor?: import("react-native").ColorValue | undefined;
412
- borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
413
- borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
414
- borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
415
- borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
382
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
383
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
384
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
385
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
416
386
  borderColor?: import("react-native").ColorValue | undefined;
417
387
  borderCurve?: "circular" | "continuous" | undefined;
418
388
  borderEndColor?: import("react-native").ColorValue | undefined;
419
- borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
420
- borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
389
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
390
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
421
391
  borderLeftColor?: import("react-native").ColorValue | undefined;
422
- borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
392
+ borderRadius?: import("react-native").AnimatableNumericValue | undefined;
423
393
  borderRightColor?: import("react-native").ColorValue | undefined;
424
394
  borderStartColor?: import("react-native").ColorValue | undefined;
425
- borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
426
- borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
395
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
396
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
427
397
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
428
398
  borderTopColor?: import("react-native").ColorValue | undefined;
429
- borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
430
- borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
431
- borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
432
- borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
433
- outlineColor?: import("react-native").ColorValue | undefined;
434
- outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
435
- outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
436
- outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
399
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
400
+ borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
401
+ borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
402
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
437
403
  opacity?: import("react-native").AnimatableNumericValue | undefined;
438
404
  elevation?: number | undefined;
439
405
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
440
- isolation?: "auto" | "isolate" | undefined;
441
- cursor?: import("react-native").CursorValue | undefined;
442
- boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
443
- filter?: string | readonly import("react-native").FilterFunction[] | undefined;
444
- mixBlendMode?: import("react-native").BlendMode | undefined;
445
- experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
446
- alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
406
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
447
407
  alignItems?: import("react-native").FlexAlignType | undefined;
448
408
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
449
409
  aspectRatio?: string | number | undefined;
@@ -455,15 +415,14 @@ declare const _default: {
455
415
  borderTopWidth?: number | undefined;
456
416
  borderWidth?: number | undefined;
457
417
  bottom?: import("react-native").DimensionValue | undefined;
458
- boxSizing?: "border-box" | "content-box" | undefined;
459
- display?: "none" | "flex" | "contents" | undefined;
418
+ display?: "none" | "flex" | undefined;
460
419
  end?: import("react-native").DimensionValue | undefined;
461
420
  flex?: number | undefined;
462
421
  flexBasis?: import("react-native").DimensionValue | undefined;
463
422
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
464
- rowGap?: string | number | undefined;
465
- gap?: string | number | undefined;
466
- columnGap?: string | number | undefined;
423
+ rowGap?: number | undefined;
424
+ gap?: number | undefined;
425
+ columnGap?: number | undefined;
467
426
  flexGrow?: number | undefined;
468
427
  flexShrink?: number | undefined;
469
428
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -493,32 +452,13 @@ declare const _default: {
493
452
  paddingStart?: import("react-native").DimensionValue | undefined;
494
453
  paddingTop?: import("react-native").DimensionValue | undefined;
495
454
  paddingVertical?: import("react-native").DimensionValue | undefined;
496
- position?: "absolute" | "relative" | "static" | undefined;
455
+ position?: "absolute" | "relative" | undefined;
497
456
  right?: import("react-native").DimensionValue | undefined;
498
457
  start?: import("react-native").DimensionValue | undefined;
499
458
  top?: import("react-native").DimensionValue | undefined;
500
459
  width?: import("react-native").DimensionValue | undefined;
501
460
  zIndex?: number | undefined;
502
461
  direction?: "ltr" | "rtl" | "inherit" | undefined;
503
- inset?: import("react-native").DimensionValue | undefined;
504
- insetBlock?: import("react-native").DimensionValue | undefined;
505
- insetBlockEnd?: import("react-native").DimensionValue | undefined;
506
- insetBlockStart?: import("react-native").DimensionValue | undefined;
507
- insetInline?: import("react-native").DimensionValue | undefined;
508
- insetInlineEnd?: import("react-native").DimensionValue | undefined;
509
- insetInlineStart?: import("react-native").DimensionValue | undefined;
510
- marginBlock?: import("react-native").DimensionValue | undefined;
511
- marginBlockEnd?: import("react-native").DimensionValue | undefined;
512
- marginBlockStart?: import("react-native").DimensionValue | undefined;
513
- marginInline?: import("react-native").DimensionValue | undefined;
514
- marginInlineEnd?: import("react-native").DimensionValue | undefined;
515
- marginInlineStart?: import("react-native").DimensionValue | undefined;
516
- paddingBlock?: import("react-native").DimensionValue | undefined;
517
- paddingBlockEnd?: import("react-native").DimensionValue | undefined;
518
- paddingBlockStart?: import("react-native").DimensionValue | undefined;
519
- paddingInline?: import("react-native").DimensionValue | undefined;
520
- paddingInlineEnd?: import("react-native").DimensionValue | undefined;
521
- paddingInlineStart?: import("react-native").DimensionValue | undefined;
522
462
  shadowColor?: import("react-native").ColorValue | undefined;
523
463
  shadowOffset?: Readonly<{
524
464
  width: number;
@@ -526,7 +466,7 @@ declare const _default: {
526
466
  }> | undefined;
527
467
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
528
468
  shadowRadius?: number | undefined;
529
- transform?: string | readonly (({
469
+ transform?: string | (({
530
470
  perspective: import("react-native").AnimatableNumericValue;
531
471
  } & {
532
472
  rotate?: undefined;
@@ -647,7 +587,7 @@ declare const _default: {
647
587
  skewY?: undefined;
648
588
  matrix?: undefined;
649
589
  }) | ({
650
- translateX: import("react-native").AnimatableNumericValue | `${number}%`;
590
+ translateX: import("react-native").AnimatableNumericValue;
651
591
  } & {
652
592
  perspective?: undefined;
653
593
  rotate?: undefined;
@@ -662,7 +602,7 @@ declare const _default: {
662
602
  skewY?: undefined;
663
603
  matrix?: undefined;
664
604
  }) | ({
665
- translateY: import("react-native").AnimatableNumericValue | `${number}%`;
605
+ translateY: import("react-native").AnimatableNumericValue;
666
606
  } & {
667
607
  perspective?: undefined;
668
608
  rotate?: undefined;