react-native-ui-lib 7.46.3 → 8.0.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 (214) hide show
  1. package/babel.config.js +12 -0
  2. package/incubator.d.ts +2 -2
  3. package/incubator.js +0 -2
  4. package/index.js +1 -0
  5. package/lib/android/build.gradle +5 -5
  6. package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +0 -2
  7. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +31 -23
  8. package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
  9. package/lib/components/{HighlighterOverlayView.d.ts → HighlighterOverlayView/index.d.ts} +1 -1
  10. package/lib/components/HighlighterOverlayView/index.js +49 -0
  11. package/lib/components/{HighlighterOverlayView.web.d.ts → HighlighterOverlayView/index.web.d.ts} +1 -1
  12. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.android.d.ts +5 -2
  13. package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +51 -0
  14. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
  15. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
  16. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/CustomKeyboardView}/CustomKeyboardViewBase.d.ts +3 -0
  17. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/CustomKeyboardView}/CustomKeyboardViewBase.js +1 -1
  18. package/lib/components/Keyboard/{KeyboardInput/utils → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager}/__tests__/EventEmitterManager.spec.js +1 -1
  19. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/KeyboardRegistry}/__tests__/KeyboardRegistry.spec.js +1 -1
  20. package/lib/components/Keyboard/{KeyboardInput/KeyboardRegistry.d.ts → KeyboardAccessoryView/KeyboardRegistry/index.d.ts} +1 -1
  21. package/lib/components/Keyboard/{KeyboardInput/KeyboardRegistry.js → KeyboardAccessoryView/KeyboardRegistry/index.js} +1 -1
  22. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/KeyboardRegistry}/keyboardRegistry.api.json +9 -9
  23. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +26 -0
  24. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +91 -0
  25. package/lib/components/Keyboard/{KeyboardInput/KeyboardAccessoryView.d.ts → KeyboardAccessoryView/index.d.ts} +11 -1
  26. package/lib/components/Keyboard/{KeyboardInput/KeyboardAccessoryView.js → KeyboardAccessoryView/index.js} +31 -5
  27. package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/keyboardAccessoryView.api.json +5 -5
  28. package/lib/components/Keyboard/{KeyboardTracking/KeyboardAwareInsetsView.d.ts → KeyboardAwareInsetsView/index.d.ts} +1 -1
  29. package/lib/components/Keyboard/{KeyboardTracking/KeyboardAwareInsetsView.js → KeyboardAwareInsetsView/index.js} +1 -1
  30. package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +1 -4
  31. package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.ios.js +5 -8
  32. package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.d.ts +2 -2
  33. package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/keyboardTrackingView.api.json +11 -20
  34. package/lib/components/Keyboard/index.d.ts +6 -6
  35. package/lib/components/Keyboard/index.js +6 -6
  36. package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +21 -7
  37. package/lib/components/SafeArea/SafeAreaInsetsManager.js +95 -31
  38. package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
  39. package/lib/components/SafeArea/SafeAreaSpacerView.js +63 -9
  40. package/lib/components/SafeArea/__tests__/SafeAreaInsetsManager.spec.js +274 -0
  41. package/lib/components/SafeArea/index.d.ts +10 -0
  42. package/lib/components/SafeArea/index.js +11 -0
  43. package/lib/components/index.d.ts +1 -1
  44. package/lib/components/index.js +1 -1
  45. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +56 -8
  46. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +1 -7
  47. package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +1 -1
  48. package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +134 -44
  49. package/lib/package.json +3 -3
  50. package/lib/react-native.config.js +1 -3
  51. package/metro.config.js +2 -2
  52. package/package.json +33 -32
  53. package/panView.d.ts +2 -0
  54. package/panView.js +1 -0
  55. package/scripts/release/prReleaseNotesCommon.js +15 -4
  56. package/src/commons/Constants.js +2 -5
  57. package/src/commons/modifiers.d.ts +1 -0
  58. package/src/commons/modifiers.js +5 -2
  59. package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +5 -1
  60. package/src/components/actionSheet/index.d.ts +2 -12
  61. package/src/components/actionSheet/index.js +3 -42
  62. package/src/components/animatedImage/index.js +12 -2
  63. package/src/components/badge/index.d.ts +107 -47
  64. package/src/components/button/button.api.json +1 -1
  65. package/src/components/button/index.d.ts +53 -23
  66. package/src/components/button/types.d.ts +0 -1
  67. package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
  68. package/src/components/colorPicker/ColorPickerDialog.js +1 -1
  69. package/src/components/dateTimePicker/index.d.ts +186 -5
  70. package/src/components/dateTimePicker/index.js +3 -4
  71. package/src/components/dialog/dialog.api.json +34 -35
  72. package/src/{incubator → components}/dialog/dialogHeader.api.json +2 -2
  73. package/src/components/dialog/index.d.ts +13 -105
  74. package/src/components/dialog/index.js +205 -212
  75. package/src/{incubator → components}/dialog/types.d.ts +7 -19
  76. package/src/{incubator → components}/dialog/types.js +1 -3
  77. package/src/{incubator → components}/dialog/useDialogContent.d.ts +1 -1
  78. package/src/components/drawer/Swipeable.js +1 -2
  79. package/src/components/drawer/index.js +31 -25
  80. package/src/components/fadedScrollView/index.js +7 -2
  81. package/src/components/featureHighlight/index.d.ts +1 -1
  82. package/src/components/hint/index.d.ts +0 -8
  83. package/src/components/hint/index.js +4 -6
  84. package/src/components/image/index.js +4 -0
  85. package/src/components/index.js +0 -19
  86. package/src/components/marquee/types.js +4 -1
  87. package/src/components/modal/index.d.ts +5 -0
  88. package/src/components/modal/index.js +14 -10
  89. package/src/components/modal/modal.api.json +5 -0
  90. package/src/{incubator → components}/panView/index.d.ts +3 -3
  91. package/src/{incubator → components}/panView/index.js +4 -4
  92. package/src/{incubator → components}/panView/usePanGesture.d.ts +1 -1
  93. package/src/components/picker/Picker.driver.new.d.ts +2 -2
  94. package/src/components/picker/Picker.driver.new.js +3 -3
  95. package/src/components/picker/PickerItem.js +6 -20
  96. package/src/components/picker/PickerPresenter.d.ts +0 -1
  97. package/src/components/picker/PickerPresenter.js +1 -23
  98. package/src/components/picker/api/picker.api.json +0 -1
  99. package/src/components/picker/api/pickerItem.api.json +0 -5
  100. package/src/components/picker/helpers/useFieldType.d.ts +53 -23
  101. package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
  102. package/src/components/picker/helpers/usePickerLabel.js +2 -3
  103. package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
  104. package/src/components/picker/helpers/usePickerMigrationWarnings.js +0 -12
  105. package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
  106. package/src/components/picker/helpers/usePickerSearch.js +4 -8
  107. package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
  108. package/src/components/picker/helpers/usePickerSelection.js +2 -10
  109. package/src/components/picker/index.js +4 -22
  110. package/src/components/picker/types.d.ts +1 -24
  111. package/src/components/segmentedControl/index.js +3 -3
  112. package/src/components/slider/GradientSlider.d.ts +1 -1
  113. package/src/components/slider/index.js +1 -1
  114. package/src/components/sortableGridList/SortableItem.js +13 -4
  115. package/src/components/sortableList/SortableListItem.js +13 -4
  116. package/src/components/stackAggregator/index.js +16 -11
  117. package/src/components/tabController/TabPage.js +18 -14
  118. package/src/components/text/Text.driver.new.d.ts +2 -2
  119. package/src/components/text/Text.driver.new.js +2 -2
  120. package/src/components/text/index.js +2 -3
  121. package/src/components/textField/Input.js +0 -1
  122. package/src/components/textField/TextField.driver.new.d.ts +2 -2
  123. package/src/components/textField/TextField.driver.new.js +2 -2
  124. package/src/components/textField/presets/outline.d.ts +106 -46
  125. package/src/components/textField/presets/underline.d.ts +106 -46
  126. package/src/components/textField/types.js +1 -0
  127. package/src/components/textField/usePreset.d.ts +72 -44
  128. package/src/components/timeline/types.js +3 -0
  129. package/src/{incubator/hooks/useHiddenLocation.web.d.ts → hooks/useHiddenLocation/index.d.ts} +1 -1
  130. package/src/{incubator/hooks/useHiddenLocation.d.ts → hooks/useHiddenLocation/index.web.d.ts} +1 -1
  131. package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
  132. package/src/incubator/expandableOverlay/index.d.ts +42 -3
  133. package/src/incubator/expandableOverlay/index.js +1 -4
  134. package/src/incubator/index.d.ts +0 -2
  135. package/src/incubator/index.js +0 -2
  136. package/src/incubator/slider/SliderPresenter.js +2 -1
  137. package/src/incubator/toast/index.js +1 -1
  138. package/src/index.d.ts +3 -10
  139. package/src/index.js +42 -162
  140. package/src/testkit/index.d.ts +1 -1
  141. package/src/testkit/index.js +1 -1
  142. package/src/testkit/new/Component.driver.d.ts +4 -1
  143. package/src/testkit/new/Component.driver.js +3 -3
  144. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +0 -30
  145. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +0 -34
  146. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +0 -33
  147. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +0 -53
  148. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +0 -54
  149. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +0 -28
  150. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +0 -36
  151. package/lib/components/HighlighterOverlayView.js +0 -40
  152. package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +0 -28
  153. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +0 -11
  154. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +0 -17
  155. package/panningViews.d.ts +0 -2
  156. package/panningViews.js +0 -1
  157. package/react-native.config.js +0 -22
  158. package/sharedTransition.d.ts +0 -2
  159. package/sharedTransition.js +0 -1
  160. package/src/components/dialog/DialogDismissibleView.d.ts +0 -34
  161. package/src/components/dialog/DialogDismissibleView.js +0 -184
  162. package/src/components/dialog/OverlayFadingBackground.d.ts +0 -14
  163. package/src/components/dialog/OverlayFadingBackground.js +0 -45
  164. package/src/components/panningViews/asPanViewConsumer.d.ts +0 -3
  165. package/src/components/panningViews/asPanViewConsumer.js +0 -16
  166. package/src/components/panningViews/panDismissibleView.d.ts +0 -51
  167. package/src/components/panningViews/panDismissibleView.js +0 -350
  168. package/src/components/panningViews/panGestureView.d.ts +0 -23
  169. package/src/components/panningViews/panGestureView.js +0 -156
  170. package/src/components/panningViews/panListenerView.d.ts +0 -66
  171. package/src/components/panningViews/panListenerView.js +0 -155
  172. package/src/components/panningViews/panResponderView.d.ts +0 -19
  173. package/src/components/panningViews/panResponderView.js +0 -79
  174. package/src/components/panningViews/panningContext.d.ts +0 -3
  175. package/src/components/panningViews/panningContext.js +0 -4
  176. package/src/components/panningViews/panningProvider.d.ts +0 -73
  177. package/src/components/panningViews/panningProvider.js +0 -101
  178. package/src/components/sharedTransition/ShareTransitionContext.js +0 -3
  179. package/src/components/sharedTransition/SharedArea.js +0 -153
  180. package/src/components/sharedTransition/SourceElement.js +0 -44
  181. package/src/components/sharedTransition/TargetElement.js +0 -38
  182. package/src/components/sharedTransition/index.js +0 -9
  183. package/src/incubator/dialog/dialog.api.json +0 -54
  184. package/src/incubator/dialog/index.d.ts +0 -15
  185. package/src/incubator/dialog/index.js +0 -218
  186. /package/lib/components/{HighlighterOverlayView.web.js → HighlighterOverlayView/index.web.js} +0 -0
  187. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.d.ts +0 -0
  188. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.js +0 -0
  189. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.web.d.ts +0 -0
  190. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.web.js +0 -0
  191. /package/lib/components/Keyboard/{KeyboardInput/utils/EventEmitterManager.d.ts → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts} +0 -0
  192. /package/lib/components/Keyboard/{KeyboardInput/utils/EventEmitterManager.js → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js} +0 -0
  193. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
  194. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
  195. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
  196. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
  197. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/index.d.ts +0 -0
  198. /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/index.js +0 -0
  199. /package/lib/components/Keyboard/{KeyboardTracking → KeyboardAwareInsetsView}/keyboardAwareInsetsView.api.json +0 -0
  200. /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
  201. /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
  202. /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.js +0 -0
  203. /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.web.d.ts +0 -0
  204. /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.web.js +0 -0
  205. /package/src/{incubator → components}/dialog/Dialog.driver.new.d.ts +0 -0
  206. /package/src/{incubator → components}/dialog/Dialog.driver.new.js +0 -0
  207. /package/src/{incubator → components}/dialog/DialogHeader.d.ts +0 -0
  208. /package/src/{incubator → components}/dialog/DialogHeader.js +0 -0
  209. /package/src/{incubator → components}/dialog/useDialogContent.js +0 -0
  210. /package/src/{incubator → components}/panView/panningUtil.d.ts +0 -0
  211. /package/src/{incubator → components}/panView/panningUtil.js +0 -0
  212. /package/src/{incubator → components}/panView/usePanGesture.js +0 -0
  213. /package/src/{incubator/hooks/useHiddenLocation.js → hooks/useHiddenLocation/index.js} +0 -0
  214. /package/src/{incubator/hooks/useHiddenLocation.web.js → hooks/useHiddenLocation/index.web.js} +0 -0
