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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.45.0-snapshot.7266",
3
+ "version": "7.46.0",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -56,15 +56,15 @@
56
56
  "react-native-redash": "^12.0.3",
57
57
  "semver": "^5.5.0",
58
58
  "tinycolor2": "^1.4.2",
59
- "uilib-native": "5.0.0-snapshot.7240",
59
+ "uilib-native": "4.5.1",
60
60
  "url-parse": "^1.2.0",
61
61
  "wix-react-native-text-size": "1.0.9"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@babel/cli": "^7.16.8",
65
- "@babel/core": "^7.25.2",
65
+ "@babel/core": "^7.24.4",
66
66
  "@babel/plugin-transform-modules-commonjs": "^7.17.9",
67
- "@babel/preset-env": "^7.25.3",
67
+ "@babel/preset-env": "^7.20.0",
68
68
  "@babel/preset-react": "^7.10.1",
69
69
  "@babel/runtime": "^7.26.10",
70
70
  "@formatjs/intl-datetimeformat": "^6.0.3",
@@ -73,29 +73,28 @@
73
73
  "@formatjs/intl-numberformat": "^8.0.4",
74
74
  "@formatjs/intl-pluralrules": "^5.0.3",
75
75
  "@react-native-community/blur": "4.4.1",
76
- "@react-native-community/cli": "15.0.1",
77
- "@react-native-community/cli-platform-android": "15.0.1",
78
- "@react-native-community/cli-platform-ios": "15.0.1",
79
- "@react-native-community/datetimepicker": "8.2.0",
80
- "@react-native-community/netinfo": "11.3.3",
81
- "@react-native/babel-preset": "0.77.2",
82
- "@react-native/eslint-config": "0.77.2",
83
- "@react-native/metro-config": "0.77.2",
84
- "@react-native/typescript-config": "0.77.2",
76
+ "@react-native-community/datetimepicker": "^3.4.6",
77
+ "@react-native-community/netinfo": "^5.6.2",
78
+ "@react-native/babel-preset": "0.73.21",
79
+ "@react-native/eslint-config": "0.73.2",
80
+ "@react-native/metro-config": "0.73.5",
81
+ "@react-native/typescript-config": "0.73.1",
85
82
  "@shopify/flash-list": "1.7.6",
86
83
  "@testing-library/react-hooks": "^8.0.1",
87
84
  "@testing-library/react-native": "^11.5.1",
88
85
  "@types/hoist-non-react-statics": "^3.3.1",
89
- "@types/jest": "^29.5.13",
86
+ "@types/jest": "^29.2.1",
90
87
  "@types/lodash": "^4.0.0",
91
88
  "@types/prop-types": "^15.5.3",
92
89
  "@types/react": "18.3.7",
90
+ "@types/react-native": "0.73.0",
93
91
  "@types/react-test-renderer": "^18.3.0",
94
92
  "@types/tinycolor2": "^1.4.2",
95
93
  "@types/url-parse": "^1.4.3",
96
94
  "@typescript-eslint/eslint-plugin": "^5.3.1",
97
95
  "@typescript-eslint/parser": "^5.3.1",
98
96
  "@welldone-software/why-did-you-render": "^3.2.1",
97
+ "babel-jest": "^29.6.3",
99
98
  "babel-plugin-lodash": "^3.3.4",
100
99
  "babel-plugin-module-resolver": "^5.0.0",
101
100
  "eslint": "8.19.0",
@@ -105,6 +104,7 @@
105
104
  "eslint-plugin-react-native": "^4.0.0",
106
105
  "jest": "^29.6.3",
107
106
  "light-date": "^1.2.0",
107
+ "metro-react-native-babel-preset": "0.73.10",
108
108
  "moment": "^2.24.0",
109
109
  "object-hash": "^3.0.0",
110
110
  "postcss": "^8.4.21",
@@ -114,28 +114,27 @@
114
114
  "react": "18.2.0",
115
115
  "react-autobind": "^1.0.6",
