@webority-technologies/mobile 0.0.22 → 0.0.24

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 (249) hide show
  1. package/lib/commonjs/components/Accordion/Accordion.js +9 -7
  2. package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +69 -0
  3. package/lib/commonjs/components/AnimatePresence/index.js +13 -0
  4. package/lib/commonjs/components/AppBar/AppBar.js +9 -6
  5. package/lib/commonjs/components/Avatar/Avatar.js +4 -2
  6. package/lib/commonjs/components/Badge/Badge.js +5 -5
  7. package/lib/commonjs/components/Banner/Banner.js +20 -6
  8. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +6 -4
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.js +8 -9
  10. package/lib/commonjs/components/Box/Box.js +162 -0
  11. package/lib/commonjs/components/Box/index.js +37 -0
  12. package/lib/commonjs/components/Button/Button.js +7 -7
  13. package/lib/commonjs/components/Card/Card.js +3 -3
  14. package/lib/commonjs/components/Carousel/Carousel.js +4 -2
  15. package/lib/commonjs/components/Checkbox/Checkbox.js +17 -7
  16. package/lib/commonjs/components/Chip/Chip.js +4 -2
  17. package/lib/commonjs/components/DatePicker/DatePicker.js +31 -24
  18. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +16 -11
  19. package/lib/commonjs/components/Dialog/Dialog.js +6 -4
  20. package/lib/commonjs/components/Drawer/Drawer.js +4 -2
  21. package/lib/commonjs/components/FieldBase/FieldBase.js +8 -4
  22. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +23 -13
  23. package/lib/commonjs/components/FormField/FormField.js +61 -25
  24. package/lib/commonjs/components/ImageGallery/ImageGallery.js +17 -15
  25. package/lib/commonjs/components/Input/Input.js +41 -29
  26. package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +102 -0
  27. package/lib/commonjs/components/KeyboardAwareScrollView/index.js +13 -0
  28. package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +130 -0
  29. package/lib/commonjs/components/KeyboardToolbar/index.js +13 -0
  30. package/lib/commonjs/components/ListItem/ListItem.js +4 -3
  31. package/lib/commonjs/components/Modal/Modal.js +21 -9
  32. package/lib/commonjs/components/NumberInput/NumberInput.js +38 -29
  33. package/lib/commonjs/components/OTPInput/OTPInput.js +37 -22
  34. package/lib/commonjs/components/Radio/Radio.js +9 -8
  35. package/lib/commonjs/components/Radio/RadioGroup.js +10 -3
  36. package/lib/commonjs/components/Rating/Rating.js +4 -3
  37. package/lib/commonjs/components/SearchBar/SearchBar.js +11 -6
  38. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +23 -12
  39. package/lib/commonjs/components/Select/Select.js +40 -36
  40. package/lib/commonjs/components/Skeleton/SkeletonContent.js +5 -2
  41. package/lib/commonjs/components/Slider/Slider.js +241 -225
  42. package/lib/commonjs/components/Spinner/Spinner.js +5 -5
  43. package/lib/commonjs/components/Stepper/Stepper.js +6 -5
  44. package/lib/commonjs/components/Swipeable/Swipeable.js +8 -9
  45. package/lib/commonjs/components/Switch/Switch.js +29 -16
  46. package/lib/commonjs/components/Tabs/Tabs.js +8 -5
  47. package/lib/commonjs/components/Text/Text.js +142 -0
  48. package/lib/commonjs/components/Text/index.js +13 -0
  49. package/lib/commonjs/components/TimePicker/TimePicker.js +23 -15
  50. package/lib/commonjs/components/Toast/Toast.js +22 -10
  51. package/lib/commonjs/components/Tooltip/Tooltip.js +6 -2
  52. package/lib/commonjs/components/index.js +156 -103
  53. package/lib/commonjs/form/FormContext.js +40 -0
  54. package/lib/commonjs/form/index.js +68 -0
  55. package/lib/commonjs/form/path.js +79 -0
  56. package/lib/commonjs/form/rules.js +67 -0
  57. package/lib/commonjs/form/types.js +2 -0
  58. package/lib/commonjs/form/useField.js +54 -0
  59. package/lib/commonjs/form/useForm.js +316 -0
  60. package/lib/commonjs/hooks/index.js +14 -0
  61. package/lib/commonjs/hooks/useControllableState.js +30 -0
  62. package/lib/commonjs/hooks/useReducedMotion.js +31 -0
  63. package/lib/commonjs/index.js +96 -11
  64. package/lib/commonjs/theme/ThemeContext.js +30 -2
  65. package/lib/commonjs/theme/tokens.js +12 -0
  66. package/lib/commonjs/utils/hapticUtils.js +11 -1
  67. package/lib/commonjs/utils/index.js +6 -0
  68. package/lib/module/components/Accordion/Accordion.js +10 -8
  69. package/lib/module/components/AnimatePresence/AnimatePresence.js +63 -0
  70. package/lib/module/components/AnimatePresence/index.js +4 -0
  71. package/lib/module/components/AppBar/AppBar.js +10 -7
  72. package/lib/module/components/Avatar/Avatar.js +4 -2
  73. package/lib/module/components/Badge/Badge.js +5 -5
  74. package/lib/module/components/Banner/Banner.js +20 -6
  75. package/lib/module/components/BottomNavigation/BottomNavigation.js +6 -4
  76. package/lib/module/components/BottomSheet/BottomSheet.js +8 -9
  77. package/lib/module/components/Box/Box.js +156 -0
  78. package/lib/module/components/Box/index.js +4 -0
  79. package/lib/module/components/Button/Button.js +7 -7
  80. package/lib/module/components/Card/Card.js +4 -4
  81. package/lib/module/components/Carousel/Carousel.js +4 -2
  82. package/lib/module/components/Checkbox/Checkbox.js +18 -8
  83. package/lib/module/components/Chip/Chip.js +5 -3
  84. package/lib/module/components/DatePicker/DatePicker.js +32 -25
  85. package/lib/module/components/DateRangePicker/DateRangePicker.js +17 -12
  86. package/lib/module/components/Dialog/Dialog.js +7 -5
  87. package/lib/module/components/Drawer/Drawer.js +5 -3
  88. package/lib/module/components/FieldBase/FieldBase.js +8 -4
  89. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +24 -14
  90. package/lib/module/components/FormField/FormField.js +62 -26
  91. package/lib/module/components/ImageGallery/ImageGallery.js +18 -16
  92. package/lib/module/components/Input/Input.js +41 -29
  93. package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +98 -0
  94. package/lib/module/components/KeyboardAwareScrollView/index.js +4 -0
  95. package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +125 -0
  96. package/lib/module/components/KeyboardToolbar/index.js +4 -0
  97. package/lib/module/components/ListItem/ListItem.js +5 -4
  98. package/lib/module/components/Modal/Modal.js +22 -10
  99. package/lib/module/components/NumberInput/NumberInput.js +36 -27
  100. package/lib/module/components/OTPInput/OTPInput.js +37 -22
  101. package/lib/module/components/Radio/Radio.js +10 -9
  102. package/lib/module/components/Radio/RadioGroup.js +10 -3
  103. package/lib/module/components/Rating/Rating.js +5 -4
  104. package/lib/module/components/SearchBar/SearchBar.js +12 -7
  105. package/lib/module/components/SegmentedControl/SegmentedControl.js +24 -13
  106. package/lib/module/components/Select/Select.js +41 -37
  107. package/lib/module/components/Skeleton/SkeletonContent.js +5 -2
  108. package/lib/module/components/Slider/Slider.js +244 -228
  109. package/lib/module/components/Spinner/Spinner.js +5 -5
  110. package/lib/module/components/Stepper/Stepper.js +7 -6
  111. package/lib/module/components/Swipeable/Swipeable.js +9 -10
  112. package/lib/module/components/Switch/Switch.js +29 -16
  113. package/lib/module/components/Tabs/Tabs.js +9 -6
  114. package/lib/module/components/Text/Text.js +138 -0
  115. package/lib/module/components/Text/index.js +4 -0
  116. package/lib/module/components/TimePicker/TimePicker.js +24 -16
  117. package/lib/module/components/Toast/Toast.js +22 -10
  118. package/lib/module/components/Tooltip/Tooltip.js +6 -2
  119. package/lib/module/components/index.js +5 -0
  120. package/lib/module/form/FormContext.js +32 -0
  121. package/lib/module/form/index.js +12 -0
  122. package/lib/module/form/path.js +72 -0
  123. package/lib/module/form/rules.js +52 -0
  124. package/lib/module/form/types.js +2 -0
  125. package/lib/module/form/useField.js +49 -0
  126. package/lib/module/form/useForm.js +312 -0
  127. package/lib/module/hooks/index.js +2 -0
  128. package/lib/module/hooks/useControllableState.js +26 -0
  129. package/lib/module/hooks/useReducedMotion.js +27 -0
  130. package/lib/module/index.js +3 -1
  131. package/lib/module/theme/ThemeContext.js +30 -2
  132. package/lib/module/theme/tokens.js +12 -0
  133. package/lib/module/utils/hapticUtils.js +9 -0
  134. package/lib/module/utils/index.js +1 -1
  135. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +3 -0
  136. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +30 -0
  137. package/lib/typescript/commonjs/components/AnimatePresence/index.d.ts +3 -0
  138. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +6 -0
  139. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -0
  140. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  141. package/lib/typescript/commonjs/components/Box/Box.d.ts +60 -0
  142. package/lib/typescript/commonjs/components/Box/index.d.ts +3 -0
  143. package/lib/typescript/commonjs/components/Button/Button.d.ts +1 -1
  144. package/lib/typescript/commonjs/components/Card/Card.d.ts +3 -0
  145. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +4 -2
  146. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +3 -0
  147. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +6 -3
  148. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +6 -0
  149. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +5 -2
  150. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +3 -0
  151. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +5 -0
  152. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +13 -2
  153. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +6 -0
  154. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
  155. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/index.d.ts +3 -0
  156. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
  157. package/lib/typescript/commonjs/components/KeyboardToolbar/index.d.ts +3 -0
  158. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +3 -0
  159. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +6 -0
  160. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +6 -2
  161. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +9 -2
  162. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +2 -2
  163. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +3 -2
  164. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +6 -0
  165. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +3 -0
  166. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +6 -2
  167. package/lib/typescript/commonjs/components/Select/Select.d.ts +6 -0
  168. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +9 -4
  169. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +1 -1
  170. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +6 -0
  171. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +3 -0
  172. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -2
  173. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -0
  174. package/lib/typescript/commonjs/components/Text/Text.d.ts +25 -0
  175. package/lib/typescript/commonjs/components/Text/index.d.ts +3 -0
  176. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +6 -3
  177. package/lib/typescript/commonjs/components/index.d.ts +10 -0
  178. package/lib/typescript/commonjs/form/FormContext.d.ts +17 -0
  179. package/lib/typescript/commonjs/form/index.d.ts +9 -0
  180. package/lib/typescript/commonjs/form/path.d.ts +10 -0
  181. package/lib/typescript/commonjs/form/rules.d.ts +31 -0
  182. package/lib/typescript/commonjs/form/types.d.ts +94 -0
  183. package/lib/typescript/commonjs/form/useField.d.ts +27 -0
  184. package/lib/typescript/commonjs/form/useForm.d.ts +10 -0
  185. package/lib/typescript/commonjs/hooks/index.d.ts +3 -0
  186. package/lib/typescript/commonjs/hooks/useControllableState.d.ts +17 -0
  187. package/lib/typescript/commonjs/hooks/useReducedMotion.d.ts +8 -0
  188. package/lib/typescript/commonjs/index.d.ts +4 -2
  189. package/lib/typescript/commonjs/theme/types.d.ts +17 -67
  190. package/lib/typescript/commonjs/utils/hapticUtils.d.ts +8 -0
  191. package/lib/typescript/commonjs/utils/index.d.ts +1 -1
  192. package/lib/typescript/module/components/Accordion/Accordion.d.ts +3 -0
  193. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +30 -0
  194. package/lib/typescript/module/components/AnimatePresence/index.d.ts +3 -0
  195. package/lib/typescript/module/components/AppBar/AppBar.d.ts +6 -0
  196. package/lib/typescript/module/components/Banner/Banner.d.ts +3 -0
  197. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  198. package/lib/typescript/module/components/Box/Box.d.ts +60 -0
  199. package/lib/typescript/module/components/Box/index.d.ts +3 -0
  200. package/lib/typescript/module/components/Button/Button.d.ts +1 -1
  201. package/lib/typescript/module/components/Card/Card.d.ts +3 -0
  202. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +4 -2
  203. package/lib/typescript/module/components/Chip/Chip.d.ts +3 -0
  204. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +6 -3
  205. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +6 -0
  206. package/lib/typescript/module/components/Dialog/Dialog.d.ts +5 -2
  207. package/lib/typescript/module/components/Drawer/Drawer.d.ts +3 -0
  208. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +5 -0
  209. package/lib/typescript/module/components/FormField/FormField.d.ts +13 -2
  210. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +6 -0
  211. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
  212. package/lib/typescript/module/components/KeyboardAwareScrollView/index.d.ts +3 -0
  213. package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
  214. package/lib/typescript/module/components/KeyboardToolbar/index.d.ts +3 -0
  215. package/lib/typescript/module/components/ListItem/ListItem.d.ts +3 -0
  216. package/lib/typescript/module/components/Modal/Modal.d.ts +6 -0
  217. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +6 -2
  218. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +9 -2
  219. package/lib/typescript/module/components/Radio/Radio.d.ts +2 -2
  220. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +3 -2
  221. package/lib/typescript/module/components/Rating/Rating.d.ts +6 -0
  222. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +3 -0
  223. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +6 -2
  224. package/lib/typescript/module/components/Select/Select.d.ts +6 -0
  225. package/lib/typescript/module/components/Slider/Slider.d.ts +9 -4
  226. package/lib/typescript/module/components/Spinner/Spinner.d.ts +1 -1
  227. package/lib/typescript/module/components/Stepper/Stepper.d.ts +6 -0
  228. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +3 -0
  229. package/lib/typescript/module/components/Switch/Switch.d.ts +3 -2
  230. package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -0
  231. package/lib/typescript/module/components/Text/Text.d.ts +25 -0
  232. package/lib/typescript/module/components/Text/index.d.ts +3 -0
  233. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +6 -3
  234. package/lib/typescript/module/components/index.d.ts +10 -0
  235. package/lib/typescript/module/form/FormContext.d.ts +17 -0
  236. package/lib/typescript/module/form/index.d.ts +9 -0
  237. package/lib/typescript/module/form/path.d.ts +10 -0
  238. package/lib/typescript/module/form/rules.d.ts +31 -0
  239. package/lib/typescript/module/form/types.d.ts +94 -0
  240. package/lib/typescript/module/form/useField.d.ts +27 -0
  241. package/lib/typescript/module/form/useForm.d.ts +10 -0
  242. package/lib/typescript/module/hooks/index.d.ts +3 -0
  243. package/lib/typescript/module/hooks/useControllableState.d.ts +17 -0
  244. package/lib/typescript/module/hooks/useReducedMotion.d.ts +8 -0
  245. package/lib/typescript/module/index.d.ts +4 -2
  246. package/lib/typescript/module/theme/types.d.ts +17 -67
  247. package/lib/typescript/module/utils/hapticUtils.d.ts +8 -0
  248. package/lib/typescript/module/utils/index.d.ts +1 -1
  249. package/package.json +1 -1