@@ -6,15 +6,12 @@ import React, { Component } from 'react';
6
6
  import { ActionSheetIOS, StyleSheet } from 'react-native';
7
7
  import { Colors } from "../../style";
8
8
  import { asBaseComponent, Constants } from "../../commons/new";
9
- import Dialog from "../dialog";
10
9
  import View from "../view";
11
10
  import Text from "../text";
12
11
  import Image from "../image";
13
12
  //@ts-ignore
14
13
  import ListItem from "../listItem";
15
- import PanningProvider from "../panningViews/panningProvider";
16
- import { Dialog as IncubatorDialog } from "../../incubator";
17
- import { LogService } from "../../services";
14
+ import Dialog from "../dialog";
18
15
  const VERTICAL_PADDING = 8;
19
16
  /**
20
17
  * @description: Cross platform Action Sheet, with a support for native iOS solution
@@ -130,55 +127,19 @@ class ActionSheet extends Component {
130
127
  {this.renderActions()}
131
128
  </View>;
132
129
  }
133
- renderOldDialog() {
130
+ render() {
134
131
  const {
135
- useNativeIOS,
136
132
  visible,
137
133
  onDismiss,
138
134
  dialogStyle,
139
- onModalDismissed,
140
135
  testID,
141
136
  useSafeArea,
142
137
  dialogProps
143
138
  } = this.props;
144
- if (Constants.isIOS && useNativeIOS) {
145
- return null;
146
- }
147
- return <Dialog bottom centerH width="100%" panDirection={PanningProvider.Directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.dialog, dialogStyle]} visible={visible} onDismiss={onDismiss} onDialogDismissed={onModalDismissed}>
139
+ return <Dialog bottom centerH width="100%" direction={Dialog.directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.incubatorDialog, dialogStyle]} visible={visible} onDismiss={onDismiss}>
148
140
  {this.renderSheet()}
149
141
  </Dialog>;
150
142
  }
151
- renderNewDialog() {
152
- const {
153
- visible,
154
- onDismiss,
155
- dialogStyle,
156
- onModalDismissed,
157
- testID,
158
- useSafeArea,
159
- dialogProps
160
- } = this.props;
161
- if (onModalDismissed) {
162
- LogService.deprecationWarn({
163
- component: 'ActionSheet',
164
- oldProp: 'onModalDismissed',
165
- newProp: 'onDismiss'
166
- });
167
- }
168
- return <IncubatorDialog bottom centerH width="100%" direction={PanningProvider.Directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.incubatorDialog, dialogStyle]} visible={visible} onDismiss={onDismiss}>
169
- {this.renderSheet()}
170
- </IncubatorDialog>;
171
- }
172
- render() {
173
- const {
174
- migrateDialog
175
- } = this.props;
176
- if (migrateDialog) {
177
- return this.renderNewDialog();
178
- } else {
179
- return this.renderOldDialog();
180
- }
181
- }
182
143
  }
183
144
  export default asBaseComponent(ActionSheet);
184
145
  const styles = StyleSheet.create({
@@ -1,10 +1,11 @@
1
1
  // TODO: consider unify this component functionality with our Image component
2
- import React, { useState, useCallback, useMemo } from 'react';
2
+ import React, { useState, useCallback, useMemo, useEffect } from 'react';
3
3
  import { StyleSheet } from 'react-native';
4
4
  import Animated, { useSharedValue, useAnimatedStyle, withTiming } from 'react-native-reanimated';
5
5
  import View from "../../components/view";
6
6
  import Image from "../../components/image";
7
7
  import { useDidUpdate } from "../../hooks";
8
+ import Constants from "../../commons/Constants";
8
9
  const UIAnimatedImage = Animated.createAnimatedComponent(Image);
9
10
  /**
10
11
  * @description: Image component that fades-in the image with animation once it's loaded
@@ -31,6 +32,13 @@ const AnimatedImage = props => {
31
32
  opacity.value = 1;
32
33
  }
33
34
  }, [loader]);
35
+ useEffect(() => {
36
+ if (Constants.isIOS) {
37
+ setIsLoading(true);
38
+ propsOnLoadStart?.();
39
+ }
40
+ // eslint-disable-next-line react-hooks/exhaustive-deps
41
+ }, [source]);
34
42
  const onLoad = useCallback(event => {
35
43
  setIsLoading(false);
36
44
  propsOnLoad?.(event);
@@ -43,6 +51,8 @@ const AnimatedImage = props => {
43
51
  },
44
52
  // eslint-disable-next-line react-hooks/exhaustive-deps
45
53
  [setIsLoading, propsOnLoad, animationDuration]);
54
+
55
+ // TODO: RN 77 - revert to this solution when iOS is fixed in future RN releases
46
56
  const onLoadStart = useCallback(() => {
47
57
  setIsLoading(true);
48
58
  propsOnLoadStart?.();
@@ -56,7 +66,7 @@ const AnimatedImage = props => {
56
66
  // eslint-disable-next-line react-hooks/exhaustive-deps
57
67
  const _style = useMemo(() => [style, fadeInStyle], [style]);
58
68
  return <View style={containerStyle}>
59
- <UIAnimatedImage {...others} style={_style} source={source} onLoad={onLoad} onLoadStart={onLoadStart} testID={testID} imageStyle={undefined} />
69
+ <UIAnimatedImage {...others} style={_style} source={source} onLoad={onLoad} onLoadStart={Constants.isAndroid ? onLoadStart : undefined} testID={testID} imageStyle={undefined} />
60
70
  {isLoading && loader && <View style={styles.loader}>{loader}</View>}
61
71
  </View>;
62
72
  };
@@ -109,7 +109,7 @@ declare function createStyles(props: BadgeProps): {
109
109
  fontFamily?: string | undefined;
110
110
  fontSize?: number | undefined;
111
111
  fontStyle?: "normal" | "italic" | undefined;
112
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
112
+ 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;
113
113
  letterSpacing?: number | undefined;
114
114
  lineHeight?: number | undefined;
115
115
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
@@ -131,31 +131,41 @@ declare function createStyles(props: BadgeProps): {
131
131
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
132
132
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
133
133
  borderBottomColor?: import("react-native").ColorValue | undefined;
134
- borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
135
- borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
136
- borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
137
- borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
134
+ borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
135
+ borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
136
+ borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
137
+ borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
138
138
  borderColor?: import("react-native").ColorValue | undefined;
139
139
  borderCurve?: "circular" | "continuous" | undefined;
140
140
  borderEndColor?: import("react-native").ColorValue | undefined;
141
- borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
142
- borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
141
+ borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
142
+ borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
143
143
  borderLeftColor?: import("react-native").ColorValue | undefined;
144
- borderRadius?: import("react-native").AnimatableNumericValue | undefined;
144
+ borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
145
145
  borderRightColor?: import("react-native").ColorValue | undefined;
146
146
  borderStartColor?: import("react-native").ColorValue | undefined;
147
- borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
148
- borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
147
+ borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
148
+ borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
149
149
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
150
150
  borderTopColor?: import("react-native").ColorValue | undefined;
151
- borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
152
- borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
153
- borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
154
- borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
151
+ borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
152
+ borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
153
+ borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
154
+ borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
155
+ outlineColor?: import("react-native").ColorValue | undefined;
156
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
157
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
158
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
155
159
  opacity?: import("react-native").AnimatableNumericValue | undefined;
156
160
  elevation?: number | undefined;
157
161
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
158
- alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
162
+ isolation?: "auto" | "isolate" | undefined;
163
+ cursor?: import("react-native").CursorValue | undefined;
164
+ boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
165
+ filter?: string | readonly import("react-native").FilterFunction[] | undefined;
166
+ mixBlendMode?: import("react-native").BlendMode | undefined;
167
+ experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
168
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
159
169
  alignItems?: import("react-native").FlexAlignType | undefined;
160
170
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
161
171
  aspectRatio?: string | number | undefined;
@@ -167,14 +177,15 @@ declare function createStyles(props: BadgeProps): {
167
177
  borderTopWidth?: number | undefined;
168
178
  borderWidth?: number | undefined;
169
179
  bottom?: import("react-native").DimensionValue | undefined;
170
- display?: "none" | "flex" | undefined;
180
+ boxSizing?: "border-box" | "content-box" | undefined;
181
+ display?: "none" | "flex" | "contents" | undefined;
171
182
  end?: import("react-native").DimensionValue | undefined;
172
183
  flex?: number | undefined;
173
184
  flexBasis?: import("react-native").DimensionValue | undefined;
174
185
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
175
- rowGap?: number | undefined;
176
- gap?: number | undefined;
177
- columnGap?: number | undefined;
186
+ rowGap?: string | number | undefined;
187
+ gap?: string | number | undefined;
188
+ columnGap?: string | number | undefined;
178
189
  flexGrow?: number | undefined;
179
190
  flexShrink?: number | undefined;
180
191
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -204,13 +215,32 @@ declare function createStyles(props: BadgeProps): {
204
215
  paddingStart?: import("react-native").DimensionValue | undefined;
205
216
  paddingTop?: import("react-native").DimensionValue | undefined;
206
217
  paddingVertical?: import("react-native").DimensionValue | undefined;
207
- position?: "absolute" | "relative" | undefined;
218
+ position?: "absolute" | "relative" | "static" | undefined;
208
219
  right?: import("react-native").DimensionValue | undefined;
209
220
  start?: import("react-native").DimensionValue | undefined;
210
221
  top?: import("react-native").DimensionValue | undefined;
211
222
  width?: import("react-native").DimensionValue | undefined;
212
223
  zIndex?: number | undefined;
213
224
  direction?: "ltr" | "rtl" | "inherit" | undefined;
225
+ inset?: import("react-native").DimensionValue | undefined;
226
+ insetBlock?: import("react-native").DimensionValue | undefined;
227
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
228
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
229
+ insetInline?: import("react-native").DimensionValue | undefined;
230
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
231
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
232
+ marginBlock?: import("react-native").DimensionValue | undefined;
233
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
234
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
235
+ marginInline?: import("react-native").DimensionValue | undefined;
236
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
237
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
238
+ paddingBlock?: import("react-native").DimensionValue | undefined;
239
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
240
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
241
+ paddingInline?: import("react-native").DimensionValue | undefined;
242
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
243
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
214
244
  shadowColor?: import("react-native").ColorValue | undefined;
215
245
  shadowOffset?: Readonly<{
216
246
  width: number;
@@ -218,7 +248,7 @@ declare function createStyles(props: BadgeProps): {
218
248
  }> | undefined;
219
249
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
220
250
  shadowRadius?: number | undefined;
221
- transform?: string | (({
251
+ transform?: string | readonly (({
222
252
  perspective: import("react-native").AnimatableNumericValue;
223
253
  } & {
224
254
  rotate?: undefined;
@@ -339,7 +369,7 @@ declare function createStyles(props: BadgeProps): {
339
369
  skewY?: undefined;
340
370
  matrix?: undefined;
341
371
  }) | ({
342
- translateX: import("react-native").AnimatableNumericValue;
372
+ translateX: import("react-native").AnimatableNumericValue | `${number}%`;
343
373
  } & {
344
374
  perspective?: undefined;
345
375
  rotate?: undefined;
@@ -354,7 +384,7 @@ declare function createStyles(props: BadgeProps): {
354
384
  skewY?: undefined;
355
385
  matrix?: undefined;
356
386
  }) | ({
357
- translateY: import("react-native").AnimatableNumericValue;
387
+ translateY: import("react-native").AnimatableNumericValue | `${number}%`;
358
388
  } & {
359
389
  perspective?: undefined;
360
390
  rotate?: undefined;
@@ -431,7 +461,7 @@ declare function createStyles(props: BadgeProps): {
431
461
  fontFamily?: string | undefined;
432
462
  fontSize?: number | undefined;
433
463
  fontStyle?: "normal" | "italic" | undefined;
434
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
464
+ 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;
435
465
  letterSpacing?: number | undefined;
436
466
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
437
467
  textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
@@ -453,31 +483,41 @@ declare function createStyles(props: BadgeProps): {
453
483
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
454
484
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
455
485
  borderBottomColor?: import("react-native").ColorValue | undefined;
456
- borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
457
- borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
458
- borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
459
- borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
486
+ borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
487
+ borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
488
+ borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
489
+ borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
460
490
  borderColor?: import("react-native").ColorValue | undefined;
461
491
  borderCurve?: "circular" | "continuous" | undefined;
462
492
  borderEndColor?: import("react-native").ColorValue | undefined;
463
- borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
464
- borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
493
+ borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
494
+ borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
465
495
  borderLeftColor?: import("react-native").ColorValue | undefined;
466
- borderRadius?: import("react-native").AnimatableNumericValue | undefined;
496
+ borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
467
497
  borderRightColor?: import("react-native").ColorValue | undefined;
468
498
  borderStartColor?: import("react-native").ColorValue | undefined;
469
- borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
470
- borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
499
+ borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
500
+ borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
471
501
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
472
502
  borderTopColor?: import("react-native").ColorValue | undefined;
473
- borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
474
- borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
475
- borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
476
- borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
503
+ borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
504
+ borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
505
+ borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
506
+ borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
507
+ outlineColor?: import("react-native").ColorValue | undefined;
508
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
509
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
510
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
477
511
  opacity?: import("react-native").AnimatableNumericValue | undefined;
478
512
  elevation?: number | undefined;
479
513
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
480
- alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
514
+ isolation?: "auto" | "isolate" | undefined;
515
+ cursor?: import("react-native").CursorValue | undefined;
516
+ boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
517
+ filter?: string | readonly import("react-native").FilterFunction[] | undefined;
518
+ mixBlendMode?: import("react-native").BlendMode | undefined;
519
+ experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
520
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
481
521
  alignItems?: import("react-native").FlexAlignType | undefined;
482
522
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
483
523
  aspectRatio?: string | number | undefined;
@@ -489,14 +529,15 @@ declare function createStyles(props: BadgeProps): {
489
529
  borderTopWidth?: number | undefined;
490
530
  borderWidth?: number | undefined;
491
531
  bottom?: import("react-native").DimensionValue | undefined;
492
- display?: "none" | "flex" | undefined;
532
+ boxSizing?: "border-box" | "content-box" | undefined;
533
+ display?: "none" | "flex" | "contents" | undefined;
493
534
  end?: import("react-native").DimensionValue | undefined;
494
535
  flex?: number | undefined;
495
536
  flexBasis?: import("react-native").DimensionValue | undefined;
496
537
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
497
- rowGap?: number | undefined;
498
- gap?: number | undefined;
499
- columnGap?: number | undefined;
538
+ rowGap?: string | number | undefined;
539
+ gap?: string | number | undefined;
540
+ columnGap?: string | number | undefined;
500
541
  flexGrow?: number | undefined;
501
542
  flexShrink?: number | undefined;
502
543
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -526,13 +567,32 @@ declare function createStyles(props: BadgeProps): {
526
567
  paddingStart?: import("react-native").DimensionValue | undefined;
527
568
  paddingTop?: import("react-native").DimensionValue | undefined;
528
569
  paddingVertical?: import("react-native").DimensionValue | undefined;
529
- position?: "absolute" | "relative" | undefined;
570
+ position?: "absolute" | "relative" | "static" | undefined;
530
571
  right?: import("react-native").DimensionValue | undefined;
531
572
  start?: import("react-native").DimensionValue | undefined;
532
573
  top?: import("react-native").DimensionValue | undefined;
533
574
  width?: import("react-native").DimensionValue | undefined;
534
575
  zIndex?: number | undefined;
535
576
  direction?: "ltr" | "rtl" | "inherit" | undefined;
577
+ inset?: import("react-native").DimensionValue | undefined;
578
+ insetBlock?: import("react-native").DimensionValue | undefined;
579
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
580
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
581
+ insetInline?: import("react-native").DimensionValue | undefined;
582
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
583
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
584
+ marginBlock?: import("react-native").DimensionValue | undefined;
585
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
586
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
587
+ marginInline?: import("react-native").DimensionValue | undefined;
588
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
589
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
590
+ paddingBlock?: import("react-native").DimensionValue | undefined;
591
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
592
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
593
+ paddingInline?: import("react-native").DimensionValue | undefined;
594
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
595
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
536
596
  shadowColor?: import("react-native").ColorValue | undefined;
537
597
  shadowOffset?: Readonly<{
538
598
  width: number;
@@ -540,7 +600,7 @@ declare function createStyles(props: BadgeProps): {
540
600
  }> | undefined;
541
601
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
542
602
  shadowRadius?: number | undefined;
543
- transform?: string | (({
603
+ transform?: string | readonly (({
544
604
  perspective: import("react-native").AnimatableNumericValue;
545
605
  } & {
546
606
  rotate?: undefined;
@@ -661,7 +721,7 @@ declare function createStyles(props: BadgeProps): {
661
721
  skewY?: undefined;
662
722
  matrix?: undefined;
663
723
  }) | ({
664
- translateX: import("react-native").AnimatableNumericValue;
724
+ translateX: import("react-native").AnimatableNumericValue | `${number}%`;
665
725
  } & {
666
726
  perspective?: undefined;
667
727
  rotate?: undefined;
@@ -676,7 +736,7 @@ declare function createStyles(props: BadgeProps): {
676
736
  skewY?: undefined;
677
737
  matrix?: undefined;
678
738
  }) | ({
679
- translateY: import("react-native").AnimatableNumericValue;
739
+ translateY: import("react-native").AnimatableNumericValue | `${number}%`;
680
740
  } & {
681
741
  perspective?: undefined;
682
742
  rotate?: undefined;
@@ -770,7 +830,7 @@ declare const _default: React.ForwardRefExoticComponent<ViewProps & TouchableOpa
770
830
  /**
771
831
  * Defines how far a touch event can start away from the badge.
772
832
  */