116
116
  "react-dom": "^18.2.0",
117
- "react-native": "0.77.2",
117
+ "react-native": "0.73.9",
118
118
  "react-native-fs": "^2.20.0",
119
- "react-native-gesture-handler": "2.22.1",
119
+ "react-native-gesture-handler": "2.14.1",
120
120
  "react-native-haptic-feedback": "^1.11.0",
121
121
  "react-native-linear-gradient": "2.6.2",
122
- "react-native-mmkv": "3.2.0",
123
- "react-native-navigation": "8.1.2",
122
+ "react-native-mmkv": "2.11.0",
123
+ "react-native-navigation": "7.40.1",
124
124
  "react-native-reanimated": "3.16.7",
125
125
  "react-native-shimmer-placeholder": "^2.0.6",
126
- "react-native-svg": "15.11.2",
126
+ "react-native-svg": "15.2.0",
127
127
  "react-native-svg-transformer": "1.5.0",
128
- "react-test-renderer": "18.3.1",
128
+ "react-test-renderer": "18.2.0",
129
129
  "reassure": "^0.4.1",
130
- "setimmediate": "^1.0.5",
131
130
  "shell-utils": "^1.0.10",
132
131
  "typescript": "5.0.4"
133
132
  },
134
133
  "peerDependencies": {
135
134
  "react": ">=17.0.1",
136
- "react-native": ">=0.76.0",
137
- "react-native-gesture-handler": ">=2.22.0",
138
- "react-native-reanimated": ">=3.16.7",
135
+ "react-native": ">=0.64.1",
136
+ "react-native-gesture-handler": ">=2.5.0",
137
+ "react-native-reanimated": ">=2.0.0",
139
138
  "react-native-ui-lib": "*"
140
139
  },