@@ -42,6 +42,8 @@ var _exportNames = {
42
42
  useToggle: true,
43
43
  useDebounce: true,
44
44
  usePressAnimation: true,
45
+ useReducedMotion: true,
46
+ useControllableState: true,
45
47
  ScreenDimensions: true,
46
48
  Breakpoints: true,
47
49
  Responsive: true,
@@ -83,6 +85,16 @@ var _exportNames = {
83
85
  isBetween: true,
84
86
  minLength: true,
85
87
  maxLength: true,
88
+ useForm: true,
89
+ useField: true,
90
+ useFieldArray: true,
91
+ Form: true,
92
+ useFormContext: true,
93
+ useOptionalFormContext: true,
94
+ rules: true,
95
+ getPath: true,
96
+ setPath: true,
97
+ deletePath: true,
86
98
  useNetworkStatus: true,
87
99
  getNetworkStatus: true,
88
100
  addNetworkStatusListener: true,
@@ -95,6 +107,12 @@ Object.defineProperty(exports, "Breakpoints", {
95
107
  return _index7.Breakpoints;
96
108
  }
97
109
  });
110
+ Object.defineProperty(exports, "Form", {
111
+ enumerable: true,
112
+ get: function () {
113
+ return _index0.Form;
114
+ }
115
+ });
98
116
  Object.defineProperty(exports, "Logger", {
99
117
  enumerable: true,
100
118
  get: function () {
@@ -110,7 +128,7 @@ Object.defineProperty(exports, "Margin", {
110
128
  Object.defineProperty(exports, "NetworkStatusBanner", {
111
129
  enumerable: true,
112
130
  get: function () {
113
- return _index0.NetworkStatusBanner;
131
+ return _index1.NetworkStatusBanner;
114
132
  }
115
133
  });
116
134
  Object.defineProperty(exports, "Padding", {
@@ -122,7 +140,7 @@ Object.defineProperty(exports, "Padding", {
122
140
  Object.defineProperty(exports, "Permissions", {
123
141
  enumerable: true,
124
142
  get: function () {
125
- return _index1.Permissions;
143
+ return _index10.Permissions;
126
144
  }
127
145
  });
128
146
  Object.defineProperty(exports, "Responsive", {
@@ -164,7 +182,7 @@ Object.defineProperty(exports, "VersionCheck", {
164
182
  Object.defineProperty(exports, "addNetworkStatusListener", {
165
183
  enumerable: true,
166
184
  get: function () {
167
- return _index0.addNetworkStatusListener;
185
+ return _index1.addNetworkStatusListener;
168
186
  }
169
187
  });
170
188
  Object.defineProperty(exports, "compressImage", {
@@ -185,6 +203,12 @@ Object.defineProperty(exports, "decodeJWT", {
185
203
  return _jwt.decodeJWT;
186
204
  }
187
205
  });
206
+ Object.defineProperty(exports, "deletePath", {
207
+ enumerable: true,
208
+ get: function () {
209
+ return _index0.deletePath;
210
+ }
211
+ });
188
212
  Object.defineProperty(exports, "formatCompactNumber", {
189
213
  enumerable: true,
190
214
  get: function () {
@@ -272,7 +296,13 @@ Object.defineProperty(exports, "getJWTExpiry", {
272
296
  Object.defineProperty(exports, "getNetworkStatus", {
273
297
  enumerable: true,
274
298
  get: function () {
275
- return _index0.getNetworkStatus;
299
+ return _index1.getNetworkStatus;
300
+ }
301
+ });
302
+ Object.defineProperty(exports, "getPath", {
303
+ enumerable: true,
304
+ get: function () {
305
+ return _index0.getPath;
276
306
  }
277
307
  });
278
308
  Object.defineProperty(exports, "getTheme", {
@@ -485,6 +515,12 @@ Object.defineProperty(exports, "resetTheme", {
485
515
  return _index5.resetTheme;
486
516
  }
487
517
  });
518
+ Object.defineProperty(exports, "rules", {
519
+ enumerable: true,
520
+ get: function () {
521
+ return _index0.rules;
522
+ }
523
+ });
488
524
  Object.defineProperty(exports, "setColorMode", {
489
525
  enumerable: true,
490
526
  get: function () {
@@ -503,6 +539,12 @@ Object.defineProperty(exports, "setHapticImplementation", {
503
539
  return _index7.setHapticImplementation;
504
540
  }
505
541
  });
542
+ Object.defineProperty(exports, "setPath", {
543
+ enumerable: true,
544
+ get: function () {
545
+ return _index0.setPath;
546
+ }
547
+ });
506
548
  Object.defineProperty(exports, "setRemoteLogger", {
507
549
  enumerable: true,
508
550
  get: function () {
@@ -545,16 +587,52 @@ Object.defineProperty(exports, "triggerHaptic", {
545
587
  return _index7.triggerHaptic;
546
588
  }
547
589
  });
590
+ Object.defineProperty(exports, "useControllableState", {
591
+ enumerable: true,
592
+ get: function () {
593
+ return _index6.useControllableState;
594
+ }
595
+ });
548
596
  Object.defineProperty(exports, "useDebounce", {
549
597
  enumerable: true,
550
598
  get: function () {
551
599
  return _index6.useDebounce;
552
600
  }
553
601
  });
602
+ Object.defineProperty(exports, "useField", {
603
+ enumerable: true,
604
+ get: function () {
605
+ return _index0.useField;
606
+ }
607
+ });
608
+ Object.defineProperty(exports, "useFieldArray", {
609
+ enumerable: true,
610
+ get: function () {
611
+ return _index0.useFieldArray;
612
+ }
613
+ });
614
+ Object.defineProperty(exports, "useForm", {
615
+ enumerable: true,
616
+ get: function () {
617
+ return _index0.useForm;
618
+ }
619
+ });
620
+ Object.defineProperty(exports, "useFormContext", {
621
+ enumerable: true,
622
+ get: function () {
623
+ return _index0.useFormContext;
624
+ }
625
+ });
554
626
  Object.defineProperty(exports, "useNetworkStatus", {
555
627
  enumerable: true,
556
628
  get: function () {
557
- return _index0.useNetworkStatus;
629
+ return _index1.useNetworkStatus;
630
+ }
631
+ });
632
+ Object.defineProperty(exports, "useOptionalFormContext", {
633
+ enumerable: true,
634
+ get: function () {
635
+ return _index0.useOptionalFormContext;
558
636
  }
559
637
  });
560
638
  Object.defineProperty(exports, "usePressAnimation", {
@@ -563,6 +641,12 @@ Object.defineProperty(exports, "usePressAnimation", {
563
641
  return _index6.usePressAnimation;
564
642
  }
565
643
  });
644
+ Object.defineProperty(exports, "useReducedMotion", {
645
+ enumerable: true,
646
+ get: function () {
647
+ return _index6.useReducedMotion;
648
+ }
649
+ });
566
650
  Object.defineProperty(exports, "useTheme", {
567
651
  enumerable: true,
568
652
  get: function () {
@@ -609,17 +693,18 @@ var _index6 = require("./hooks/index.js");
609
693
  var _index7 = require("./utils/index.js");
610
694
  var _index8 = require("./formatters/index.js");
611
695
  var _index9 = require("./validators/index.js");
612
- var _index0 = require("./network/index.js");
613
- var _index1 = require("./permissions/index.js");
614
- var _index10 = require("./components/index.js");
615
- Object.keys(_index10).forEach(function (key) {
696
+ var _index0 = require("./form/index.js");
697
+ var _index1 = require("./network/index.js");
698
+ var _index10 = require("./permissions/index.js");
699
+ var _index11 = require("./components/index.js");
700
+ Object.keys(_index11).forEach(function (key) {
616
701
  if (key === "default" || key === "__esModule") return;
617
702
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
618
- if (key in exports && exports[key] === _index10[key]) return;
703
+ if (key in exports && exports[key] === _index11[key]) return;
619
704
  Object.defineProperty(exports, key, {
620
705
  enumerable: true,
621
706
  get: function () {
622
- return _index10[key];
707
+ return _index11[key];
623
708
  }
624
709
  });
625
710
  });
@@ -8,8 +8,31 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _tokens = require("./tokens.js");
10
10
  var _merge = require("./merge.js");
11
+ var _useReducedMotion = require("../hooks/useReducedMotion.js");
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ const REDUCED_SPRING = {
15
+ damping: 100,
16
+ stiffness: 1000,
17
+ mass: 1
18
+ };
19
+ // Reduce Motion: collapse timed animations to instant and make springs settle in
20
+ // ~1 frame, so vestibular-sensitive users aren't subjected to slides/scales/bounces.
21
+ const collapseMotion = motion => ({
22
+ ...motion,
23
+ duration: {
24
+ instant: 0,
25
+ fast: 0,
26
+ normal: 0,
27
+ slow: 0,
28
+ slower: 0
29
+ },
30
+ spring: {
31
+ gentle: REDUCED_SPRING,
32
+ bouncy: REDUCED_SPRING,
33
+ snappy: REDUCED_SPRING
34
+ }
35
+ });
13
36
  const defaultValue = {
14
37
  theme: _tokens.lightTheme,
15
38
  mode: 'light',
@@ -35,11 +58,16 @@ const ThemeProvider = ({
35
58
  return () => sub.remove();
36
59
  }, []);
37
60
  const mode = preference === 'system' ? systemMode : preference;
61
+ const reduceMotion = (0, _useReducedMotion.useReducedMotion)();
38
62
  const theme = (0, _react.useMemo)(() => {
39
63
  const base = mode === 'dark' ? _tokens.darkTheme : _tokens.lightTheme;
40
64
  const overrides = mode === 'dark' ? darkOverrides : lightOverrides;
41
- return overrides ? (0, _merge.mergeTheme)(base, overrides) : base;
42
- }, [mode, lightOverrides, darkOverrides]);
65
+ const merged = overrides ? (0, _merge.mergeTheme)(base, overrides) : base;
66
+ return reduceMotion ? {
67
+ ...merged,
68
+ motion: collapseMotion(merged.motion)
69
+ } : merged;
70
+ }, [mode, lightOverrides, darkOverrides, reduceMotion]);
43
71
  const value = (0, _react.useMemo)(() => ({
44
72
  theme,
45
73
  mode,
@@ -525,6 +525,12 @@ const lightTheme = exports.lightTheme = {
525
525
  warning: '#F59E0B',
526
526
  error: '#E5484D',
527
527
  info: '#3B82F6',
528
+ onPrimary: '#FFFFFF',
529
+ onSecondary: '#0F0F1A',
530
+ onSuccess: '#FFFFFF',
531
+ onWarning: '#0F0F1A',
532
+ onError: '#FFFFFF',
533
+ onInfo: '#FFFFFF',
528
534
  text: {
529
535
  primary: '#0F0F1A',
530
536
  secondary: '#52525B',
@@ -580,6 +586,12 @@ const darkTheme = exports.darkTheme = {
580
586
  warning: '#FBBF24',
581
587
  error: '#F87171',
582
588
  info: '#60A5FA',
589
+ onPrimary: '#0F0F1A',
590
+ onSecondary: '#FAFAFA',
591
+ onSuccess: '#0F0F1A',
592
+ onWarning: '#0F0F1A',
593
+ onError: '#0F0F1A',
594
+ onInfo: '#0F0F1A',
583
595
  text: {
584
596
  primary: '#FAFAFA',
585
597
  secondary: '#B4B4BB',
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.triggerHaptic = exports.setHapticImplementation = void 0;
6
+ exports.triggerHaptic = exports.setHapticImplementation = exports.resolveHaptic = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  let hapticImpl = null;
9
9
  const tryLoadOptional = () => {
@@ -53,5 +53,15 @@ exports.triggerHaptic = triggerHaptic;
53
53
  const setHapticImplementation = impl => {
54
54
  hapticImpl = impl;
55
55
  };
56
+
57
+ /**
58
+ * Resolves a component's `haptic` prop to the type that should fire, or null
59
+ * when haptics are off. `false` disables; a `HapticType` overrides; `undefined`
60
+ * falls back to the component's sensible default. Pair with `triggerHaptic`:
61
+ * const h = resolveHaptic(haptic, 'selection');
62
+ * if (h) triggerHaptic(h);
63
+ */
56
64
  exports.setHapticImplementation = setHapticImplementation;
65
+ const resolveHaptic = (haptic, fallbackType) => haptic === false ? null : haptic ?? fallbackType;
66
+ exports.resolveHaptic = resolveHaptic;
57
67
  //# sourceMappingURL=hapticUtils.js.map
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "isTablet", {
57
57
  return _responsive.isTablet;
58
58
  }
59
59
  });
60
+ Object.defineProperty(exports, "resolveHaptic", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _hapticUtils.resolveHaptic;
64
+ }
65
+ });
60
66
  Object.defineProperty(exports, "setHapticImplementation", {
61
67
  enumerable: true,
62
68
  get: function () {
@@ -3,7 +3,7 @@
3
3
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
4
4
  import { Animated, Easing, LayoutAnimation, Pressable, StyleSheet, Text, View } from 'react-native';
5
5
  import { useTheme, createAnimatedValue } from "../../theme/index.js";
6
- import { triggerHaptic } from "../../utils/hapticUtils.js";
6
+ import { resolveHaptic, triggerHaptic } from "../../utils/hapticUtils.js";
7
7
  import { Skeleton } from "../Skeleton/index.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  const AccordionGroupContext = /*#__PURE__*/createContext(null);
@@ -90,7 +90,8 @@ const Accordion = props => {
90
90
  contentWrapperStyle,
91
91
  containerStyle,
92
92
  testID,
93
- loading = false
93
+ loading = false,
94
+ haptic
94
95
  } = props;
95
96
  const theme = useTheme();
96
97
  const styles = useMemo(() => buildStyles(theme), [theme]);
@@ -108,7 +109,7 @@ const Accordion = props => {
108
109
  // Skip animation when state matches the previous value (e.g. on mount).
109
110
  if (lastExpandedRef.current === expanded) return;
110
111
  lastExpandedRef.current = expanded;
111
- Animated.parallel([Animated.timing(heightAnim, {
112
+ const anim = Animated.parallel([Animated.timing(heightAnim, {
112
113
  toValue: expanded ? 1 : 0,
113
114
  duration: theme.motion.duration.normal,
114
115
  easing: Easing.bezier(...theme.motion.easing.standard),
@@ -127,7 +128,9 @@ const Accordion = props => {
127
128
  duration: theme.motion.duration.normal,
128
129
  easing: Easing.bezier(...theme.motion.easing.standard),
129
130
  useNativeDriver: false
130
- })]).start();
131
+ })]);
132
+ anim.start();
133
+ return () => anim.stop();
131
134
  }, [expanded, heightAnim, opacityAnim, rotateAnim, theme.motion]);
132
135
  const onContentLayout = useCallback(e => {
133
136
  const h = e.nativeEvent.layout.height;
@@ -135,9 +138,8 @@ const Accordion = props => {
135
138
  }, [measuredHeight]);
136
139
  const handlePress = useCallback(() => {
137
140
  if (disabled) return;
138
- if (theme.components.accordion?.pressHaptic ?? false) {
139
- triggerHaptic('selection');
140
- }
141
+ const h = resolveHaptic(haptic, 'selection');
142
+ if (h) triggerHaptic(h);
141
143
  if (group && id) {
142
144
  group.toggle(id);
143
145
  onChange?.(!expanded);
@@ -145,7 +147,7 @@ const Accordion = props => {
145
147
  }
146
148
  if (!isControlled) setInternalExpanded(!expanded);
147
149
  onChange?.(!expanded);
148
- }, [disabled, group, id, expanded, isControlled, onChange, theme.components.accordion]);
150
+ }, [disabled, group, id, expanded, isControlled, onChange, haptic]);
149
151
  const rotate = rotateAnim.interpolate({
150
152
  inputRange: [0, 1],
151
153
  outputRange: ['0deg', '180deg']
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Animated, { FadeIn, FadeInDown, FadeInUp, FadeOut, FadeOutDown, FadeOutUp, ZoomIn, ZoomOut } from 'react-native-reanimated';
5
+ import { useTheme } from "../../theme/index.js";
6
+ import { useReducedMotion } from "../../hooks/index.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * Animates a single child in on mount and out on unmount. Thin, theme-aware
10
+ * wrapper over Reanimated's `entering`/`exiting` — Reanimated keeps the view
11
+ * alive to play the exit, so the parent only toggles a condition. Honors the OS
12
+ * Reduce Motion setting (renders instantly when reduced).
13
+ *
14
+ * For animating items inside a list, use Reanimated's `itemLayoutAnimation`
15
+ * on `Animated.FlatList` instead — this wrapper targets single conditional nodes.
16
+ */
17
+ const AnimatePresence = ({
18
+ children,
19
+ preset = 'fade',
20
+ duration,
21
+ style,
22
+ testID
23
+ }) => {
24
+ const theme = useTheme();
25
+ const reduceMotion = useReducedMotion();
26
+ const visible = children !== null && children !== undefined && children !== false;
27
+ if (!visible) return null;
28
+ const dur = duration ?? theme.motion.duration.normal;
29
+ let entering;
30
+ let exiting;
31
+ if (!reduceMotion) {
32
+ switch (preset) {
33
+ case 'scale':
34
+ entering = ZoomIn.duration(dur);
35
+ exiting = ZoomOut.duration(dur);
36
+ break;
37
+ case 'slide-up':
38
+ entering = FadeInUp.duration(dur);
39
+ exiting = FadeOutDown.duration(dur);
40
+ break;
41
+ case 'slide-down':
42
+ entering = FadeInDown.duration(dur);
43
+ exiting = FadeOutUp.duration(dur);
44
+ break;
45
+ case 'fade':
46
+ default:
47
+ entering = FadeIn.duration(dur);
48
+ exiting = FadeOut.duration(dur);
49
+ break;
50
+ }
51
+ }
52
+ return /*#__PURE__*/_jsx(Animated.View, {
53
+ entering: entering,
54
+ exiting: exiting,
55
+ style: style,
56
+ testID: testID,
57
+ children: children
58
+ });
59
+ };
60
+ AnimatePresence.displayName = 'AnimatePresence';
61
+ export { AnimatePresence };
62
+ export default AnimatePresence;
63
+ //# sourceMappingURL=AnimatePresence.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { AnimatePresence } from "./AnimatePresence.js";
4
+ //# sourceMappingURL=index.js.map
@@ -5,7 +5,7 @@ import { Animated, Pressable, StyleSheet, Text, View } from 'react-native';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
6
  import { useTheme } from "../../theme/index.js";
7
7
  import { usePressAnimation } from "../../hooks/usePressAnimation.js";
8
- import { triggerHaptic } from "../../utils/hapticUtils.js";
8
+ import { triggerHaptic, resolveHaptic } from "../../utils/hapticUtils.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  const variantSize = (theme, variant) => {
11
11
  switch (variant) {
@@ -36,7 +36,8 @@ const variantSize = (theme, variant) => {
36
36
  const ActionButton = ({
37
37
  action,
38
38
  side,
39
- badgeStyle
39
+ badgeStyle,
40
+ haptic
40
41
  }) => {
41
42
  const theme = useTheme();
42
43
  const {
@@ -48,9 +49,8 @@ const ActionButton = ({
48
49
  });
49
50
  const styles = useMemo(() => buildActionStyles(theme), [theme]);
50
51
  const onPress = () => {
51
- if (theme.components.appBar?.pressHaptic ?? false) {
52
- triggerHaptic('selection');
53
- }
52
+ const h = resolveHaptic(haptic, 'selection');
53
+ if (h) triggerHaptic(h);
54
54
  action.onPress();
55
55
  };
56
56
  const badgeValue = action.badge;
@@ -108,6 +108,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
108
108
  titleStyle,
109
109
  subtitleStyle,
110
110
  badgeStyle,
111
+ haptic,
111
112
  testID
112
113
  } = props;
113
114
  const theme = useTheme();
@@ -225,7 +226,8 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
225
226
  style: styles.sideSlot,
226
227
  children: leftAction ? /*#__PURE__*/_jsx(ActionButton, {
227
228
  action: leftAction,
228
- side: "left"
229
+ side: "left",
230
+ haptic: haptic
229
231
  }) : null
230
232
  }), /*#__PURE__*/_jsx(View, {
231
233
  style: [styles.center, titleAlignment === 'center' ? styles.centerAligned : styles.centerLeft],
@@ -235,7 +237,8 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
235
237
  children: rightActions?.map((action, index) => /*#__PURE__*/_jsx(ActionButton, {
236
238
  action: action,
237
239
  side: "right",
238
- badgeStyle: badgeStyle
240
+ badgeStyle: badgeStyle,
241
+ haptic: haptic
239
242
  }, `appbar-right-${index}`))
240
243
  })]
241
244
  })]
@@ -208,13 +208,15 @@ const AvatarGroupItem = ({
208
208
  }) => {
209
209
  const opacity = useRef(createAnimatedValue(0)).current;
210
210
  useEffect(() => {
211
- Animated.timing(opacity, {
211
+ const anim = Animated.timing(opacity, {
212
212
  toValue: 1,
213
213
  duration: ENTRANCE_DURATION_MS,
214
214
  delay,
215
215
  easing: Easing.out(Easing.cubic),
216
216
  useNativeDriver: true
217
- }).start();
217
+ });
218
+ anim.start();
219
+ return () => anim.stop();
218
220
  }, [delay, opacity]);
219
221
  return /*#__PURE__*/_jsx(Animated.View, {
220
222
  style: [groupStyles.item, {
@@ -10,22 +10,22 @@ const toneFor = (theme, tone) => {
10
10
  case 'primary':
11
11
  return {
12
12
  background: theme.colors.primary,
13
- text: theme.colors.text.inverse
13
+ text: theme.colors.onPrimary
14
14
  };
15
15
  case 'success':
16
16
  return {
17
17
  background: theme.colors.success,
18
- text: theme.colors.text.inverse
18
+ text: theme.colors.onSuccess
19
19
  };
20
20
  case 'warning':
21
21
  return {
22
22
  background: theme.colors.warning,
23
- text: theme.colors.text.inverse
23
+ text: theme.colors.onWarning
24
24
  };
25
25
  case 'info':
26
26
  return {
27
27
  background: theme.colors.info,
28
- text: theme.colors.text.inverse
28
+ text: theme.colors.onInfo
29
29
  };
30
30
  case 'neutral':
31
31
  return {
@@ -36,7 +36,7 @@ const toneFor = (theme, tone) => {
36
36
  default:
37
37
  return {
38
38
  background: theme.colors.error,
39
- text: theme.colors.text.inverse
39
+ text: theme.colors.onError
40
40
  };
41
41
  }
42
42
  };
@@ -3,6 +3,7 @@
3
3
  import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
4
4
  import { Animated, Pressable, StyleSheet, Text, View } from 'react-native';
5
5
  import { useTheme, createAnimatedValue } from "../../theme/index.js";
6
+ import { resolveHaptic, triggerHaptic } from "../../utils/hapticUtils.js";
6
7
  import { Skeleton, SkeletonText } from "../Skeleton/index.js";
7
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
9
  const Banner = /*#__PURE__*/forwardRef((props, ref) => {
@@ -14,6 +15,7 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
14
15
  actions,
15
16
  dismissible = false,
16
17
  onDismiss,
18
+ haptic,
17
19
  visible = true,
18
20
  animateMount = true,
19
21
  loading = false,
@@ -39,9 +41,10 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
39
41
  isFirstRun.current = false;
40
42
  if (!animateMount) return;
41
43
  }
44
+ let anim;
42
45
  if (visible) {
43
46
  setMounted(true);
44
- Animated.parallel([Animated.timing(translateY, {
47
+ anim = Animated.parallel([Animated.timing(translateY, {
45
48
  toValue: 0,
46
49
  duration: theme.motion.duration.normal,
47
50
  useNativeDriver: true
@@ -49,9 +52,10 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
49
52
  toValue: 1,
50
53
  duration: theme.motion.duration.normal,
51
54
  useNativeDriver: true
52
- })]).start();
55
+ })]);
56
+ anim.start();
53
57
  } else if (mounted) {
54
- Animated.parallel([Animated.timing(translateY, {
58
+ anim = Animated.parallel([Animated.timing(translateY, {
55
59
  toValue: -20,
56
60
  duration: theme.motion.duration.fast,
57
61
  useNativeDriver: true
@@ -59,10 +63,12 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
59
63
  toValue: 0,
60
64
  duration: theme.motion.duration.fast,
61
65
  useNativeDriver: true
62
- })]).start(() => {
66
+ })]);
67
+ anim.start(() => {
63
68
  setMounted(false);
64
69
  });
65
70
  }
71
+ return () => anim?.stop();
66
72
  // eslint-disable-next-line react-hooks/exhaustive-deps
67
73
  }, [visible]);
68
74
  if (!mounted) return null;
@@ -139,7 +145,11 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
139
145
  }), dismissible ? /*#__PURE__*/_jsx(Pressable, {
140
146
  accessibilityRole: "button",
141
147
  accessibilityLabel: "Dismiss banner",
142
- onPress: onDismiss,
148
+ onPress: () => {
149
+ const h = resolveHaptic(haptic, 'selection');
150
+ if (h) triggerHaptic(h);
151
+ onDismiss?.();
152
+ },
143
153
  hitSlop: 8,
144
154
  style: ({
145
155
  pressed
@@ -164,7 +174,11 @@ const Banner = /*#__PURE__*/forwardRef((props, ref) => {
164
174
  return /*#__PURE__*/_jsx(Pressable, {
165
175
  accessibilityRole: "button",
166
176
  accessibilityLabel: action.label,
167
- onPress: action.onPress,
177
+ onPress: () => {
178
+ const h = resolveHaptic(haptic, 'selection');
179
+ if (h) triggerHaptic(h);
180
+ action.onPress();
181
+ },
168
182
  style: ({
169
183
  pressed
170
184
  }) => [styles.actionBtn, {
@@ -46,7 +46,7 @@ const BottomNavigation = /*#__PURE__*/forwardRef((props, ref) => {
46
46
  const {
47
47
  tabs,
48
48
  activeTab,
49
- onTabPress,
49
+ onChange,
50
50
  haptic = 'selection',
51
51
  showLabels = true,
52
52
  variant = 'pill',
@@ -95,12 +95,14 @@ const BottomNavigation = /*#__PURE__*/forwardRef((props, ref) => {
95
95
  // this value directly.
96
96
  useEffect(() => {
97
97
  if (tabWidth <= 0) return;
98
- Animated.spring(indicatorTranslateX, {
98
+ const anim = Animated.spring(indicatorTranslateX, {
99
99
  toValue: activeIndex * tabWidth,
100
100
  tension: 120,
101
101
  friction: 14,
102
102
  useNativeDriver: true
103
- }).start();
103
+ });
104
+ anim.start();
105
+ return () => anim.stop();
104
106
  }, [activeIndex, tabWidth, indicatorTranslateX]);
105
107
  const handleLayout = e => {
106
108
  const total = e.nativeEvent.layout.width;
@@ -125,7 +127,7 @@ const BottomNavigation = /*#__PURE__*/forwardRef((props, ref) => {
125
127
  useNativeDriver: true
126
128
  })]).start();
127
129
  }
128
- onTabPress(tab.key);
130
+ onChange(tab.key);
129
131
  };
130
132
  const paddingBottom = Math.max(8, insets.bottom);
131
133
  return /*#__PURE__*/_jsx(View, {