773
- hitSlop?: import("react-native").Insets | undefined;
833
+ hitSlop?: number | import("react-native").Insets | null | undefined;
774
834
  /**
775
835
  * width of border around the badge
776
836
  */
@@ -155,7 +155,7 @@
155
155
  {
156
156
  "name": "animateLayout",
157
157
  "type": "boolean",
158
- "description": "should animate layout change. Note: For Android you must set 'setLayoutAnimationEnabledExperimental(true)' via RN's 'UIManager'"
158
+ "description": "should animate layout change"
159
159
  },
160
160
  {
161
161
  "name": "animateTo",
@@ -39,7 +39,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
39
39
  fontFamily?: string | undefined;
40
40
  fontSize?: number | undefined;
41
41
  fontStyle?: "normal" | "italic" | undefined;
42
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
42
+ 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;
43
43
  letterSpacing?: number | undefined;
44
44
  lineHeight?: number | undefined;
45
45
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
@@ -62,31 +62,41 @@ declare class Button extends PureComponent<Props, ButtonState> {
62
62
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
63
63
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
64
64
  borderBottomColor?: import("react-native").ColorValue | undefined;
65
- borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
66
- borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
67
- borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
68
- borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
65
+ borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
66
+ borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
67
+ borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
68
+ borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
69
69
  borderColor?: import("react-native").ColorValue | undefined;
70
70
  borderCurve?: "circular" | "continuous" | undefined;
71
71
  borderEndColor?: import("react-native").ColorValue | undefined;
72
- borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
73
- borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
72
+ borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
73
+ borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
74
74
  borderLeftColor?: import("react-native").ColorValue | undefined;
75
- borderRadius?: import("react-native").AnimatableNumericValue | undefined;
75
+ borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
76
76
  borderRightColor?: import("react-native").ColorValue | undefined;
77
77
  borderStartColor?: import("react-native").ColorValue | undefined;
78
- borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
79
- borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
78
+ borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
79
+ borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
80
80
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
81
81
  borderTopColor?: import("react-native").ColorValue | undefined;
82
- borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
83
- borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
84
- borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
85
- borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
82
+ borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
83
+ borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
84
+ borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
85
+ borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
86
+ outlineColor?: import("react-native").ColorValue | undefined;
87
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
88
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
89
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
86
90
  opacity?: import("react-native").AnimatableNumericValue | undefined;
87
91
  elevation?: number | undefined;
88
92
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
89
- alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
93
+ isolation?: "auto" | "isolate" | undefined;
94
+ cursor?: import("react-native").CursorValue | undefined;
95
+ boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
96
+ filter?: string | readonly import("react-native").FilterFunction[] | undefined;
97
+ mixBlendMode?: import("react-native").BlendMode | undefined;
98
+ experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
99
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
90
100
  alignItems?: import("react-native").FlexAlignType | undefined;
91
101
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
92
102
  aspectRatio?: string | number | undefined;
@@ -98,14 +108,15 @@ declare class Button extends PureComponent<Props, ButtonState> {
98
108
  borderTopWidth?: number | undefined;
99
109
  borderWidth?: number | undefined;
100
110
  bottom?: import("react-native").DimensionValue | undefined;
101
- display?: "none" | "flex" | undefined;
111
+ boxSizing?: "border-box" | "content-box" | undefined;
112
+ display?: "none" | "flex" | "contents" | undefined;
102
113
  end?: import("react-native").DimensionValue | undefined;
103
114
  flex?: number | undefined;
104
115
  flexBasis?: import("react-native").DimensionValue | undefined;
105
116
  flexDirection: "row" | "column" | "row-reverse" | "column-reverse";
106
- rowGap?: number | undefined;
107
- gap?: number | undefined;
108
- columnGap?: number | undefined;
117
+ rowGap?: string | number | undefined;
118
+ gap?: string | number | undefined;
119
+ columnGap?: string | number | undefined;
109
120
  flexGrow?: number | undefined;
110
121
  flexShrink?: number | undefined;
111
122
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -135,13 +146,32 @@ declare class Button extends PureComponent<Props, ButtonState> {
135
146
  paddingStart?: import("react-native").DimensionValue | undefined;
136
147
  paddingTop?: import("react-native").DimensionValue | undefined;
137
148
  paddingVertical?: import("react-native").DimensionValue | undefined;
138
- position?: "absolute" | "relative" | undefined;
149
+ position?: "absolute" | "relative" | "static" | undefined;
139
150
  right?: import("react-native").DimensionValue | undefined;
140
151
  start?: import("react-native").DimensionValue | undefined;
141
152
  top?: import("react-native").DimensionValue | undefined;
142
153
  width?: import("react-native").DimensionValue | undefined;
143
154
  zIndex?: number | undefined;
144
155
  direction?: "ltr" | "rtl" | "inherit" | undefined;
156
+ inset?: import("react-native").DimensionValue | undefined;
157
+ insetBlock?: import("react-native").DimensionValue | undefined;
158
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
159
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
160
+ insetInline?: import("react-native").DimensionValue | undefined;
161
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
162
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
163
+ marginBlock?: import("react-native").DimensionValue | undefined;
164
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
165
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
166
+ marginInline?: import("react-native").DimensionValue | undefined;
167
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
168
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
169
+ paddingBlock?: import("react-native").DimensionValue | undefined;
170
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
171
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
172
+ paddingInline?: import("react-native").DimensionValue | undefined;
173
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
174
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
145
175
  shadowColor?: import("react-native").ColorValue | undefined;
146
176
  shadowOffset?: Readonly<{
147
177
  width: number;
@@ -149,7 +179,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
149
179
  }> | undefined;
150
180
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
151
181
  shadowRadius?: number | undefined;
152
- transform?: string | (({
182
+ transform?: string | readonly (({
153
183
  perspective: import("react-native").AnimatableNumericValue;
154
184
  } & {
155
185
  rotate?: undefined;
@@ -270,7 +300,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
270
300
  skewY?: undefined;
271
301
  matrix?: undefined;
272
302
  }) | ({
273
- translateX: import("react-native").AnimatableNumericValue;
303
+ translateX: import("react-native").AnimatableNumericValue | `${number}%`;
274
304
  } & {
275
305
  perspective?: undefined;
276
306
  rotate?: undefined;
@@ -285,7 +315,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
285
315
  skewY?: undefined;
286
316
  matrix?: undefined;
287
317
  }) | ({
288
- translateY: import("react-native").AnimatableNumericValue;
318
+ translateY: import("react-native").AnimatableNumericValue | `${number}%`;
289
319
  } & {
290
320
  perspective?: undefined;
291
321
  rotate?: undefined;
@@ -131,7 +131,6 @@ export type ButtonProps = TouchableOpacityProps & TypographyModifiers & ColorsMo
131
131
  getActiveBackgroundColor?: (backgroundColor: string, props: any) => string;
132
132
  /**
133
133
  * should animate layout change
134
- * Note?: For Android you must set 'setLayoutAnimationEnabledExperimental(true)' via RN's 'UIManager'
135
134
  */
136
135
  animateLayout?: boolean;
137
136
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import { DialogProps } from '../../incubator/dialog';
3
+ import { DialogProps } from '../dialog';
4
4
  export interface ColorPickerDialogProps extends DialogProps {
5
5
  /**
6
6
  * The initial color to pass the picker dialog
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useState } from 'react';
3
3
  import { LayoutAnimation, StyleSheet, Keyboard } from 'react-native';
4
4
  import { Constants, asBaseComponent } from "../../commons/new";
5
5
  import { Colors } from "../../style";
6
- import Dialog from "../../incubator/dialog";
6
+ import Dialog from "../dialog";
7
7
  import { getColorValue, getValidColorString, getTextColor, BORDER_RADIUS } from "./ColorPickerPresenter";
8
8
  import ColorPickerDialogHeader from "./ColorPickerDialogHeader";
9
9
  import ColorPickerPreview from "./ColorPickerPreview";