141
140
  "jest": {
@@ -163,6 +162,7 @@
163
162
  "engines": {
164
163
  "node": ">=18"
165
164
  },
165
+ "packageManager": "yarn@3.4.1",
166
166
  "files": [
167
167
  "*.js",
168
168
  "*.d.ts",
@@ -0,0 +1,2 @@
1
+ import {PanningViews} from './src';
2
+ export default PanningViews;
@@ -0,0 +1 @@
1
+ module.exports = require('./src/components/panningViews').default;
@@ -10,9 +10,11 @@ module.exports = {
10
10
  sourceDir: '../uilib-native/android/',
11
11
  packageImportPath: `import com.wix.reactnativeuilib.dynamicfont.DynamicFontPackage;
12
12
  import com.wix.reactnativeuilib.highlighterview.HighlighterViewPackage;
13
- import com.wix.reactnativeuilib.keyboardinput.KeyboardInputPackage;`,
13
+ import com.wix.reactnativeuilib.keyboardinput.KeyboardInputPackage;
14
+ import com.wix.reactnativeuilib.textinput.TextInputDelKeyHandlerPackage;`,
14
15
  packageInstance: `new DynamicFontPackage(),
15
16
  new HighlighterViewPackage(),
17
+ new TextInputDelKeyHandlerPackage(),
16
18
  new KeyboardInputPackage(getApplication())`
17
19
  }
18
20
  }
@@ -0,0 +1,2 @@
1
+ import {SharedTransition} from './src';
2
+ export default SharedTransition;
@@ -0,0 +1 @@
1
+ module.exports = require('./src/components/sharedTransition').default;
@@ -24,8 +24,11 @@ function setStatusBarHeight() {
24
24
  const {
25
25
  StatusBarManager
26
26
  } = NativeModules;
27
- // override guesstimate height with the actual height from StatusBarManager
28
- statusBarHeight = (StatusBar.currentHeight ?? StatusBarManager?.getConstants?.()?.HEIGHT) || 0;
27
+ statusBarHeight = (StatusBar.currentHeight ?? StatusBarManager?.HEIGHT) || 0;
28
+ if (isIOS && StatusBarManager) {
29
+ // override guesstimate height with the actual height from StatusBarManager
30
+ StatusBarManager.getHeight(data => statusBarHeight = data.height);
31
+ }
29
32
  }
30
33
  function getAspectRatio() {
31
34
  return screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight;
@@ -107,7 +107,7 @@ export default class KeyboardAwareBase extends Component {
107
107
  setTimeout(() => {
108
108
  this._keyboardAwareView
109
109
  .getScrollResponder()
110
- .scrollResponderScrollNativeHandleToKeyboard(this.findNodeHandle(textInputRef),
110
+ .scrollResponderScrollNativeHandleToKeyboard(ReactNative.findNodeHandle(textInputRef),
111
111
  this.props.scrollToInputAdditionalOffset,
112
112
  true);
113
113
  }, 0);
@@ -117,10 +117,6 @@ export default class KeyboardAwareBase extends Component {
117
117
  }
118
118
  }
119
119
 
120
- findNodeHandle(ref) {
121
- return ref.current?.getNodeHandle?.() || ref?.getNodeHandle?.() || ReactNative.findNodeHandle(ref.current || ref);
122
- }
123
-
124
120
  _onKeyboardWillShow(event) {
125
121
  this._scrollToFocusedTextInput();
126
122
 
@@ -1,9 +1,14 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
+ import { DialogProps } from '../dialog';
3
4
  import { ButtonProps } from '../button';
4
- import { type DialogProps } from '../dialog';
5
+ import { DialogProps as IncubatorDialogProps } from '../../incubator';
5
6
  type ActionSheetOnOptionPress = (index: number) => void;
6
7
  type ActionSheetProps = {
8
+ /**
9
+ * Migrate to the Incubator.Dialog component
10
+ */
11
+ migrateDialog?: boolean;
7
12
  /**
8
13
  * Whether to show the action sheet or not
9
14
  */
@@ -63,6 +68,11 @@ type ActionSheetProps = {
63
68
  * Note: you will need to call onOptionPress so the option's onPress will be called
64
69
  */
65
70
  renderAction?: (option: ButtonProps, index: number, onOptionPress: ActionSheetOnOptionPress) => JSX.Element;
71
+ /**
72
+ * @deprecated
73
+ * Called once the modal has been dismissed completely
74
+ */
75
+ onModalDismissed?: DialogProps['onDialogDismissed'];
66
76
  /**
67
77
  * Whether or not to handle SafeArea
68
78
  */
@@ -70,7 +80,7 @@ type ActionSheetProps = {
70
80
  /**
71
81
  * Additional props to send to the Dialog
72
82
  */
73
- dialogProps?: Omit<DialogProps, 'useSafeArea' | 'testID' | 'containerStyle' | 'visible' | 'onDismiss' | 'onDialogDismissed'> | DialogProps;
83
+ dialogProps?: Omit<DialogProps, 'useSafeArea' | 'testID' | 'containerStyle' | 'visible' | 'onDismiss' | 'onDialogDismissed'> | IncubatorDialogProps;
74
84
  /**
75
85
  * testID for e2e tests
76
86
  */
@@ -6,12 +6,15 @@ 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";
9
10
  import View from "../view";
10
11
  import Text from "../text";
11
12
  import Image from "../image";
12
13
  //@ts-ignore
13
14
  import ListItem from "../listItem";
14
- import Dialog from "../dialog";
15
+ import PanningProvider from "../panningViews/panningProvider";
16
+ import { Dialog as IncubatorDialog } from "../../incubator";
17
+ import { LogService } from "../../services";
15
18
  const VERTICAL_PADDING = 8;
16
19
  /**
17
20
  * @description: Cross platform Action Sheet, with a support for native iOS solution
@@ -127,19 +130,55 @@ class ActionSheet extends Component {
127
130
  {this.renderActions()}
128
131
  </View>;
129
132
  }
130
- render() {
133
+ renderOldDialog() {
131
134
  const {
135
+ useNativeIOS,
132
136
  visible,
133
137
  onDismiss,
134
138
  dialogStyle,
139
+ onModalDismissed,
135
140
  testID,
136
141
  useSafeArea,
137
142
  dialogProps
138
143
  } = this.props;
139
- return <Dialog bottom centerH width="100%" direction={Dialog.directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.incubatorDialog, dialogStyle]} visible={visible} onDismiss={onDismiss}>
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}>
140
148
  {this.renderSheet()}
141
149
  </Dialog>;
142
150
  }
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
+ }
143
182
  }
144
183
  export default asBaseComponent(ActionSheet);
145
184
  const styles = StyleSheet.create({
@@ -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?: "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;
112
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
113
113
  letterSpacing?: number | undefined;
114
114
  lineHeight?: number | undefined;
115
115
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
@@ -131,41 +131,31 @@ 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?: 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;
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;
138
138
  borderColor?: import("react-native").ColorValue | undefined;
139
139
  borderCurve?: "circular" | "continuous" | undefined;
140
140
  borderEndColor?: import("react-native").ColorValue | undefined;
141
- borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
142
- borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
141
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
142
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
143
143
  borderLeftColor?: import("react-native").ColorValue | undefined;
144
- borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
144
+ borderRadius?: import("react-native").AnimatableNumericValue | undefined;
145
145
  borderRightColor?: import("react-native").ColorValue | undefined;
146
146
  borderStartColor?: import("react-native").ColorValue | undefined;
147
- borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
148
- borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
147
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
148
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
149
149
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
150
150
  borderTopColor?: import("react-native").ColorValue | 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;
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;
159
155
  opacity?: import("react-native").AnimatableNumericValue | undefined;
160
156
  elevation?: number | undefined;
161
157
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | 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;
158
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
169
159
  alignItems?: import("react-native").FlexAlignType | undefined;
170
160
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
171
161
  aspectRatio?: string | number | undefined;
@@ -177,15 +167,14 @@ declare function createStyles(props: BadgeProps): {
177
167
  borderTopWidth?: number | undefined;
178
168
  borderWidth?: number | undefined;
179
169
  bottom?: import("react-native").DimensionValue | undefined;
180
- boxSizing?: "border-box" | "content-box" | undefined;
181
- display?: "none" | "flex" | "contents" | undefined;
170
+ display?: "none" | "flex" | undefined;
182
171
  end?: import("react-native").DimensionValue | undefined;
183
172
  flex?: number | undefined;
184
173
  flexBasis?: import("react-native").DimensionValue | undefined;
185
174
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
186
- rowGap?: string | number | undefined;
187
- gap?: string | number | undefined;
188
- columnGap?: string | number | undefined;
175
+ rowGap?: number | undefined;
176
+ gap?: number | undefined;
177
+ columnGap?: number | undefined;
189
178
  flexGrow?: number | undefined;
190
179
  flexShrink?: number | undefined;
191
180
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -215,32 +204,13 @@ declare function createStyles(props: BadgeProps): {
215
204
  paddingStart?: import("react-native").DimensionValue | undefined;
216
205
  paddingTop?: import("react-native").DimensionValue | undefined;
217
206
  paddingVertical?: import("react-native").DimensionValue | undefined;
218
- position?: "absolute" | "relative" | "static" | undefined;
207
+ position?: "absolute" | "relative" | undefined;
219
208
  right?: import("react-native").DimensionValue | undefined;
220
209
  start?: import("react-native").DimensionValue | undefined;
221
210
  top?: import("react-native").DimensionValue | undefined;
222
211
  width?: import("react-native").DimensionValue | undefined;
223
212
  zIndex?: number | undefined;
224
213
  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;
244
214
  shadowColor?: import("react-native").ColorValue | undefined;
245
215
  shadowOffset?: Readonly<{
246
216
  width: number;
@@ -248,7 +218,7 @@ declare function createStyles(props: BadgeProps): {
248
218
  }> | undefined;
249
219
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
250
220
  shadowRadius?: number | undefined;
251
- transform?: string | readonly (({
221
+ transform?: string | (({
252
222
  perspective: import("react-native").AnimatableNumericValue;
253
223
  } & {
254
224
  rotate?: undefined;
@@ -369,7 +339,7 @@ declare function createStyles(props: BadgeProps): {
369
339
  skewY?: undefined;
370
340
  matrix?: undefined;
371
341
  }) | ({
372
- translateX: import("react-native").AnimatableNumericValue | `${number}%`;
342
+ translateX: import("react-native").AnimatableNumericValue;
373
343
  } & {
374
344
  perspective?: undefined;
375
345
  rotate?: undefined;
@@ -384,7 +354,7 @@ declare function createStyles(props: BadgeProps): {
384
354
  skewY?: undefined;
385
355
  matrix?: undefined;
386
356
  }) | ({
387
- translateY: import("react-native").AnimatableNumericValue | `${number}%`;
357
+ translateY: import("react-native").AnimatableNumericValue;
388
358
  } & {
389
359
  perspective?: undefined;
390
360
  rotate?: undefined;
@@ -461,7 +431,7 @@ declare function createStyles(props: BadgeProps): {
461
431
  fontFamily?: string | undefined;
462
432
  fontSize?: number | undefined;
463
433
  fontStyle?: "normal" | "italic" | 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;
434
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
465
435
  letterSpacing?: number | undefined;
466
436
  textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
467
437
  textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
@@ -483,41 +453,31 @@ declare function createStyles(props: BadgeProps): {
483
453
  borderBlockEndColor?: import("react-native").ColorValue | undefined;
484
454
  borderBlockStartColor?: import("react-native").ColorValue | undefined;
485
455
  borderBottomColor?: import("react-native").ColorValue | 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;
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;
490
460
  borderColor?: import("react-native").ColorValue | undefined;
491
461
  borderCurve?: "circular" | "continuous" | undefined;
492
462
  borderEndColor?: import("react-native").ColorValue | undefined;
493
- borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
494
- borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
463
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
464
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
495
465
  borderLeftColor?: import("react-native").ColorValue | undefined;
496
- borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
466
+ borderRadius?: import("react-native").AnimatableNumericValue | undefined;
497
467
  borderRightColor?: import("react-native").ColorValue | undefined;
498
468
  borderStartColor?: import("react-native").ColorValue | undefined;
499
- borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
500
- borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
469
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
470
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
501
471
  borderStyle?: "solid" | "dotted" | "dashed" | undefined;
502
472
  borderTopColor?: import("react-native").ColorValue | 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;
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;
511
477
  opacity?: import("react-native").AnimatableNumericValue | undefined;
512
478
  elevation?: number | undefined;
513
479
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | 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;
480
+ alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
521
481
  alignItems?: import("react-native").FlexAlignType | undefined;
522
482
  alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
523
483
  aspectRatio?: string | number | undefined;
@@ -529,15 +489,14 @@ declare function createStyles(props: BadgeProps): {
529
489
  borderTopWidth?: number | undefined;
530
490
  borderWidth?: number | undefined;
531
491
  bottom?: import("react-native").DimensionValue | undefined;
532
- boxSizing?: "border-box" | "content-box" | undefined;
533
- display?: "none" | "flex" | "contents" | undefined;
492
+ display?: "none" | "flex" | undefined;
534
493
  end?: import("react-native").DimensionValue | undefined;
535
494
  flex?: number | undefined;
536
495
  flexBasis?: import("react-native").DimensionValue | undefined;
537
496
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
538
- rowGap?: string | number | undefined;
539
- gap?: string | number | undefined;
540
- columnGap?: string | number | undefined;
497
+ rowGap?: number | undefined;
498
+ gap?: number | undefined;
499
+ columnGap?: number | undefined;
541
500
  flexGrow?: number | undefined;
542
501
  flexShrink?: number | undefined;
543
502
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -567,32 +526,13 @@ declare function createStyles(props: BadgeProps): {
567
526
  paddingStart?: import("react-native").DimensionValue | undefined;
568
527
  paddingTop?: import("react-native").DimensionValue | undefined;
569
528
  paddingVertical?: import("react-native").DimensionValue | undefined;
570
- position?: "absolute" | "relative" | "static" | undefined;
529
+ position?: "absolute" | "relative" | undefined;
571
530
  right?: import("react-native").DimensionValue | undefined;
572
531
  start?: import("react-native").DimensionValue | undefined;
573
532
  top?: import("react-native").DimensionValue | undefined;
574
533
  width?: import("react-native").DimensionValue | undefined;
575
534
  zIndex?: number | undefined;
576
535
  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;
596
536
  shadowColor?: import("react-native").ColorValue | undefined;
597
537
  shadowOffset?: Readonly<{
598
538
  width: number;
@@ -600,7 +540,7 @@ declare function createStyles(props: BadgeProps): {
600
540
  }> | undefined;
601
541
  shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
602
542
  shadowRadius?: number | undefined;
603
- transform?: string | readonly (({
543
+ transform?: string | (({
604
544
  perspective: import("react-native").AnimatableNumericValue;
605
545
  } & {
606
546
  rotate?: undefined;
@@ -721,7 +661,7 @@ declare function createStyles(props: BadgeProps): {
721
661
  skewY?: undefined;
722
662
  matrix?: undefined;
723
663
  }) | ({
724
- translateX: import("react-native").AnimatableNumericValue | `${number}%`;
664
+ translateX: import("react-native").AnimatableNumericValue;
725
665
  } & {
726
666
  perspective?: undefined;
727
667
  rotate?: undefined;
@@ -736,7 +676,7 @@ declare function createStyles(props: BadgeProps): {
736
676
  skewY?: undefined;
737
677
  matrix?: undefined;
738
678
  }) | ({
739
- translateY: import("react-native").AnimatableNumericValue | `${number}%`;
679
+ translateY: import("react-native").AnimatableNumericValue;
740
680
  } & {
741
681
  perspective?: undefined;
742
682
  rotate?: undefined;
@@ -830,7 +770,7 @@ declare const _default: React.ForwardRefExoticComponent<ViewProps & TouchableOpa
830
770
  /**
831
771
  * Defines how far a touch event can start away from the badge.
832
772
  */
833
- hitSlop?: number | import("react-native").Insets | null | undefined;
773
+ hitSlop?: import("react-native").Insets | undefined;
834
774
  /**
835
775
  * width of border around the badge
836
776
  */
@@ -30,4 +30,5 @@ export declare const ButtonDriver: (props: ComponentProps) => {
30
30
  getLabelStyle: () => import("react-native").TextStyle;
31
31
  getIconStyle: () => any;
32
32
  getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
33
+ isDisabled: () => boolean;
33
34
  };
@@ -25,12 +25,16 @@ export const ButtonDriver = props => {
25
25
  const getStyle = () => {
26
26
  return StyleSheet.flatten(driver.getElement().props.style);
27
27
  };
28
+ const isDisabled = () => {
29
+ return !!driver.getElement().props.accessibilityState?.disabled;
30
+ };
28
31
  return {
29
32
  getStyle,
30
33
  getLabel,
31
34
  getLabelStyle,
32
35
  getIconStyle,
33
36
  getIcon,
37
+ isDisabled,
34
38
  ...driver
35
39
  };
36
40
  };
@@ -155,7 +155,7 @@
155
155
  {
156
156
  "name": "animateLayout",
157
157
  "type": "boolean",
158
- "description": "should animate layout change"
158
+ "description": "should animate layout change. Note: For Android you must set 'setLayoutAnimationEnabledExperimental(true)' via RN's 'UIManager'"
159
159
  },
160
160
  {
161
161
  "name": "animateTo",