@hero-design/rn 8.44.0-alpha.0 → 8.44.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 (275) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +30 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2773 -2662
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2776 -2666
  8. package/package.json +23 -24
  9. package/rollup.config.js +0 -1
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -384
  11. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  12. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +791 -605
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -567
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +172 -110
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -70
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -581
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +158 -57
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -153
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -242
  22. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -183
  23. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  24. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  25. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
  27. package/src/components/Button/StyledButton.tsx +4 -0
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -106
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1675 -1125
  30. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +71 -26
  31. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1651 -665
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -330
  33. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  35. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  36. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  37. package/src/components/Carousel/CardCarousel.tsx +10 -7
  38. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -406
  39. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +197 -70
  40. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  41. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1742 -1526
  42. package/src/components/Carousel/__tests__/index.spec.tsx +50 -3
  43. package/src/components/Carousel/index.tsx +16 -22
  44. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +404 -112
  45. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -334
  46. package/src/components/Chip/StyledChip.tsx +121 -0
  47. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
  48. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  49. package/src/components/Chip/index.tsx +82 -0
  50. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  51. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  52. package/src/components/Collapse/index.tsx +1 -1
  53. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  54. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +424 -268
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -466
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -160
  57. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -152
  58. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -389
  59. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  60. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  61. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
  62. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  63. package/src/components/Error/StyledError.tsx +2 -1
  64. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +390 -262
  65. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  66. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +860 -723
  67. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  68. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +199 -99
  69. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +293 -185
  70. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  71. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  72. package/src/components/Icon/IconList.ts +3 -0
  73. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  74. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  75. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -170
  76. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -588
  77. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +272 -128
  78. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +477 -193
  79. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
  80. package/src/components/Modal/__tests__/index.spec.tsx +99 -0
  81. package/src/components/Modal/index.tsx +178 -82
  82. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
  83. package/src/components/PageControl/index.tsx +1 -0
  84. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  85. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  86. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  87. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  88. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  89. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  90. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  91. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -116
  92. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +257 -205
  93. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -600
  94. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  95. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  96. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  97. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +413 -266
  98. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -35
  99. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -297
  100. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  101. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  102. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -57
  103. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2387 -2151
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +621 -28
  105. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  106. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -37
  107. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2321 -2085
  108. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +473 -23
  109. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  110. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  111. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  112. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  113. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  114. package/src/components/Success/StyledSuccess.tsx +2 -1
  115. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +388 -258
  116. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  117. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -75
  118. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  119. package/src/components/Swipeable/index.tsx +3 -3
  120. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  121. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +146 -109
  122. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  123. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -68
  124. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  125. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  126. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2217 -1962
  127. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -455
  128. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  129. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1641 -1398
  130. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  131. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  132. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  133. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -310
  134. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -540
  135. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -573
  136. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  137. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -426
  138. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -363
  139. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  140. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  141. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  142. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  143. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  144. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  145. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  146. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  147. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  148. package/src/index.ts +2 -2
  149. package/src/testHelpers/renderWithTheme.tsx +2 -2
  150. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  151. package/src/theme/components/button.ts +0 -1
  152. package/src/theme/components/chip.ts +47 -0
  153. package/src/theme/getTheme.ts +3 -0
  154. package/testUtils/setup.tsx +0 -18
  155. package/tsconfig.json +4 -1
  156. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  157. package/types/components/Accordion/index.d.ts +1 -1
  158. package/types/components/Attachment/index.d.ts +2 -1
  159. package/types/components/Avatar/Avatar.d.ts +2 -1
  160. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  161. package/types/components/Avatar/index.d.ts +3 -2
  162. package/types/components/Badge/StyledBadge.d.ts +0 -4
  163. package/types/components/BottomSheet/Footer.d.ts +2 -1
  164. package/types/components/BottomSheet/Header.d.ts +2 -1
  165. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  166. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  167. package/types/components/Box/index.d.ts +2 -1
  168. package/types/components/Button/IconButton.d.ts +2 -1
  169. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  170. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  171. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  172. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  173. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  174. package/types/components/Calendar/index.d.ts +2 -1
  175. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  176. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  177. package/types/components/Carousel/index.d.ts +2 -2
  178. package/types/components/Checkbox/index.d.ts +2 -1
  179. package/types/components/Chip/StyledChip.d.ts +31 -0
  180. package/types/components/Chip/index.d.ts +27 -0
  181. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  182. package/types/components/Collapse/index.d.ts +2 -1
  183. package/types/components/ContentNavigator/index.d.ts +2 -1
  184. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  185. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  186. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  187. package/types/components/DatePicker/index.d.ts +2 -1
  188. package/types/components/Divider/index.d.ts +2 -1
  189. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  190. package/types/components/Error/StyledError.d.ts +3 -9
  191. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  192. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  193. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  194. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  195. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  196. package/types/components/Icon/IconList.d.ts +1 -1
  197. package/types/components/Icon/index.d.ts +3 -2
  198. package/types/components/Icon/utils.d.ts +1 -1
  199. package/types/components/Image/index.d.ts +1 -0
  200. package/types/components/Modal/index.d.ts +12 -8
  201. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  202. package/types/components/PageControl/index.d.ts +2 -1
  203. package/types/components/PinInput/PinCell.d.ts +2 -1
  204. package/types/components/Portal/PortalHost.d.ts +1 -1
  205. package/types/components/Portal/PortalProvider.d.ts +1 -1
  206. package/types/components/Portal/index.d.ts +2 -2
  207. package/types/components/Progress/ProgressBar.d.ts +1 -0
  208. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  209. package/types/components/Progress/index.d.ts +1 -0
  210. package/types/components/Rate/StyledRate.d.ts +0 -2
  211. package/types/components/Rate/index.d.ts +2 -1
  212. package/types/components/RefreshControl/index.d.ts +2 -1
  213. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  214. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  215. package/types/components/RichTextEditor/index.d.ts +2 -2
  216. package/types/components/Select/BaseOptionList.d.ts +1 -1
  217. package/types/components/Select/Footer.d.ts +2 -1
  218. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  219. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  220. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  221. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  222. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  223. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  224. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  225. package/types/components/Select/helpers.d.ts +1 -2
  226. package/types/components/Select/index.d.ts +2 -1
  227. package/types/components/Skeleton/index.d.ts +2 -1
  228. package/types/components/Slider/index.d.ts +2 -1
  229. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  230. package/types/components/Success/StyledSuccess.d.ts +3 -7
  231. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  232. package/types/components/Swipeable/index.d.ts +3 -3
  233. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  234. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  235. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  236. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  237. package/types/components/Tabs/SceneView.d.ts +1 -1
  238. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  239. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  240. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  241. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  242. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  243. package/types/components/Tabs/index.d.ts +2 -1
  244. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  245. package/types/components/TextInput/index.d.ts +1 -1
  246. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  247. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  248. package/types/components/TimePicker/index.d.ts +2 -1
  249. package/types/components/Toast/StyledToast.d.ts +0 -2
  250. package/types/components/Toast/Toast.d.ts +1 -0
  251. package/types/components/Toast/ToastProvider.d.ts +2 -1
  252. package/types/components/Toast/index.d.ts +1 -1
  253. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  254. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  255. package/types/components/Toolbar/index.d.ts +3 -2
  256. package/types/components/Typography/Body/index.d.ts +2 -1
  257. package/types/components/Typography/Caption/index.d.ts +2 -1
  258. package/types/components/Typography/Label/index.d.ts +2 -1
  259. package/types/components/Typography/Text/index.d.ts +2 -1
  260. package/types/components/Typography/Title/index.d.ts +2 -1
  261. package/types/index.d.ts +2 -2
  262. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  263. package/types/theme/ThemeSwitcher.d.ts +2 -2
  264. package/types/theme/components/button.d.ts +0 -1
  265. package/types/theme/components/chip.d.ts +40 -0
  266. package/types/theme/getTheme.d.ts +2 -0
  267. package/.turbo/turbo-publish:npm.log +0 -0
  268. package/src/components/Modal/ModalContentWrapper.tsx +0 -112
  269. package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +0 -135
  270. package/src/components/Modal/ModalPresenter/index.tsx +0 -9
  271. package/src/components/Modal/ModalProvider.tsx +0 -8
  272. package/types/components/Modal/ModalContentWrapper.d.ts +0 -16
  273. package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +0 -34
  274. package/types/components/Modal/ModalPresenter/index.d.ts +0 -3
  275. package/types/components/Modal/ModalProvider.d.ts +0 -5
@@ -1,237 +1,135 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`OptionList render isLoading correctly 1`] = `
4
- <RCTScrollView
5
- ListFooterComponent={
6
- <View
7
- style={
8
- {
9
- "alignItems": "center",
10
- "display": "flex",
11
- "height": 56,
12
- }
13
- }
14
- >
15
- <Spinner />
16
- </View>
17
- }
18
- data={
19
- [
20
- {
21
- "category": "A",
22
- "data": [
23
- {
24
- "text": "A1",
25
- "value": "a1",
26
- },
27
- ],
28
- },
29
- {
30
- "category": "B",
31
- "data": [
32
- {
33
- "text": "B1",
34
- "value": "b1",
35
- },
36
- {
37
- "text": "B2",
38
- "value": "b2",
39
- },
40
- ],
41
- },
42
- ]
43
- }
44
- getItem={[Function]}
45
- getItemCount={[Function]}
46
- keyExtractor={[Function]}
47
- onContentSizeChange={[Function]}
48
- onEndReached={[Function]}
49
- onEndReachedThreshold={0.1}
50
- onLayout={[Function]}
51
- onMomentumScrollBegin={[Function]}
52
- onMomentumScrollEnd={[Function]}
53
- onScroll={[Function]}
54
- onScrollBeginDrag={[Function]}
55
- onScrollEndDrag={[Function]}
56
- renderItem={[Function]}
57
- scrollEventThrottle={50}
58
- stickyHeaderIndices={
59
- [
60
- 0,
61
- 3,
62
- ]
63
- }
4
+ <View
64
5
  style={
65
- [
66
- {
67
- "paddingHorizontal": 12,
68
- },
69
- [
70
- {
71
- "paddingBottom": 16,
72
- },
73
- {},
74
- ],
75
- ]
6
+ {
7
+ "flex": 1,
8
+ }
76
9
  }
77
10
  >
78
- <View>
79
- <View
80
- onLayout={[Function]}
81
- style={null}
82
- >
11
+ <RCTScrollView
12
+ ListFooterComponent={
83
13
  <View
84
14
  style={
85
- [
15
+ {
16
+ "alignItems": "center",
17
+ "display": "flex",
18
+ "height": 56,
19
+ }
20
+ }
21
+ >
22
+ <Spinner />
23
+ </View>
24
+ }
25
+ data={
26
+ [
27
+ {
28
+ "category": "A",
29
+ "data": [
86
30
  {
87
- "alignContent": "center",
88
- "backgroundColor": "#f6f6f7",
89
- "display": "flex",
90
- "flexDirection": "row",
91
- "justifyContent": "space-between",
92
- "marginBottom": 16,
93
- "paddingHorizontal": 16,
94
- "paddingVertical": 8,
31
+ "text": "A1",
32
+ "value": "a1",
33
+ },
34
+ ],
35
+ },
36
+ {
37
+ "category": "B",
38
+ "data": [
39
+ {
40
+ "text": "B1",
41
+ "value": "b1",
95
42
  },
96
43
  {
97
- "marginBottom": 0,
44
+ "text": "B2",
45
+ "value": "b2",
98
46
  },
99
- ]
100
- }
101
- themeSize="medium"
47
+ ],
48
+ },
49
+ ]
50
+ }
51
+ getItem={[Function]}
52
+ getItemCount={[Function]}
53
+ keyExtractor={[Function]}
54
+ onContentSizeChange={[Function]}
55
+ onEndReached={[Function]}
56
+ onEndReachedThreshold={0.1}
57
+ onLayout={[Function]}
58
+ onMomentumScrollBegin={[Function]}
59
+ onMomentumScrollEnd={[Function]}
60
+ onScroll={[Function]}
61
+ onScrollBeginDrag={[Function]}
62
+ onScrollEndDrag={[Function]}
63
+ renderItem={[Function]}
64
+ scrollEventThrottle={50}
65
+ stickyHeaderIndices={
66
+ [
67
+ 0,
68
+ 3,
69
+ ]
70
+ }
71
+ style={
72
+ [
73
+ {
74
+ "paddingHorizontal": 12,
75
+ },
76
+ [
77
+ {
78
+ "paddingBottom": 16,
79
+ },
80
+ {},
81
+ ],
82
+ ]
83
+ }
84
+ >
85
+ <View>
86
+ <View
87
+ onFocusCapture={[Function]}
88
+ onLayout={[Function]}
89
+ style={null}
102
90
  >
103
91
  <View
104
92
  style={
105
93
  [
106
94
  {
107
- "alignItems": "center",
95
+ "alignContent": "center",
96
+ "backgroundColor": "#f6f6f7",
108
97
  "display": "flex",
109
98
  "flexDirection": "row",
99
+ "justifyContent": "space-between",
100
+ "marginBottom": 16,
101
+ "paddingHorizontal": 16,
102
+ "paddingVertical": 8,
110
103
  },
111
- undefined,
112
- ]
113
- }
114
- >
115
- <View
116
- style={
117
- [
118
- {
119
- "marginRight": 12,
120
- },
121
- undefined,
122
- ]
123
- }
124
- />
125
- <Text
126
- allowFontScaling={false}
127
- style={
128
- [
129
- {
130
- "color": "#001f23",
131
- "fontFamily": "BeVietnamPro-Regular",
132
- "fontSize": 14,
133
- "letterSpacing": 0.48,
134
- "lineHeight": 22,
135
- },
136
- undefined,
137
- ]
138
- }
139
- themeIntent="body"
140
- themeTypeface="neutral"
141
- themeVariant="small"
142
- >
143
- A
144
- </Text>
145
- </View>
146
- </View>
147
- </View>
148
- <View
149
- onLayout={[Function]}
150
- style={null}
151
- >
152
- <View>
153
- <View
154
- highlighted={false}
155
- section={
156
- {
157
- "category": "A",
158
- "data": [
159
- {
160
- "text": "A1",
161
- "value": "a1",
162
- },
163
- ],
164
- }
165
- }
166
- style={
167
- [
168
- {
169
- "marginTop": 12,
170
- },
171
- undefined,
172
- ]
173
- }
174
- trailingItem={
175
- {
176
- "text": "A1",
177
- "value": "a1",
178
- }
179
- }
180
- trailingSection={
181
- {
182
- "category": "B",
183
- "data": [
184
- {
185
- "text": "B1",
186
- "value": "b1",
187
- },
188
- {
189
- "text": "B2",
190
- "value": "b2",
191
- },
192
- ],
193
- }
194
- }
195
- />
196
- <View
197
- accessibilityState={
198
- {
199
- "disabled": false,
200
- }
201
- }
202
- accessible={true}
203
- focusable={true}
204
- onClick={[Function]}
205
- onResponderGrant={[Function]}
206
- onResponderMove={[Function]}
207
- onResponderRelease={[Function]}
208
- onResponderTerminate={[Function]}
209
- onResponderTerminationRequest={[Function]}
210
- onStartShouldSetResponder={[Function]}
211
- style={
212
- [
213
104
  {
214
- "alignItems": "center",
215
- "backgroundColor": "#ece8ef",
216
- "borderRadius": 4,
217
- "flexDirection": "row",
218
- "opacity": 1,
219
- "padding": 16,
105
+ "marginBottom": 0,
220
106
  },
221
- undefined,
222
107
  ]
223
108
  }
109
+ themeSize="medium"
224
110
  >
225
111
  <View
226
112
  style={
227
113
  [
228
114
  {
229
- "flex": 1,
115
+ "alignItems": "center",
116
+ "display": "flex",
117
+ "flexDirection": "row",
230
118
  },
231
119
  undefined,
232
120
  ]
233
121
  }
234
122
  >
123
+ <View
124
+ style={
125
+ [
126
+ {
127
+ "marginRight": 12,
128
+ },
129
+ undefined,
130
+ ]
131
+ }
132
+ />
235
133
  <Text
236
134
  allowFontScaling={false}
237
135
  style={
@@ -239,226 +137,237 @@ exports[`OptionList render isLoading correctly 1`] = `
239
137
  {
240
138
  "color": "#001f23",
241
139
  "fontFamily": "BeVietnamPro-Regular",
242
- "fontSize": 16,
140
+ "fontSize": 14,
243
141
  "letterSpacing": 0.48,
244
- "lineHeight": 24,
142
+ "lineHeight": 22,
245
143
  },
246
144
  undefined,
247
145
  ]
248
146
  }
249
147
  themeIntent="body"
250
148
  themeTypeface="neutral"
251
- themeVariant="regular"
149
+ themeVariant="small"
252
150
  >
253
- A1
151
+ A
254
152
  </Text>
255
153
  </View>
256
154
  </View>
257
- <View
258
- highlighted={false}
259
- leadingItem={
260
- {
261
- "text": "A1",
262
- "value": "a1",
263
- }
264
- }
265
- section={
266
- {
267
- "category": "A",
268
- "data": [
269
- {
270
- "text": "A1",
271
- "value": "a1",
272
- },
273
- ],
274
- }
275
- }
276
- style={
277
- [
278
- {
279
- "marginTop": 12,
280
- },
281
- undefined,
282
- ]
283
- }
284
- trailingSection={
285
- {
286
- "category": "B",
287
- "data": [
288
- {
289
- "text": "B1",
290
- "value": "b1",
291
- },
292
- {
293
- "text": "B2",
294
- "value": "b2",
295
- },
296
- ],
297
- }
298
- }
299
- />
300
155
  </View>
301
- </View>
302
- <View
303
- onLayout={[Function]}
304
- style={null}
305
- />
306
- <View
307
- onLayout={[Function]}
308
- style={null}
309
- >
310
156
  <View
311
- style={
312
- [
313
- {
314
- "alignContent": "center",
315
- "backgroundColor": "#f6f6f7",
316
- "display": "flex",
317
- "flexDirection": "row",
318
- "justifyContent": "space-between",
319
- "marginBottom": 16,
320
- "paddingHorizontal": 16,
321
- "paddingVertical": 8,
322
- },
323
- {
324
- "marginBottom": 0,
325
- },
326
- ]
327
- }
328
- themeSize="medium"
157
+ onFocusCapture={[Function]}
158
+ onLayout={[Function]}
159
+ style={null}
329
160
  >
330
- <View
331
- style={
332
- [
333
- {
334
- "alignItems": "center",
335
- "display": "flex",
336
- "flexDirection": "row",
337
- },
338
- undefined,
339
- ]
340
- }
341
- >
161
+ <View>
342
162
  <View
163
+ highlighted={false}
164
+ section={
165
+ {
166
+ "category": "A",
167
+ "data": [
168
+ {
169
+ "text": "A1",
170
+ "value": "a1",
171
+ },
172
+ ],
173
+ }
174
+ }
343
175
  style={
344
176
  [
345
177
  {
346
- "marginRight": 12,
178
+ "marginTop": 12,
347
179
  },
348
180
  undefined,
349
181
  ]
350
182
  }
183
+ trailingItem={
184
+ {
185
+ "text": "A1",
186
+ "value": "a1",
187
+ }
188
+ }
189
+ trailingSection={
190
+ {
191
+ "category": "B",
192
+ "data": [
193
+ {
194
+ "text": "B1",
195
+ "value": "b1",
196
+ },
197
+ {
198
+ "text": "B2",
199
+ "value": "b2",
200
+ },
201
+ ],
202
+ }
203
+ }
351
204
  />
352
- <Text
353
- allowFontScaling={false}
205
+ <View
206
+ accessibilityState={
207
+ {
208
+ "disabled": false,
209
+ }
210
+ }
211
+ accessibilityValue={
212
+ {
213
+ "max": undefined,
214
+ "min": undefined,
215
+ "now": undefined,
216
+ "text": undefined,
217
+ }
218
+ }
219
+ accessible={true}
220
+ focusable={true}
221
+ onClick={[Function]}
222
+ onResponderGrant={[Function]}
223
+ onResponderMove={[Function]}
224
+ onResponderRelease={[Function]}
225
+ onResponderTerminate={[Function]}
226
+ onResponderTerminationRequest={[Function]}
227
+ onStartShouldSetResponder={[Function]}
354
228
  style={
355
229
  [
356
230
  {
357
- "color": "#001f23",
358
- "fontFamily": "BeVietnamPro-Regular",
359
- "fontSize": 14,
360
- "letterSpacing": 0.48,
361
- "lineHeight": 22,
231
+ "alignItems": "center",
232
+ "backgroundColor": "#ece8ef",
233
+ "borderRadius": 4,
234
+ "flexDirection": "row",
235
+ "opacity": 1,
236
+ "padding": 16,
362
237
  },
363
238
  undefined,
364
239
  ]
365
240
  }
366
- themeIntent="body"
367
- themeTypeface="neutral"
368
- themeVariant="small"
369
241
  >
370
- B
371
- </Text>
372
- </View>
373
- </View>
374
- </View>
375
- <View
376
- onLayout={[Function]}
377
- style={null}
378
- >
379
- <View>
380
- <View
381
- highlighted={false}
382
- leadingSection={
383
- {
384
- "category": "A",
385
- "data": [
386
- {
387
- "text": "A1",
388
- "value": "a1",
389
- },
390
- ],
242
+ <View
243
+ style={
244
+ [
245
+ {
246
+ "flex": 1,
247
+ },
248
+ undefined,
249
+ ]
250
+ }
251
+ >
252
+ <Text
253
+ allowFontScaling={false}
254
+ style={
255
+ [
256
+ {
257
+ "color": "#001f23",
258
+ "fontFamily": "BeVietnamPro-Regular",
259
+ "fontSize": 16,
260
+ "letterSpacing": 0.48,
261
+ "lineHeight": 24,
262
+ },
263
+ undefined,
264
+ ]
265
+ }
266
+ themeIntent="body"
267
+ themeTypeface="neutral"
268
+ themeVariant="regular"
269
+ >
270
+ A1
271
+ </Text>
272
+ </View>
273
+ </View>
274
+ <View
275
+ highlighted={false}
276
+ leadingItem={
277
+ {
278
+ "text": "A1",
279
+ "value": "a1",
280
+ }
391
281
  }
392
- }
393
- section={
394
- {
395
- "category": "B",
396
- "data": [
397
- {
398
- "text": "B1",
399
- "value": "b1",
400
- },
282
+ section={
283
+ {
284
+ "category": "A",
285
+ "data": [
286
+ {
287
+ "text": "A1",
288
+ "value": "a1",
289
+ },
290
+ ],
291
+ }
292
+ }
293
+ style={
294
+ [
401
295
  {
402
- "text": "B2",
403
- "value": "b2",
296
+ "marginTop": 12,
404
297
  },
405
- ],
298
+ undefined,
299
+ ]
406
300
  }
407
- }
408
- style={
409
- [
301
+ trailingSection={
410
302
  {
411
- "marginTop": 12,
412
- },
413
- undefined,
414
- ]
415
- }
416
- trailingItem={
417
- {
418
- "text": "B1",
419
- "value": "b1",
303
+ "category": "B",
304
+ "data": [
305
+ {
306
+ "text": "B1",
307
+ "value": "b1",
308
+ },
309
+ {
310
+ "text": "B2",
311
+ "value": "b2",
312
+ },
313
+ ],
314
+ }
420
315
  }
421
- }
422
- />
316
+ />
317
+ </View>
318
+ </View>
319
+ <View
320
+ onFocusCapture={[Function]}
321
+ onLayout={[Function]}
322
+ style={null}
323
+ />
324
+ <View
325
+ onFocusCapture={[Function]}
326
+ onLayout={[Function]}
327
+ style={null}
328
+ >
423
329
  <View
424
- accessibilityState={
425
- {
426
- "disabled": false,
427
- }
428
- }
429
- accessible={true}
430
- focusable={true}
431
- onClick={[Function]}
432
- onResponderGrant={[Function]}
433
- onResponderMove={[Function]}
434
- onResponderRelease={[Function]}
435
- onResponderTerminate={[Function]}
436
- onResponderTerminationRequest={[Function]}
437
- onStartShouldSetResponder={[Function]}
438
330
  style={
439
331
  [
440
332
  {
441
- "alignItems": "center",
442
- "backgroundColor": "#ffffff",
443
- "borderRadius": 4,
333
+ "alignContent": "center",
334
+ "backgroundColor": "#f6f6f7",
335
+ "display": "flex",
444
336
  "flexDirection": "row",
445
- "opacity": 1,
446
- "padding": 16,
337
+ "justifyContent": "space-between",
338
+ "marginBottom": 16,
339
+ "paddingHorizontal": 16,
340
+ "paddingVertical": 8,
341
+ },
342
+ {
343
+ "marginBottom": 0,
447
344
  },
448
- undefined,
449
345
  ]
450
346
  }
347
+ themeSize="medium"
451
348
  >
452
349
  <View
453
350
  style={
454
351
  [
455
352
  {
456
- "flex": 1,
353
+ "alignItems": "center",
354
+ "display": "flex",
355
+ "flexDirection": "row",
457
356
  },
458
357
  undefined,
459
358
  ]
460
359
  }
461
360
  >
361
+ <View
362
+ style={
363
+ [
364
+ {
365
+ "marginRight": 12,
366
+ },
367
+ undefined,
368
+ ]
369
+ }
370
+ />
462
371
  <Text
463
372
  allowFontScaling={false}
464
373
  style={
@@ -466,564 +375,612 @@ exports[`OptionList render isLoading correctly 1`] = `
466
375
  {
467
376
  "color": "#001f23",
468
377
  "fontFamily": "BeVietnamPro-Regular",
469
- "fontSize": 16,
378
+ "fontSize": 14,
470
379
  "letterSpacing": 0.48,
471
- "lineHeight": 24,
380
+ "lineHeight": 22,
472
381
  },
473
382
  undefined,
474
383
  ]
475
384
  }
476
385
  themeIntent="body"
477
386
  themeTypeface="neutral"
478
- themeVariant="regular"
387
+ themeVariant="small"
479
388
  >
480
- B1
389
+ B
481
390
  </Text>
482
391
  </View>
483
392
  </View>
484
- <View
485
- highlighted={false}
486
- leadingItem={
487
- {
488
- "text": "B1",
489
- "value": "b1",
393
+ </View>
394
+ <View
395
+ onFocusCapture={[Function]}
396
+ onLayout={[Function]}
397
+ style={null}
398
+ >
399
+ <View>
400
+ <View
401
+ highlighted={false}
402
+ leadingSection={
403
+ {
404
+ "category": "A",
405
+ "data": [
406
+ {
407
+ "text": "A1",
408
+ "value": "a1",
409
+ },
410
+ ],
411
+ }
490
412
  }
491
- }
492
- leadingSection={
493
- {
494
- "category": "A",
495
- "data": [
413
+ section={
414
+ {
415
+ "category": "B",
416
+ "data": [
417
+ {
418
+ "text": "B1",
419
+ "value": "b1",
420
+ },
421
+ {
422
+ "text": "B2",
423
+ "value": "b2",
424
+ },
425
+ ],
426
+ }
427
+ }
428
+ style={
429
+ [
496
430
  {
497
- "text": "A1",
498
- "value": "a1",
431
+ "marginTop": 12,
499
432
  },
500
- ],
433
+ undefined,
434
+ ]
501
435
  }
502
- }
503
- section={
504
- {
505
- "category": "B",
506
- "data": [
436
+ trailingItem={
437
+ {
438
+ "text": "B1",
439
+ "value": "b1",
440
+ }
441
+ }
442
+ />
443
+ <View
444
+ accessibilityState={
445
+ {
446
+ "disabled": false,
447
+ }
448
+ }
449
+ accessibilityValue={
450
+ {
451
+ "max": undefined,
452
+ "min": undefined,
453
+ "now": undefined,
454
+ "text": undefined,
455
+ }
456
+ }
457
+ accessible={true}
458
+ focusable={true}
459
+ onClick={[Function]}
460
+ onResponderGrant={[Function]}
461
+ onResponderMove={[Function]}
462
+ onResponderRelease={[Function]}
463
+ onResponderTerminate={[Function]}
464
+ onResponderTerminationRequest={[Function]}
465
+ onStartShouldSetResponder={[Function]}
466
+ style={
467
+ [
507
468
  {
508
- "text": "B1",
509
- "value": "b1",
469
+ "alignItems": "center",
470
+ "backgroundColor": "#ffffff",
471
+ "borderRadius": 4,
472
+ "flexDirection": "row",
473
+ "opacity": 1,
474
+ "padding": 16,
510
475
  },
476
+ undefined,
477
+ ]
478
+ }
479
+ >
480
+ <View
481
+ style={
482
+ [
483
+ {
484
+ "flex": 1,
485
+ },
486
+ undefined,
487
+ ]
488
+ }
489
+ >
490
+ <Text
491
+ allowFontScaling={false}
492
+ style={
493
+ [
494
+ {
495
+ "color": "#001f23",
496
+ "fontFamily": "BeVietnamPro-Regular",
497
+ "fontSize": 16,
498
+ "letterSpacing": 0.48,
499
+ "lineHeight": 24,
500
+ },
501
+ undefined,
502
+ ]
503
+ }
504
+ themeIntent="body"
505
+ themeTypeface="neutral"
506
+ themeVariant="regular"
507
+ >
508
+ B1
509
+ </Text>
510
+ </View>
511
+ </View>
512
+ <View
513
+ highlighted={false}
514
+ leadingItem={
515
+ {
516
+ "text": "B1",
517
+ "value": "b1",
518
+ }
519
+ }
520
+ leadingSection={
521
+ {
522
+ "category": "A",
523
+ "data": [
524
+ {
525
+ "text": "A1",
526
+ "value": "a1",
527
+ },
528
+ ],
529
+ }
530
+ }
531
+ section={
532
+ {
533
+ "category": "B",
534
+ "data": [
535
+ {
536
+ "text": "B1",
537
+ "value": "b1",
538
+ },
539
+ {
540
+ "text": "B2",
541
+ "value": "b2",
542
+ },
543
+ ],
544
+ }
545
+ }
546
+ style={
547
+ [
511
548
  {
512
- "text": "B2",
513
- "value": "b2",
549
+ "marginTop": 4,
514
550
  },
515
- ],
551
+ undefined,
552
+ ]
516
553
  }
517
- }
518
- style={
519
- [
554
+ trailingItem={
520
555
  {
521
- "marginTop": 4,
522
- },
523
- undefined,
524
- ]
525
- }
526
- trailingItem={
527
- {
528
- "text": "B2",
529
- "value": "b2",
556
+ "text": "B2",
557
+ "value": "b2",
558
+ }
530
559
  }
531
- }
532
- />
560
+ />
561
+ </View>
533
562
  </View>
534
- </View>
535
- <View
536
- onLayout={[Function]}
537
- style={null}
538
- >
539
- <View>
540
- <View
541
- accessibilityState={
542
- {
543
- "disabled": false,
563
+ <View
564
+ onFocusCapture={[Function]}
565
+ onLayout={[Function]}
566
+ style={null}
567
+ >
568
+ <View>
569
+ <View
570
+ accessibilityState={
571
+ {
572
+ "disabled": false,
573
+ }
544
574
  }
545
- }
546
- accessible={true}
547
- focusable={true}
548
- onClick={[Function]}
549
- onResponderGrant={[Function]}
550
- onResponderMove={[Function]}
551
- onResponderRelease={[Function]}
552
- onResponderTerminate={[Function]}
553
- onResponderTerminationRequest={[Function]}
554
- onStartShouldSetResponder={[Function]}
555
- style={
556
- [
575
+ accessibilityValue={
557
576
  {
558
- "alignItems": "center",
559
- "backgroundColor": "#ffffff",
560
- "borderRadius": 4,
561
- "flexDirection": "row",
562
- "opacity": 1,
563
- "padding": 16,
564
- },
565
- undefined,
566
- ]
567
- }
568
- >
569
- <View
577
+ "max": undefined,
578
+ "min": undefined,
579
+ "now": undefined,
580
+ "text": undefined,
581
+ }
582
+ }
583
+ accessible={true}
584
+ focusable={true}
585
+ onClick={[Function]}
586
+ onResponderGrant={[Function]}
587
+ onResponderMove={[Function]}
588
+ onResponderRelease={[Function]}
589
+ onResponderTerminate={[Function]}
590
+ onResponderTerminationRequest={[Function]}
591
+ onStartShouldSetResponder={[Function]}
570
592
  style={
571
593
  [
572
594
  {
573
- "flex": 1,
595
+ "alignItems": "center",
596
+ "backgroundColor": "#ffffff",
597
+ "borderRadius": 4,
598
+ "flexDirection": "row",
599
+ "opacity": 1,
600
+ "padding": 16,
574
601
  },
575
602
  undefined,
576
603
  ]
577
604
  }
578
605
  >
579
- <Text
580
- allowFontScaling={false}
606
+ <View
581
607
  style={
582
608
  [
583
609
  {
584
- "color": "#001f23",
585
- "fontFamily": "BeVietnamPro-Regular",
586
- "fontSize": 16,
587
- "letterSpacing": 0.48,
588
- "lineHeight": 24,
610
+ "flex": 1,
589
611
  },
590
612
  undefined,
591
613
  ]
592
614
  }
593
- themeIntent="body"
594
- themeTypeface="neutral"
595
- themeVariant="regular"
596
615
  >
597
- B2
598
- </Text>
616
+ <Text
617
+ allowFontScaling={false}
618
+ style={
619
+ [
620
+ {
621
+ "color": "#001f23",
622
+ "fontFamily": "BeVietnamPro-Regular",
623
+ "fontSize": 16,
624
+ "letterSpacing": 0.48,
625
+ "lineHeight": 24,
626
+ },
627
+ undefined,
628
+ ]
629
+ }
630
+ themeIntent="body"
631
+ themeTypeface="neutral"
632
+ themeVariant="regular"
633
+ >
634
+ B2
635
+ </Text>
636
+ </View>
599
637
  </View>
600
- </View>
601
- <View
602
- highlighted={false}
603
- leadingItem={
604
- {
605
- "text": "B2",
606
- "value": "b2",
638
+ <View
639
+ highlighted={false}
640
+ leadingItem={
641
+ {
642
+ "text": "B2",
643
+ "value": "b2",
644
+ }
607
645
  }
608
- }
609
- leadingSection={
610
- {
611
- "category": "A",
612
- "data": [
613
- {
614
- "text": "A1",
615
- "value": "a1",
616
- },
617
- ],
646
+ leadingSection={
647
+ {
648
+ "category": "A",
649
+ "data": [
650
+ {
651
+ "text": "A1",
652
+ "value": "a1",
653
+ },
654
+ ],
655
+ }
618
656
  }
619
- }
620
- section={
621
- {
622
- "category": "B",
623
- "data": [
624
- {
625
- "text": "B1",
626
- "value": "b1",
627
- },
657
+ section={
658
+ {
659
+ "category": "B",
660
+ "data": [
661
+ {
662
+ "text": "B1",
663
+ "value": "b1",
664
+ },
665
+ {
666
+ "text": "B2",
667
+ "value": "b2",
668
+ },
669
+ ],
670
+ }
671
+ }
672
+ style={
673
+ [
628
674
  {
629
- "text": "B2",
630
- "value": "b2",
675
+ "marginTop": 12,
631
676
  },
632
- ],
677
+ undefined,
678
+ ]
633
679
  }
634
- }
635
- style={
636
- [
637
- {
638
- "marginTop": 12,
639
- },
640
- undefined,
641
- ]
642
- }
643
- />
680
+ />
681
+ </View>
644
682
  </View>
645
- </View>
646
- <View
647
- onLayout={[Function]}
648
- style={null}
649
- />
650
- <View
651
- onLayout={[Function]}
652
- >
653
683
  <View
654
- style={
655
- {
656
- "alignItems": "center",
657
- "display": "flex",
658
- "height": 56,
659
- }
660
- }
684
+ onFocusCapture={[Function]}
685
+ onLayout={[Function]}
686
+ style={null}
687
+ />
688
+ <View
689
+ onLayout={[Function]}
661
690
  >
662
691
  <View
663
692
  style={
664
- [
665
- {},
666
- undefined,
667
- ]
693
+ {
694
+ "alignItems": "center",
695
+ "display": "flex",
696
+ "height": 56,
697
+ }
668
698
  }
669
699
  >
670
700
  <View
671
701
  style={
672
702
  [
673
- {
674
- "alignItems": "center",
675
- "height": "100%",
676
- "justifyContent": "center",
677
- },
703
+ {},
678
704
  undefined,
679
705
  ]
680
706
  }
681
707
  >
682
708
  <View
683
- collapsable={false}
684
709
  style={
685
- {
686
- "transform": [
687
- {
688
- "rotate": "0deg",
689
- },
690
- ],
691
- }
710
+ [
711
+ {
712
+ "alignItems": "center",
713
+ "height": "100%",
714
+ "justifyContent": "center",
715
+ },
716
+ undefined,
717
+ ]
692
718
  }
693
719
  >
694
720
  <View
695
721
  collapsable={false}
696
722
  style={
697
- [
698
- {
699
- "flexDirection": "row",
700
- "marginBottom": 8,
701
- },
702
- {},
703
- ]
704
- }
705
- themePosition="top"
706
- themeSize="medium"
707
- >
708
- <View
709
- collapsable={false}
710
- style={
711
- [
712
- {
713
- "backgroundColor": "#401960",
714
- "borderRadius": 999,
715
- "height": 16,
716
- "opacity": 0.9,
717
- "width": 16,
718
- },
719
- {},
720
- ]
721
- }
722
- themeIntent="primary"
723
- themePosition="topLeft"
724
- themeSize="medium"
725
- />
726
- <View
727
- collapsable={false}
728
- style={
729
- [
723
+ {
724
+ "transform": [
730
725
  {
731
- "backgroundColor": "#401960",
732
- "borderRadius": 999,
733
- "height": 16,
734
- "marginLeft": 8,
735
- "opacity": 0.675,
736
- "width": 16,
726
+ "rotate": "0deg",
737
727
  },
738
- {},
739
- ]
728
+ ],
740
729
  }
741
- themeIntent="primary"
742
- themePosition="topRight"
743
- themeSize="medium"
744
- />
745
- </View>
746
- <View
747
- collapsable={false}
748
- style={
749
- [
750
- {
751
- "flexDirection": "row",
752
- "marginBottom": 0,
753
- },
754
- {},
755
- ]
756
730
  }
757
- themePosition="bottom"
758
- themeSize="medium"
759
731
  >
760
732
  <View
761
733
  collapsable={false}
762
734
  style={
763
735
  [
764
736
  {
765
- "backgroundColor": "#401960",
766
- "borderRadius": 999,
767
- "height": 16,
768
- "opacity": 0.45,
769
- "width": 16,
737
+ "flexDirection": "row",
738
+ "marginBottom": 8,
770
739
  },
771
740
  {},
772
741
  ]
773
742
  }
774
- themeIntent="primary"
775
- themePosition="bottomLeft"
743
+ themePosition="top"
776
744
  themeSize="medium"
777
- />
745
+ >
746
+ <View
747
+ collapsable={false}
748
+ style={
749
+ [
750
+ {
751
+ "backgroundColor": "#401960",
752
+ "borderRadius": 999,
753
+ "height": 16,
754
+ "opacity": 0.9,
755
+ "width": 16,
756
+ },
757
+ {},
758
+ ]
759
+ }
760
+ themeIntent="primary"
761
+ themePosition="topLeft"
762
+ themeSize="medium"
763
+ />
764
+ <View
765
+ collapsable={false}
766
+ style={
767
+ [
768
+ {
769
+ "backgroundColor": "#401960",
770
+ "borderRadius": 999,
771
+ "height": 16,
772
+ "marginLeft": 8,
773
+ "opacity": 0.675,
774
+ "width": 16,
775
+ },
776
+ {},
777
+ ]
778
+ }
779
+ themeIntent="primary"
780
+ themePosition="topRight"
781
+ themeSize="medium"
782
+ />
783
+ </View>
778
784
  <View
779
785
  collapsable={false}
780
786
  style={
781
787
  [
782
788
  {
783
- "backgroundColor": "#401960",
784
- "borderRadius": 999,
785
- "height": 16,
786
- "marginLeft": 8,
787
- "opacity": 0.225,
788
- "width": 16,
789
+ "flexDirection": "row",
790
+ "marginBottom": 0,
789
791
  },
790
792
  {},
791
793
  ]
792
794
  }
793
- themeIntent="primary"
794
- themePosition="bottomRight"
795
+ themePosition="bottom"
795
796
  themeSize="medium"
796
- />
797
+ >
798
+ <View
799
+ collapsable={false}
800
+ style={
801
+ [
802
+ {
803
+ "backgroundColor": "#401960",
804
+ "borderRadius": 999,
805
+ "height": 16,
806
+ "opacity": 0.45,
807
+ "width": 16,
808
+ },
809
+ {},
810
+ ]
811
+ }
812
+ themeIntent="primary"
813
+ themePosition="bottomLeft"
814
+ themeSize="medium"
815
+ />
816
+ <View
817
+ collapsable={false}
818
+ style={
819
+ [
820
+ {
821
+ "backgroundColor": "#401960",
822
+ "borderRadius": 999,
823
+ "height": 16,
824
+ "marginLeft": 8,
825
+ "opacity": 0.225,
826
+ "width": 16,
827
+ },
828
+ {},
829
+ ]
830
+ }
831
+ themeIntent="primary"
832
+ themePosition="bottomRight"
833
+ themeSize="medium"
834
+ />
835
+ </View>
797
836
  </View>
798
837
  </View>
799
838
  </View>
800
839
  </View>
801
840
  </View>
802
841
  </View>
803
- </View>
804
- </RCTScrollView>
842
+ </RCTScrollView>
843
+ <View
844
+ pointerEvents="box-none"
845
+ position="bottom"
846
+ style={
847
+ [
848
+ {
849
+ "bottom": 0,
850
+ "elevation": 9999,
851
+ "flexDirection": "column-reverse",
852
+ "left": 0,
853
+ "paddingHorizontal": 24,
854
+ "paddingVertical": 16,
855
+ "position": "absolute",
856
+ "right": 0,
857
+ "top": 0,
858
+ },
859
+ undefined,
860
+ ]
861
+ }
862
+ />
863
+ </View>
805
864
  `;
806
865
 
807
866
  exports[`OptionList renders correctly 1`] = `
808
- <RCTScrollView
809
- ListFooterComponent={null}
810
- data={
811
- [
812
- {
813
- "category": "A",
814
- "data": [
815
- {
816
- "text": "A1",
817
- "value": "a1",
818
- },
819
- ],
820
- },
821
- {
822
- "category": "B",
823
- "data": [
824
- {
825
- "text": "B1",
826
- "value": "b1",
827
- },
828
- {
829
- "text": "B2",
830
- "value": "b2",
831
- },
832
- ],
833
- },
834
- ]
835
- }
836
- getItem={[Function]}
837
- getItemCount={[Function]}
838
- keyExtractor={[Function]}
839
- onContentSizeChange={[Function]}
840
- onEndReached={[Function]}
841
- onEndReachedThreshold={0.1}
842
- onLayout={[Function]}
843
- onMomentumScrollBegin={[Function]}
844
- onMomentumScrollEnd={[Function]}
845
- onScroll={[Function]}
846
- onScrollBeginDrag={[Function]}
847
- onScrollEndDrag={[Function]}
848
- renderItem={[Function]}
849
- scrollEventThrottle={50}
850
- stickyHeaderIndices={
851
- [
852
- 0,
853
- 3,
854
- ]
855
- }
867
+ <View
856
868
  style={
857
- [
858
- {
859
- "paddingHorizontal": 12,
860
- },
861
- [
862
- {
863
- "paddingBottom": 16,
864
- },
865
- {},
866
- ],
867
- ]
869
+ {
870
+ "flex": 1,
871
+ }
868
872
  }
869
873
  >
870
- <View>
871
- <View
872
- onLayout={[Function]}
873
- style={null}
874
- >
875
- <View
876
- style={
877
- [
874
+ <RCTScrollView
875
+ ListFooterComponent={null}
876
+ data={
877
+ [
878
+ {
879
+ "category": "A",
880
+ "data": [
878
881
  {
879
- "alignContent": "center",
880
- "backgroundColor": "#f6f6f7",
881
- "display": "flex",
882
- "flexDirection": "row",
883
- "justifyContent": "space-between",
884
- "marginBottom": 16,
885
- "paddingHorizontal": 16,
886
- "paddingVertical": 8,
882
+ "text": "A1",
883
+ "value": "a1",
887
884
  },
885
+ ],
886
+ },
887
+ {
888
+ "category": "B",
889
+ "data": [
888
890
  {
889
- "marginBottom": 0,
891
+ "text": "B1",
892
+ "value": "b1",
890
893
  },
891
- ]
892
- }
893
- themeSize="medium"
894
+ {
895
+ "text": "B2",
896
+ "value": "b2",
897
+ },
898
+ ],
899
+ },
900
+ ]
901
+ }
902
+ getItem={[Function]}
903
+ getItemCount={[Function]}
904
+ keyExtractor={[Function]}
905
+ onContentSizeChange={[Function]}
906
+ onEndReached={[Function]}
907
+ onEndReachedThreshold={0.1}
908
+ onLayout={[Function]}
909
+ onMomentumScrollBegin={[Function]}
910
+ onMomentumScrollEnd={[Function]}
911
+ onScroll={[Function]}
912
+ onScrollBeginDrag={[Function]}
913
+ onScrollEndDrag={[Function]}
914
+ renderItem={[Function]}
915
+ scrollEventThrottle={50}
916
+ stickyHeaderIndices={
917
+ [
918
+ 0,
919
+ 3,
920
+ ]
921
+ }
922
+ style={
923
+ [
924
+ {
925
+ "paddingHorizontal": 12,
926
+ },
927
+ [
928
+ {
929
+ "paddingBottom": 16,
930
+ },
931
+ {},
932
+ ],
933
+ ]
934
+ }
935
+ >
936
+ <View>
937
+ <View
938
+ onFocusCapture={[Function]}
939
+ onLayout={[Function]}
940
+ style={null}
894
941
  >
895
942
  <View
896
943
  style={
897
944
  [
898
945
  {
899
- "alignItems": "center",
946
+ "alignContent": "center",
947
+ "backgroundColor": "#f6f6f7",
900
948
  "display": "flex",
901
949
  "flexDirection": "row",
950
+ "justifyContent": "space-between",
951
+ "marginBottom": 16,
952
+ "paddingHorizontal": 16,
953
+ "paddingVertical": 8,
902
954
  },
903
- undefined,
904
- ]
905
- }
906
- >
907
- <View
908
- style={
909
- [
910
- {
911
- "marginRight": 12,
912
- },
913
- undefined,
914
- ]
915
- }
916
- />
917
- <Text
918
- allowFontScaling={false}
919
- style={
920
- [
921
- {
922
- "color": "#001f23",
923
- "fontFamily": "BeVietnamPro-Regular",
924
- "fontSize": 14,
925
- "letterSpacing": 0.48,
926
- "lineHeight": 22,
927
- },
928
- undefined,
929
- ]
930
- }
931
- themeIntent="body"
932
- themeTypeface="neutral"
933
- themeVariant="small"
934
- >
935
- A
936
- </Text>
937
- </View>
938
- </View>
939
- </View>
940
- <View
941
- onLayout={[Function]}
942
- style={null}
943
- >
944
- <View>
945
- <View
946
- highlighted={false}
947
- section={
948
- {
949
- "category": "A",
950
- "data": [
951
- {
952
- "text": "A1",
953
- "value": "a1",
954
- },
955
- ],
956
- }
957
- }
958
- style={
959
- [
960
- {
961
- "marginTop": 12,
962
- },
963
- undefined,
964
- ]
965
- }
966
- trailingItem={
967
- {
968
- "text": "A1",
969
- "value": "a1",
970
- }
971
- }
972
- trailingSection={
973
- {
974
- "category": "B",
975
- "data": [
976
- {
977
- "text": "B1",
978
- "value": "b1",
979
- },
980
- {
981
- "text": "B2",
982
- "value": "b2",
983
- },
984
- ],
985
- }
986
- }
987
- />
988
- <View
989
- accessibilityState={
990
- {
991
- "disabled": false,
992
- }
993
- }
994
- accessible={true}
995
- focusable={true}
996
- onClick={[Function]}
997
- onResponderGrant={[Function]}
998
- onResponderMove={[Function]}
999
- onResponderRelease={[Function]}
1000
- onResponderTerminate={[Function]}
1001
- onResponderTerminationRequest={[Function]}
1002
- onStartShouldSetResponder={[Function]}
1003
- style={
1004
- [
1005
955
  {
1006
- "alignItems": "center",
1007
- "backgroundColor": "#ece8ef",
1008
- "borderRadius": 4,
1009
- "flexDirection": "row",
1010
- "opacity": 1,
1011
- "padding": 16,
956
+ "marginBottom": 0,
1012
957
  },
1013
- undefined,
1014
958
  ]
1015
959
  }
960
+ themeSize="medium"
1016
961
  >
1017
962
  <View
1018
963
  style={
1019
964
  [
1020
965
  {
1021
- "flex": 1,
966
+ "alignItems": "center",
967
+ "display": "flex",
968
+ "flexDirection": "row",
1022
969
  },
1023
970
  undefined,
1024
971
  ]
1025
972
  }
1026
973
  >
974
+ <View
975
+ style={
976
+ [
977
+ {
978
+ "marginRight": 12,
979
+ },
980
+ undefined,
981
+ ]
982
+ }
983
+ />
1027
984
  <Text
1028
985
  allowFontScaling={false}
1029
986
  style={
@@ -1031,343 +988,237 @@ exports[`OptionList renders correctly 1`] = `
1031
988
  {
1032
989
  "color": "#001f23",
1033
990
  "fontFamily": "BeVietnamPro-Regular",
1034
- "fontSize": 16,
991
+ "fontSize": 14,
1035
992
  "letterSpacing": 0.48,
1036
- "lineHeight": 24,
993
+ "lineHeight": 22,
1037
994
  },
1038
995
  undefined,
1039
996
  ]
1040
997
  }
1041
998
  themeIntent="body"
1042
999
  themeTypeface="neutral"
1043
- themeVariant="regular"
1000
+ themeVariant="small"
1044
1001
  >
1045
- A1
1002
+ A
1046
1003
  </Text>
1047
1004
  </View>
1048
1005
  </View>
1049
- <View
1050
- highlighted={false}
1051
- leadingItem={
1052
- {
1053
- "text": "A1",
1054
- "value": "a1",
1055
- }
1056
- }
1057
- section={
1058
- {
1059
- "category": "A",
1060
- "data": [
1061
- {
1062
- "text": "A1",
1063
- "value": "a1",
1064
- },
1065
- ],
1066
- }
1067
- }
1068
- style={
1069
- [
1070
- {
1071
- "marginTop": 12,
1072
- },
1073
- undefined,
1074
- ]
1075
- }
1076
- trailingSection={
1077
- {
1078
- "category": "B",
1079
- "data": [
1080
- {
1081
- "text": "B1",
1082
- "value": "b1",
1083
- },
1084
- {
1085
- "text": "B2",
1086
- "value": "b2",
1087
- },
1088
- ],
1089
- }
1090
- }
1091
- />
1092
1006
  </View>
1093
- </View>
1094
- <View
1095
- onLayout={[Function]}
1096
- style={null}
1097
- />
1098
- <View
1099
- onLayout={[Function]}
1100
- style={null}
1101
- >
1102
1007
  <View
1103
- style={
1104
- [
1105
- {
1106
- "alignContent": "center",
1107
- "backgroundColor": "#f6f6f7",
1108
- "display": "flex",
1109
- "flexDirection": "row",
1110
- "justifyContent": "space-between",
1111
- "marginBottom": 16,
1112
- "paddingHorizontal": 16,
1113
- "paddingVertical": 8,
1114
- },
1115
- {
1116
- "marginBottom": 0,
1117
- },
1118
- ]
1119
- }
1120
- themeSize="medium"
1008
+ onFocusCapture={[Function]}
1009
+ onLayout={[Function]}
1010
+ style={null}
1121
1011
  >
1122
- <View
1123
- style={
1124
- [
1125
- {
1126
- "alignItems": "center",
1127
- "display": "flex",
1128
- "flexDirection": "row",
1129
- },
1130
- undefined,
1131
- ]
1132
- }
1133
- >
1012
+ <View>
1134
1013
  <View
1135
- style={
1136
- [
1137
- {
1138
- "marginRight": 12,
1139
- },
1140
- undefined,
1141
- ]
1014
+ highlighted={false}
1015
+ section={
1016
+ {
1017
+ "category": "A",
1018
+ "data": [
1019
+ {
1020
+ "text": "A1",
1021
+ "value": "a1",
1022
+ },
1023
+ ],
1024
+ }
1142
1025
  }
1143
- />
1144
- <Text
1145
- allowFontScaling={false}
1146
1026
  style={
1147
1027
  [
1148
1028
  {
1149
- "color": "#001f23",
1150
- "fontFamily": "BeVietnamPro-Regular",
1151
- "fontSize": 14,
1152
- "letterSpacing": 0.48,
1153
- "lineHeight": 22,
1029
+ "marginTop": 12,
1154
1030
  },
1155
1031
  undefined,
1156
1032
  ]
1157
1033
  }
1158
- themeIntent="body"
1159
- themeTypeface="neutral"
1160
- themeVariant="small"
1161
- >
1162
- B
1163
- </Text>
1164
- </View>
1165
- </View>
1166
- </View>
1167
- <View
1168
- onLayout={[Function]}
1169
- style={null}
1170
- >
1171
- <View>
1172
- <View
1173
- highlighted={false}
1174
- leadingSection={
1175
- {
1176
- "category": "A",
1177
- "data": [
1178
- {
1179
- "text": "A1",
1180
- "value": "a1",
1181
- },
1182
- ],
1183
- }
1184
- }
1185
- section={
1186
- {
1187
- "category": "B",
1188
- "data": [
1189
- {
1190
- "text": "B1",
1191
- "value": "b1",
1192
- },
1193
- {
1194
- "text": "B2",
1195
- "value": "b2",
1196
- },
1197
- ],
1034
+ trailingItem={
1035
+ {
1036
+ "text": "A1",
1037
+ "value": "a1",
1038
+ }
1198
1039
  }
1199
- }
1200
- style={
1201
- [
1040
+ trailingSection={
1202
1041
  {
1203
- "marginTop": 12,
1204
- },
1205
- undefined,
1206
- ]
1207
- }
1208
- trailingItem={
1209
- {
1210
- "text": "B1",
1211
- "value": "b1",
1042
+ "category": "B",
1043
+ "data": [
1044
+ {
1045
+ "text": "B1",
1046
+ "value": "b1",
1047
+ },
1048
+ {
1049
+ "text": "B2",
1050
+ "value": "b2",
1051
+ },
1052
+ ],
1053
+ }
1212
1054
  }
1213
- }
1214
- />
1215
- <View
1216
- accessibilityState={
1217
- {
1218
- "disabled": false,
1055
+ />
1056
+ <View
1057
+ accessibilityState={
1058
+ {
1059
+ "disabled": false,
1060
+ }
1219
1061
  }
1220
- }
1221
- accessible={true}
1222
- focusable={true}
1223
- onClick={[Function]}
1224
- onResponderGrant={[Function]}
1225
- onResponderMove={[Function]}
1226
- onResponderRelease={[Function]}
1227
- onResponderTerminate={[Function]}
1228
- onResponderTerminationRequest={[Function]}
1229
- onStartShouldSetResponder={[Function]}
1230
- style={
1231
- [
1062
+ accessibilityValue={
1232
1063
  {
1233
- "alignItems": "center",
1234
- "backgroundColor": "#ffffff",
1235
- "borderRadius": 4,
1236
- "flexDirection": "row",
1237
- "opacity": 1,
1238
- "padding": 16,
1239
- },
1240
- undefined,
1241
- ]
1242
- }
1243
- >
1244
- <View
1064
+ "max": undefined,
1065
+ "min": undefined,
1066
+ "now": undefined,
1067
+ "text": undefined,
1068
+ }
1069
+ }
1070
+ accessible={true}
1071
+ focusable={true}
1072
+ onClick={[Function]}
1073
+ onResponderGrant={[Function]}
1074
+ onResponderMove={[Function]}
1075
+ onResponderRelease={[Function]}
1076
+ onResponderTerminate={[Function]}
1077
+ onResponderTerminationRequest={[Function]}
1078
+ onStartShouldSetResponder={[Function]}
1245
1079
  style={
1246
1080
  [
1247
1081
  {
1248
- "flex": 1,
1082
+ "alignItems": "center",
1083
+ "backgroundColor": "#ece8ef",
1084
+ "borderRadius": 4,
1085
+ "flexDirection": "row",
1086
+ "opacity": 1,
1087
+ "padding": 16,
1249
1088
  },
1250
1089
  undefined,
1251
1090
  ]
1252
1091
  }
1253
1092
  >
1254
- <Text
1255
- allowFontScaling={false}
1093
+ <View
1256
1094
  style={
1257
1095
  [
1258
1096
  {
1259
- "color": "#001f23",
1260
- "fontFamily": "BeVietnamPro-Regular",
1261
- "fontSize": 16,
1262
- "letterSpacing": 0.48,
1263
- "lineHeight": 24,
1097
+ "flex": 1,
1264
1098
  },
1265
1099
  undefined,
1266
1100
  ]
1267
1101
  }
1268
- themeIntent="body"
1269
- themeTypeface="neutral"
1270
- themeVariant="regular"
1271
1102
  >
1272
- B1
1273
- </Text>
1103
+ <Text
1104
+ allowFontScaling={false}
1105
+ style={
1106
+ [
1107
+ {
1108
+ "color": "#001f23",
1109
+ "fontFamily": "BeVietnamPro-Regular",
1110
+ "fontSize": 16,
1111
+ "letterSpacing": 0.48,
1112
+ "lineHeight": 24,
1113
+ },
1114
+ undefined,
1115
+ ]
1116
+ }
1117
+ themeIntent="body"
1118
+ themeTypeface="neutral"
1119
+ themeVariant="regular"
1120
+ >
1121
+ A1
1122
+ </Text>
1123
+ </View>
1274
1124
  </View>
1275
- </View>
1276
- <View
1277
- highlighted={false}
1278
- leadingItem={
1279
- {
1280
- "text": "B1",
1281
- "value": "b1",
1125
+ <View
1126
+ highlighted={false}
1127
+ leadingItem={
1128
+ {
1129
+ "text": "A1",
1130
+ "value": "a1",
1131
+ }
1282
1132
  }
1283
- }
1284
- leadingSection={
1285
- {
1286
- "category": "A",
1287
- "data": [
1288
- {
1289
- "text": "A1",
1290
- "value": "a1",
1291
- },
1292
- ],
1133
+ section={
1134
+ {
1135
+ "category": "A",
1136
+ "data": [
1137
+ {
1138
+ "text": "A1",
1139
+ "value": "a1",
1140
+ },
1141
+ ],
1142
+ }
1293
1143
  }
1294
- }
1295
- section={
1296
- {
1297
- "category": "B",
1298
- "data": [
1299
- {
1300
- "text": "B1",
1301
- "value": "b1",
1302
- },
1144
+ style={
1145
+ [
1303
1146
  {
1304
- "text": "B2",
1305
- "value": "b2",
1147
+ "marginTop": 12,
1306
1148
  },
1307
- ],
1149
+ undefined,
1150
+ ]
1308
1151
  }
1309
- }
1310
- style={
1311
- [
1152
+ trailingSection={
1312
1153
  {
1313
- "marginTop": 4,
1314
- },
1315
- undefined,
1316
- ]
1317
- }
1318
- trailingItem={
1319
- {
1320
- "text": "B2",
1321
- "value": "b2",
1154
+ "category": "B",
1155
+ "data": [
1156
+ {
1157
+ "text": "B1",
1158
+ "value": "b1",
1159
+ },
1160
+ {
1161
+ "text": "B2",
1162
+ "value": "b2",
1163
+ },
1164
+ ],
1165
+ }
1322
1166
  }
1323
- }
1324
- />
1167
+ />
1168
+ </View>
1325
1169
  </View>
1326
- </View>
1327
- <View
1328
- onLayout={[Function]}
1329
- style={null}
1330
- >
1331
- <View>
1170
+ <View
1171
+ onFocusCapture={[Function]}
1172
+ onLayout={[Function]}
1173
+ style={null}
1174
+ />
1175
+ <View
1176
+ onFocusCapture={[Function]}
1177
+ onLayout={[Function]}
1178
+ style={null}
1179
+ >
1332
1180
  <View
1333
- accessibilityState={
1334
- {
1335
- "disabled": false,
1336
- }
1337
- }
1338
- accessible={true}
1339
- focusable={true}
1340
- onClick={[Function]}
1341
- onResponderGrant={[Function]}
1342
- onResponderMove={[Function]}
1343
- onResponderRelease={[Function]}
1344
- onResponderTerminate={[Function]}
1345
- onResponderTerminationRequest={[Function]}
1346
- onStartShouldSetResponder={[Function]}
1347
1181
  style={
1348
1182
  [
1349
1183
  {
1350
- "alignItems": "center",
1351
- "backgroundColor": "#ffffff",
1352
- "borderRadius": 4,
1184
+ "alignContent": "center",
1185
+ "backgroundColor": "#f6f6f7",
1186
+ "display": "flex",
1353
1187
  "flexDirection": "row",
1354
- "opacity": 1,
1355
- "padding": 16,
1188
+ "justifyContent": "space-between",
1189
+ "marginBottom": 16,
1190
+ "paddingHorizontal": 16,
1191
+ "paddingVertical": 8,
1192
+ },
1193
+ {
1194
+ "marginBottom": 0,
1356
1195
  },
1357
- undefined,
1358
1196
  ]
1359
1197
  }
1198
+ themeSize="medium"
1360
1199
  >
1361
1200
  <View
1362
1201
  style={
1363
1202
  [
1364
1203
  {
1365
- "flex": 1,
1204
+ "alignItems": "center",
1205
+ "display": "flex",
1206
+ "flexDirection": "row",
1366
1207
  },
1367
1208
  undefined,
1368
1209
  ]
1369
1210
  }
1370
1211
  >
1212
+ <View
1213
+ style={
1214
+ [
1215
+ {
1216
+ "marginRight": 12,
1217
+ },
1218
+ undefined,
1219
+ ]
1220
+ }
1221
+ />
1371
1222
  <Text
1372
1223
  allowFontScaling={false}
1373
1224
  style={
@@ -1375,294 +1226,697 @@ exports[`OptionList renders correctly 1`] = `
1375
1226
  {
1376
1227
  "color": "#001f23",
1377
1228
  "fontFamily": "BeVietnamPro-Regular",
1378
- "fontSize": 16,
1229
+ "fontSize": 14,
1379
1230
  "letterSpacing": 0.48,
1380
- "lineHeight": 24,
1231
+ "lineHeight": 22,
1381
1232
  },
1382
1233
  undefined,
1383
1234
  ]
1384
1235
  }
1385
1236
  themeIntent="body"
1386
1237
  themeTypeface="neutral"
1387
- themeVariant="regular"
1238
+ themeVariant="small"
1388
1239
  >
1389
- B2
1240
+ B
1390
1241
  </Text>
1391
1242
  </View>
1392
1243
  </View>
1393
- <View
1394
- highlighted={false}
1395
- leadingItem={
1396
- {
1397
- "text": "B2",
1398
- "value": "b2",
1244
+ </View>
1245
+ <View
1246
+ onFocusCapture={[Function]}
1247
+ onLayout={[Function]}
1248
+ style={null}
1249
+ >
1250
+ <View>
1251
+ <View
1252
+ highlighted={false}
1253
+ leadingSection={
1254
+ {
1255
+ "category": "A",
1256
+ "data": [
1257
+ {
1258
+ "text": "A1",
1259
+ "value": "a1",
1260
+ },
1261
+ ],
1262
+ }
1399
1263
  }
1400
- }
1401
- leadingSection={
1402
- {
1403
- "category": "A",
1404
- "data": [
1264
+ section={
1265
+ {
1266
+ "category": "B",
1267
+ "data": [
1268
+ {
1269
+ "text": "B1",
1270
+ "value": "b1",
1271
+ },
1272
+ {
1273
+ "text": "B2",
1274
+ "value": "b2",
1275
+ },
1276
+ ],
1277
+ }
1278
+ }
1279
+ style={
1280
+ [
1405
1281
  {
1406
- "text": "A1",
1407
- "value": "a1",
1282
+ "marginTop": 12,
1408
1283
  },
1409
- ],
1284
+ undefined,
1285
+ ]
1410
1286
  }
1411
- }
1412
- section={
1413
- {
1414
- "category": "B",
1415
- "data": [
1287
+ trailingItem={
1288
+ {
1289
+ "text": "B1",
1290
+ "value": "b1",
1291
+ }
1292
+ }
1293
+ />
1294
+ <View
1295
+ accessibilityState={
1296
+ {
1297
+ "disabled": false,
1298
+ }
1299
+ }
1300
+ accessibilityValue={
1301
+ {
1302
+ "max": undefined,
1303
+ "min": undefined,
1304
+ "now": undefined,
1305
+ "text": undefined,
1306
+ }
1307
+ }
1308
+ accessible={true}
1309
+ focusable={true}
1310
+ onClick={[Function]}
1311
+ onResponderGrant={[Function]}
1312
+ onResponderMove={[Function]}
1313
+ onResponderRelease={[Function]}
1314
+ onResponderTerminate={[Function]}
1315
+ onResponderTerminationRequest={[Function]}
1316
+ onStartShouldSetResponder={[Function]}
1317
+ style={
1318
+ [
1416
1319
  {
1417
- "text": "B1",
1418
- "value": "b1",
1320
+ "alignItems": "center",
1321
+ "backgroundColor": "#ffffff",
1322
+ "borderRadius": 4,
1323
+ "flexDirection": "row",
1324
+ "opacity": 1,
1325
+ "padding": 16,
1419
1326
  },
1327
+ undefined,
1328
+ ]
1329
+ }
1330
+ >
1331
+ <View
1332
+ style={
1333
+ [
1334
+ {
1335
+ "flex": 1,
1336
+ },
1337
+ undefined,
1338
+ ]
1339
+ }
1340
+ >
1341
+ <Text
1342
+ allowFontScaling={false}
1343
+ style={
1344
+ [
1345
+ {
1346
+ "color": "#001f23",
1347
+ "fontFamily": "BeVietnamPro-Regular",
1348
+ "fontSize": 16,
1349
+ "letterSpacing": 0.48,
1350
+ "lineHeight": 24,
1351
+ },
1352
+ undefined,
1353
+ ]
1354
+ }
1355
+ themeIntent="body"
1356
+ themeTypeface="neutral"
1357
+ themeVariant="regular"
1358
+ >
1359
+ B1
1360
+ </Text>
1361
+ </View>
1362
+ </View>
1363
+ <View
1364
+ highlighted={false}
1365
+ leadingItem={
1366
+ {
1367
+ "text": "B1",
1368
+ "value": "b1",
1369
+ }
1370
+ }
1371
+ leadingSection={
1372
+ {
1373
+ "category": "A",
1374
+ "data": [
1375
+ {
1376
+ "text": "A1",
1377
+ "value": "a1",
1378
+ },
1379
+ ],
1380
+ }
1381
+ }
1382
+ section={
1383
+ {
1384
+ "category": "B",
1385
+ "data": [
1386
+ {
1387
+ "text": "B1",
1388
+ "value": "b1",
1389
+ },
1390
+ {
1391
+ "text": "B2",
1392
+ "value": "b2",
1393
+ },
1394
+ ],
1395
+ }
1396
+ }
1397
+ style={
1398
+ [
1420
1399
  {
1421
- "text": "B2",
1422
- "value": "b2",
1400
+ "marginTop": 4,
1423
1401
  },
1424
- ],
1402
+ undefined,
1403
+ ]
1425
1404
  }
1426
- }
1427
- style={
1428
- [
1405
+ trailingItem={
1429
1406
  {
1430
- "marginTop": 12,
1431
- },
1432
- undefined,
1433
- ]
1434
- }
1435
- />
1407
+ "text": "B2",
1408
+ "value": "b2",
1409
+ }
1410
+ }
1411
+ />
1412
+ </View>
1413
+ </View>
1414
+ <View
1415
+ onFocusCapture={[Function]}
1416
+ onLayout={[Function]}
1417
+ style={null}
1418
+ >
1419
+ <View>
1420
+ <View
1421
+ accessibilityState={
1422
+ {
1423
+ "disabled": false,
1424
+ }
1425
+ }
1426
+ accessibilityValue={
1427
+ {
1428
+ "max": undefined,
1429
+ "min": undefined,
1430
+ "now": undefined,
1431
+ "text": undefined,
1432
+ }
1433
+ }
1434
+ accessible={true}
1435
+ focusable={true}
1436
+ onClick={[Function]}
1437
+ onResponderGrant={[Function]}
1438
+ onResponderMove={[Function]}
1439
+ onResponderRelease={[Function]}
1440
+ onResponderTerminate={[Function]}
1441
+ onResponderTerminationRequest={[Function]}
1442
+ onStartShouldSetResponder={[Function]}
1443
+ style={
1444
+ [
1445
+ {
1446
+ "alignItems": "center",
1447
+ "backgroundColor": "#ffffff",
1448
+ "borderRadius": 4,
1449
+ "flexDirection": "row",
1450
+ "opacity": 1,
1451
+ "padding": 16,
1452
+ },
1453
+ undefined,
1454
+ ]
1455
+ }
1456
+ >
1457
+ <View
1458
+ style={
1459
+ [
1460
+ {
1461
+ "flex": 1,
1462
+ },
1463
+ undefined,
1464
+ ]
1465
+ }
1466
+ >
1467
+ <Text
1468
+ allowFontScaling={false}
1469
+ style={
1470
+ [
1471
+ {
1472
+ "color": "#001f23",
1473
+ "fontFamily": "BeVietnamPro-Regular",
1474
+ "fontSize": 16,
1475
+ "letterSpacing": 0.48,
1476
+ "lineHeight": 24,
1477
+ },
1478
+ undefined,
1479
+ ]
1480
+ }
1481
+ themeIntent="body"
1482
+ themeTypeface="neutral"
1483
+ themeVariant="regular"
1484
+ >
1485
+ B2
1486
+ </Text>
1487
+ </View>
1488
+ </View>
1489
+ <View
1490
+ highlighted={false}
1491
+ leadingItem={
1492
+ {
1493
+ "text": "B2",
1494
+ "value": "b2",
1495
+ }
1496
+ }
1497
+ leadingSection={
1498
+ {
1499
+ "category": "A",
1500
+ "data": [
1501
+ {
1502
+ "text": "A1",
1503
+ "value": "a1",
1504
+ },
1505
+ ],
1506
+ }
1507
+ }
1508
+ section={
1509
+ {
1510
+ "category": "B",
1511
+ "data": [
1512
+ {
1513
+ "text": "B1",
1514
+ "value": "b1",
1515
+ },
1516
+ {
1517
+ "text": "B2",
1518
+ "value": "b2",
1519
+ },
1520
+ ],
1521
+ }
1522
+ }
1523
+ style={
1524
+ [
1525
+ {
1526
+ "marginTop": 12,
1527
+ },
1528
+ undefined,
1529
+ ]
1530
+ }
1531
+ />
1532
+ </View>
1436
1533
  </View>
1534
+ <View
1535
+ onFocusCapture={[Function]}
1536
+ onLayout={[Function]}
1537
+ style={null}
1538
+ />
1437
1539
  </View>
1438
- <View
1439
- onLayout={[Function]}
1440
- style={null}
1441
- />
1442
- </View>
1443
- </RCTScrollView>
1540
+ </RCTScrollView>
1541
+ <View
1542
+ pointerEvents="box-none"
1543
+ position="bottom"
1544
+ style={
1545
+ [
1546
+ {
1547
+ "bottom": 0,
1548
+ "elevation": 9999,
1549
+ "flexDirection": "column-reverse",
1550
+ "left": 0,
1551
+ "paddingHorizontal": 24,
1552
+ "paddingVertical": 16,
1553
+ "position": "absolute",
1554
+ "right": 0,
1555
+ "top": 0,
1556
+ },
1557
+ undefined,
1558
+ ]
1559
+ }
1560
+ />
1561
+ </View>
1444
1562
  `;
1445
1563
 
1446
1564
  exports[`OptionList trigger onPress correctly on select new value 1`] = `
1447
- <RCTScrollView
1448
- ListFooterComponent={null}
1449
- data={
1450
- [
1451
- {
1452
- "category": "A",
1453
- "data": [
1454
- {
1455
- "text": "A1",
1456
- "value": "a1",
1457
- },
1458
- ],
1459
- },
1460
- {
1461
- "category": "B",
1462
- "data": [
1463
- {
1464
- "text": "B1",
1465
- "value": "b1",
1466
- },
1467
- {
1468
- "text": "B2",
1469
- "value": "b2",
1470
- },
1471
- ],
1472
- },
1473
- ]
1474
- }
1475
- getItem={[Function]}
1476
- getItemCount={[Function]}
1477
- keyExtractor={[Function]}
1478
- onContentSizeChange={[Function]}
1479
- onEndReached={[Function]}
1480
- onEndReachedThreshold={0.1}
1481
- onLayout={[Function]}
1482
- onMomentumScrollBegin={[Function]}
1483
- onMomentumScrollEnd={[Function]}
1484
- onScroll={[Function]}
1485
- onScrollBeginDrag={[Function]}
1486
- onScrollEndDrag={[Function]}
1487
- renderItem={[Function]}
1488
- scrollEventThrottle={50}
1489
- stickyHeaderIndices={
1490
- [
1491
- 0,
1492
- 3,
1493
- ]
1494
- }
1565
+ <View
1495
1566
  style={
1496
- [
1497
- {
1498
- "paddingHorizontal": 12,
1499
- },
1567
+ {
1568
+ "flex": 1,
1569
+ }
1570
+ }
1571
+ >
1572
+ <RCTScrollView
1573
+ ListFooterComponent={null}
1574
+ data={
1500
1575
  [
1501
1576
  {
1502
- "paddingBottom": 16,
1577
+ "category": "A",
1578
+ "data": [
1579
+ {
1580
+ "text": "A1",
1581
+ "value": "a1",
1582
+ },
1583
+ ],
1503
1584
  },
1504
- {},
1505
- ],
1506
- ]
1507
- }
1508
- >
1509
- <View>
1510
- <View
1511
- onLayout={[Function]}
1512
- style={null}
1513
- >
1514
- <View
1515
- style={
1516
- [
1585
+ {
1586
+ "category": "B",
1587
+ "data": [
1517
1588
  {
1518
- "alignContent": "center",
1519
- "backgroundColor": "#f6f6f7",
1520
- "display": "flex",
1521
- "flexDirection": "row",
1522
- "justifyContent": "space-between",
1523
- "marginBottom": 16,
1524
- "paddingHorizontal": 16,
1525
- "paddingVertical": 8,
1589
+ "text": "B1",
1590
+ "value": "b1",
1526
1591
  },
1527
1592
  {
1528
- "marginBottom": 0,
1593
+ "text": "B2",
1594
+ "value": "b2",
1529
1595
  },
1530
- ]
1531
- }
1532
- themeSize="medium"
1596
+ ],
1597
+ },
1598
+ ]
1599
+ }
1600
+ getItem={[Function]}
1601
+ getItemCount={[Function]}
1602
+ keyExtractor={[Function]}
1603
+ onContentSizeChange={[Function]}
1604
+ onEndReached={[Function]}
1605
+ onEndReachedThreshold={0.1}
1606
+ onLayout={[Function]}
1607
+ onMomentumScrollBegin={[Function]}
1608
+ onMomentumScrollEnd={[Function]}
1609
+ onScroll={[Function]}
1610
+ onScrollBeginDrag={[Function]}
1611
+ onScrollEndDrag={[Function]}
1612
+ renderItem={[Function]}
1613
+ scrollEventThrottle={50}
1614
+ stickyHeaderIndices={
1615
+ [
1616
+ 0,
1617
+ 3,
1618
+ ]
1619
+ }
1620
+ style={
1621
+ [
1622
+ {
1623
+ "paddingHorizontal": 12,
1624
+ },
1625
+ [
1626
+ {
1627
+ "paddingBottom": 16,
1628
+ },
1629
+ {},
1630
+ ],
1631
+ ]
1632
+ }
1633
+ >
1634
+ <View>
1635
+ <View
1636
+ onFocusCapture={[Function]}
1637
+ onLayout={[Function]}
1638
+ style={null}
1533
1639
  >
1534
1640
  <View
1535
1641
  style={
1536
1642
  [
1537
1643
  {
1538
- "alignItems": "center",
1644
+ "alignContent": "center",
1645
+ "backgroundColor": "#f6f6f7",
1539
1646
  "display": "flex",
1540
1647
  "flexDirection": "row",
1648
+ "justifyContent": "space-between",
1649
+ "marginBottom": 16,
1650
+ "paddingHorizontal": 16,
1651
+ "paddingVertical": 8,
1652
+ },
1653
+ {
1654
+ "marginBottom": 0,
1541
1655
  },
1542
- undefined,
1543
1656
  ]
1544
1657
  }
1658
+ themeSize="medium"
1545
1659
  >
1546
1660
  <View
1547
1661
  style={
1548
1662
  [
1549
1663
  {
1550
- "marginRight": 12,
1664
+ "alignItems": "center",
1665
+ "display": "flex",
1666
+ "flexDirection": "row",
1551
1667
  },
1552
1668
  undefined,
1553
1669
  ]
1554
1670
  }
1555
- />
1556
- <Text
1557
- allowFontScaling={false}
1671
+ >
1672
+ <View
1673
+ style={
1674
+ [
1675
+ {
1676
+ "marginRight": 12,
1677
+ },
1678
+ undefined,
1679
+ ]
1680
+ }
1681
+ />
1682
+ <Text
1683
+ allowFontScaling={false}
1684
+ style={
1685
+ [
1686
+ {
1687
+ "color": "#001f23",
1688
+ "fontFamily": "BeVietnamPro-Regular",
1689
+ "fontSize": 14,
1690
+ "letterSpacing": 0.48,
1691
+ "lineHeight": 22,
1692
+ },
1693
+ undefined,
1694
+ ]
1695
+ }
1696
+ themeIntent="body"
1697
+ themeTypeface="neutral"
1698
+ themeVariant="small"
1699
+ >
1700
+ A
1701
+ </Text>
1702
+ </View>
1703
+ </View>
1704
+ </View>
1705
+ <View
1706
+ onFocusCapture={[Function]}
1707
+ onLayout={[Function]}
1708
+ style={null}
1709
+ >
1710
+ <View>
1711
+ <View
1712
+ highlighted={false}
1713
+ section={
1714
+ {
1715
+ "category": "A",
1716
+ "data": [
1717
+ {
1718
+ "text": "A1",
1719
+ "value": "a1",
1720
+ },
1721
+ ],
1722
+ }
1723
+ }
1558
1724
  style={
1559
1725
  [
1560
1726
  {
1561
- "color": "#001f23",
1562
- "fontFamily": "BeVietnamPro-Regular",
1563
- "fontSize": 14,
1564
- "letterSpacing": 0.48,
1565
- "lineHeight": 22,
1727
+ "marginTop": 12,
1566
1728
  },
1567
1729
  undefined,
1568
1730
  ]
1569
1731
  }
1570
- themeIntent="body"
1571
- themeTypeface="neutral"
1572
- themeVariant="small"
1573
- >
1574
- A
1575
- </Text>
1576
- </View>
1577
- </View>
1578
- </View>
1579
- <View
1580
- onLayout={[Function]}
1581
- style={null}
1582
- >
1583
- <View>
1584
- <View
1585
- highlighted={false}
1586
- section={
1587
- {
1588
- "category": "A",
1589
- "data": [
1590
- {
1591
- "text": "A1",
1592
- "value": "a1",
1593
- },
1594
- ],
1732
+ trailingItem={
1733
+ {
1734
+ "text": "A1",
1735
+ "value": "a1",
1736
+ }
1595
1737
  }
1596
- }
1597
- style={
1598
- [
1738
+ trailingSection={
1599
1739
  {
1600
- "marginTop": 12,
1601
- },
1602
- undefined,
1603
- ]
1604
- }
1605
- trailingItem={
1606
- {
1607
- "text": "A1",
1608
- "value": "a1",
1740
+ "category": "B",
1741
+ "data": [
1742
+ {
1743
+ "text": "B1",
1744
+ "value": "b1",
1745
+ },
1746
+ {
1747
+ "text": "B2",
1748
+ "value": "b2",
1749
+ },
1750
+ ],
1751
+ }
1609
1752
  }
1610
- }
1611
- trailingSection={
1612
- {
1613
- "category": "B",
1614
- "data": [
1753
+ />
1754
+ <View
1755
+ accessibilityState={
1756
+ {
1757
+ "disabled": false,
1758
+ }
1759
+ }
1760
+ accessibilityValue={
1761
+ {
1762
+ "max": undefined,
1763
+ "min": undefined,
1764
+ "now": undefined,
1765
+ "text": undefined,
1766
+ }
1767
+ }
1768
+ accessible={true}
1769
+ focusable={true}
1770
+ onClick={[Function]}
1771
+ onResponderGrant={[Function]}
1772
+ onResponderMove={[Function]}
1773
+ onResponderRelease={[Function]}
1774
+ onResponderTerminate={[Function]}
1775
+ onResponderTerminationRequest={[Function]}
1776
+ onStartShouldSetResponder={[Function]}
1777
+ style={
1778
+ [
1615
1779
  {
1616
- "text": "B1",
1617
- "value": "b1",
1780
+ "alignItems": "center",
1781
+ "backgroundColor": "#ece8ef",
1782
+ "borderRadius": 4,
1783
+ "flexDirection": "row",
1784
+ "opacity": 1,
1785
+ "padding": 16,
1618
1786
  },
1787
+ undefined,
1788
+ ]
1789
+ }
1790
+ >
1791
+ <View
1792
+ style={
1793
+ [
1794
+ {
1795
+ "flex": 1,
1796
+ },
1797
+ undefined,
1798
+ ]
1799
+ }
1800
+ >
1801
+ <Text
1802
+ allowFontScaling={false}
1803
+ style={
1804
+ [
1805
+ {
1806
+ "color": "#001f23",
1807
+ "fontFamily": "BeVietnamPro-Regular",
1808
+ "fontSize": 16,
1809
+ "letterSpacing": 0.48,
1810
+ "lineHeight": 24,
1811
+ },
1812
+ undefined,
1813
+ ]
1814
+ }
1815
+ themeIntent="body"
1816
+ themeTypeface="neutral"
1817
+ themeVariant="regular"
1818
+ >
1819
+ A1
1820
+ </Text>
1821
+ </View>
1822
+ </View>
1823
+ <View
1824
+ highlighted={false}
1825
+ leadingItem={
1826
+ {
1827
+ "text": "A1",
1828
+ "value": "a1",
1829
+ }
1830
+ }
1831
+ section={
1832
+ {
1833
+ "category": "A",
1834
+ "data": [
1835
+ {
1836
+ "text": "A1",
1837
+ "value": "a1",
1838
+ },
1839
+ ],
1840
+ }
1841
+ }
1842
+ style={
1843
+ [
1619
1844
  {
1620
- "text": "B2",
1621
- "value": "b2",
1845
+ "marginTop": 12,
1622
1846
  },
1623
- ],
1847
+ undefined,
1848
+ ]
1624
1849
  }
1625
- }
1626
- />
1627
- <View
1628
- accessibilityState={
1629
- {
1630
- "disabled": false,
1850
+ trailingSection={
1851
+ {
1852
+ "category": "B",
1853
+ "data": [
1854
+ {
1855
+ "text": "B1",
1856
+ "value": "b1",
1857
+ },
1858
+ {
1859
+ "text": "B2",
1860
+ "value": "b2",
1861
+ },
1862
+ ],
1863
+ }
1631
1864
  }
1632
- }
1633
- accessible={true}
1634
- focusable={true}
1635
- onClick={[Function]}
1636
- onResponderGrant={[Function]}
1637
- onResponderMove={[Function]}
1638
- onResponderRelease={[Function]}
1639
- onResponderTerminate={[Function]}
1640
- onResponderTerminationRequest={[Function]}
1641
- onStartShouldSetResponder={[Function]}
1865
+ />
1866
+ </View>
1867
+ </View>
1868
+ <View
1869
+ onFocusCapture={[Function]}
1870
+ onLayout={[Function]}
1871
+ style={null}
1872
+ />
1873
+ <View
1874
+ onFocusCapture={[Function]}
1875
+ onLayout={[Function]}
1876
+ style={null}
1877
+ >
1878
+ <View
1642
1879
  style={
1643
1880
  [
1644
1881
  {
1645
- "alignItems": "center",
1646
- "backgroundColor": "#ece8ef",
1647
- "borderRadius": 4,
1882
+ "alignContent": "center",
1883
+ "backgroundColor": "#f6f6f7",
1884
+ "display": "flex",
1648
1885
  "flexDirection": "row",
1649
- "opacity": 1,
1650
- "padding": 16,
1886
+ "justifyContent": "space-between",
1887
+ "marginBottom": 16,
1888
+ "paddingHorizontal": 16,
1889
+ "paddingVertical": 8,
1890
+ },
1891
+ {
1892
+ "marginBottom": 0,
1651
1893
  },
1652
- undefined,
1653
1894
  ]
1654
1895
  }
1896
+ themeSize="medium"
1655
1897
  >
1656
1898
  <View
1657
1899
  style={
1658
1900
  [
1659
1901
  {
1660
- "flex": 1,
1902
+ "alignItems": "center",
1903
+ "display": "flex",
1904
+ "flexDirection": "row",
1661
1905
  },
1662
1906
  undefined,
1663
1907
  ]
1664
1908
  }
1665
1909
  >
1910
+ <View
1911
+ style={
1912
+ [
1913
+ {
1914
+ "marginRight": 12,
1915
+ },
1916
+ undefined,
1917
+ ]
1918
+ }
1919
+ />
1666
1920
  <Text
1667
1921
  allowFontScaling={false}
1668
1922
  style={
@@ -1670,226 +1924,459 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1670
1924
  {
1671
1925
  "color": "#001f23",
1672
1926
  "fontFamily": "BeVietnamPro-Regular",
1673
- "fontSize": 16,
1927
+ "fontSize": 14,
1674
1928
  "letterSpacing": 0.48,
1675
- "lineHeight": 24,
1929
+ "lineHeight": 22,
1676
1930
  },
1677
1931
  undefined,
1678
1932
  ]
1679
1933
  }
1680
1934
  themeIntent="body"
1681
1935
  themeTypeface="neutral"
1682
- themeVariant="regular"
1936
+ themeVariant="small"
1683
1937
  >
1684
- A1
1938
+ B
1685
1939
  </Text>
1686
1940
  </View>
1687
1941
  </View>
1688
- <View
1689
- highlighted={false}
1690
- leadingItem={
1691
- {
1692
- "text": "A1",
1693
- "value": "a1",
1942
+ </View>
1943
+ <View
1944
+ onFocusCapture={[Function]}
1945
+ onLayout={[Function]}
1946
+ style={null}
1947
+ >
1948
+ <View>
1949
+ <View
1950
+ highlighted={false}
1951
+ leadingSection={
1952
+ {
1953
+ "category": "A",
1954
+ "data": [
1955
+ {
1956
+ "text": "A1",
1957
+ "value": "a1",
1958
+ },
1959
+ ],
1960
+ }
1694
1961
  }
1695
- }
1696
- section={
1697
- {
1698
- "category": "A",
1699
- "data": [
1962
+ section={
1963
+ {
1964
+ "category": "B",
1965
+ "data": [
1966
+ {
1967
+ "text": "B1",
1968
+ "value": "b1",
1969
+ },
1970
+ {
1971
+ "text": "B2",
1972
+ "value": "b2",
1973
+ },
1974
+ ],
1975
+ }
1976
+ }
1977
+ style={
1978
+ [
1700
1979
  {
1701
- "text": "A1",
1702
- "value": "a1",
1980
+ "marginTop": 12,
1703
1981
  },
1704
- ],
1982
+ undefined,
1983
+ ]
1705
1984
  }
1706
- }
1707
- style={
1708
- [
1985
+ trailingItem={
1709
1986
  {
1710
- "marginTop": 12,
1711
- },
1712
- undefined,
1713
- ]
1714
- }
1715
- trailingSection={
1716
- {
1717
- "category": "B",
1718
- "data": [
1987
+ "text": "B1",
1988
+ "value": "b1",
1989
+ }
1990
+ }
1991
+ />
1992
+ <View
1993
+ accessibilityState={
1994
+ {
1995
+ "disabled": false,
1996
+ }
1997
+ }
1998
+ accessibilityValue={
1999
+ {
2000
+ "max": undefined,
2001
+ "min": undefined,
2002
+ "now": undefined,
2003
+ "text": undefined,
2004
+ }
2005
+ }
2006
+ accessible={true}
2007
+ focusable={true}
2008
+ onClick={[Function]}
2009
+ onResponderGrant={[Function]}
2010
+ onResponderMove={[Function]}
2011
+ onResponderRelease={[Function]}
2012
+ onResponderTerminate={[Function]}
2013
+ onResponderTerminationRequest={[Function]}
2014
+ onStartShouldSetResponder={[Function]}
2015
+ style={
2016
+ [
1719
2017
  {
1720
- "text": "B1",
1721
- "value": "b1",
2018
+ "alignItems": "center",
2019
+ "backgroundColor": "#ffffff",
2020
+ "borderRadius": 4,
2021
+ "flexDirection": "row",
2022
+ "opacity": 1,
2023
+ "padding": 16,
1722
2024
  },
2025
+ undefined,
2026
+ ]
2027
+ }
2028
+ >
2029
+ <View
2030
+ style={
2031
+ [
2032
+ {
2033
+ "flex": 1,
2034
+ },
2035
+ undefined,
2036
+ ]
2037
+ }
2038
+ >
2039
+ <Text
2040
+ allowFontScaling={false}
2041
+ style={
2042
+ [
2043
+ {
2044
+ "color": "#001f23",
2045
+ "fontFamily": "BeVietnamPro-Regular",
2046
+ "fontSize": 16,
2047
+ "letterSpacing": 0.48,
2048
+ "lineHeight": 24,
2049
+ },
2050
+ undefined,
2051
+ ]
2052
+ }
2053
+ themeIntent="body"
2054
+ themeTypeface="neutral"
2055
+ themeVariant="regular"
2056
+ >
2057
+ B1
2058
+ </Text>
2059
+ </View>
2060
+ </View>
2061
+ <View
2062
+ highlighted={false}
2063
+ leadingItem={
2064
+ {
2065
+ "text": "B1",
2066
+ "value": "b1",
2067
+ }
2068
+ }
2069
+ leadingSection={
2070
+ {
2071
+ "category": "A",
2072
+ "data": [
2073
+ {
2074
+ "text": "A1",
2075
+ "value": "a1",
2076
+ },
2077
+ ],
2078
+ }
2079
+ }
2080
+ section={
2081
+ {
2082
+ "category": "B",
2083
+ "data": [
2084
+ {
2085
+ "text": "B1",
2086
+ "value": "b1",
2087
+ },
2088
+ {
2089
+ "text": "B2",
2090
+ "value": "b2",
2091
+ },
2092
+ ],
2093
+ }
2094
+ }
2095
+ style={
2096
+ [
1723
2097
  {
1724
- "text": "B2",
1725
- "value": "b2",
2098
+ "marginTop": 4,
1726
2099
  },
1727
- ],
2100
+ undefined,
2101
+ ]
1728
2102
  }
1729
- }
1730
- />
2103
+ trailingItem={
2104
+ {
2105
+ "text": "B2",
2106
+ "value": "b2",
2107
+ }
2108
+ }
2109
+ />
2110
+ </View>
1731
2111
  </View>
1732
- </View>
1733
- <View
1734
- onLayout={[Function]}
1735
- style={null}
1736
- />
1737
- <View
1738
- onLayout={[Function]}
1739
- style={null}
1740
- >
1741
2112
  <View
1742
- style={
1743
- [
1744
- {
1745
- "alignContent": "center",
1746
- "backgroundColor": "#f6f6f7",
1747
- "display": "flex",
1748
- "flexDirection": "row",
1749
- "justifyContent": "space-between",
1750
- "marginBottom": 16,
1751
- "paddingHorizontal": 16,
1752
- "paddingVertical": 8,
1753
- },
1754
- {
1755
- "marginBottom": 0,
1756
- },
1757
- ]
1758
- }
1759
- themeSize="medium"
2113
+ onFocusCapture={[Function]}
2114
+ onLayout={[Function]}
2115
+ style={null}
1760
2116
  >
1761
- <View
1762
- style={
1763
- [
1764
- {
1765
- "alignItems": "center",
1766
- "display": "flex",
1767
- "flexDirection": "row",
1768
- },
1769
- undefined,
1770
- ]
1771
- }
1772
- >
2117
+ <View>
1773
2118
  <View
2119
+ accessibilityState={
2120
+ {
2121
+ "disabled": false,
2122
+ }
2123
+ }
2124
+ accessibilityValue={
2125
+ {
2126
+ "max": undefined,
2127
+ "min": undefined,
2128
+ "now": undefined,
2129
+ "text": undefined,
2130
+ }
2131
+ }
2132
+ accessible={true}
2133
+ focusable={true}
2134
+ onClick={[Function]}
2135
+ onResponderGrant={[Function]}
2136
+ onResponderMove={[Function]}
2137
+ onResponderRelease={[Function]}
2138
+ onResponderTerminate={[Function]}
2139
+ onResponderTerminationRequest={[Function]}
2140
+ onStartShouldSetResponder={[Function]}
1774
2141
  style={
1775
2142
  [
1776
2143
  {
1777
- "marginRight": 12,
2144
+ "alignItems": "center",
2145
+ "backgroundColor": "#ffffff",
2146
+ "borderRadius": 4,
2147
+ "flexDirection": "row",
2148
+ "opacity": 1,
2149
+ "padding": 16,
1778
2150
  },
1779
2151
  undefined,
1780
2152
  ]
1781
2153
  }
1782
- />
1783
- <Text
1784
- allowFontScaling={false}
2154
+ >
2155
+ <View
2156
+ style={
2157
+ [
2158
+ {
2159
+ "flex": 1,
2160
+ },
2161
+ undefined,
2162
+ ]
2163
+ }
2164
+ >
2165
+ <Text
2166
+ allowFontScaling={false}
2167
+ style={
2168
+ [
2169
+ {
2170
+ "color": "#001f23",
2171
+ "fontFamily": "BeVietnamPro-Regular",
2172
+ "fontSize": 16,
2173
+ "letterSpacing": 0.48,
2174
+ "lineHeight": 24,
2175
+ },
2176
+ undefined,
2177
+ ]
2178
+ }
2179
+ themeIntent="body"
2180
+ themeTypeface="neutral"
2181
+ themeVariant="regular"
2182
+ >
2183
+ B2
2184
+ </Text>
2185
+ </View>
2186
+ </View>
2187
+ <View
2188
+ highlighted={false}
2189
+ leadingItem={
2190
+ {
2191
+ "text": "B2",
2192
+ "value": "b2",
2193
+ }
2194
+ }
2195
+ leadingSection={
2196
+ {
2197
+ "category": "A",
2198
+ "data": [
2199
+ {
2200
+ "text": "A1",
2201
+ "value": "a1",
2202
+ },
2203
+ ],
2204
+ }
2205
+ }
2206
+ section={
2207
+ {
2208
+ "category": "B",
2209
+ "data": [
2210
+ {
2211
+ "text": "B1",
2212
+ "value": "b1",
2213
+ },
2214
+ {
2215
+ "text": "B2",
2216
+ "value": "b2",
2217
+ },
2218
+ ],
2219
+ }
2220
+ }
1785
2221
  style={
1786
2222
  [
1787
2223
  {
1788
- "color": "#001f23",
1789
- "fontFamily": "BeVietnamPro-Regular",
1790
- "fontSize": 14,
1791
- "letterSpacing": 0.48,
1792
- "lineHeight": 22,
2224
+ "marginTop": 12,
1793
2225
  },
1794
2226
  undefined,
1795
2227
  ]
1796
2228
  }
1797
- themeIntent="body"
1798
- themeTypeface="neutral"
1799
- themeVariant="small"
1800
- >
1801
- B
1802
- </Text>
2229
+ />
1803
2230
  </View>
1804
2231
  </View>
2232
+ <View
2233
+ onFocusCapture={[Function]}
2234
+ onLayout={[Function]}
2235
+ style={null}
2236
+ />
1805
2237
  </View>
1806
- <View
1807
- onLayout={[Function]}
1808
- style={null}
1809
- >
1810
- <View>
1811
- <View
1812
- highlighted={false}
1813
- leadingSection={
1814
- {
1815
- "category": "A",
1816
- "data": [
1817
- {
1818
- "text": "A1",
1819
- "value": "a1",
1820
- },
1821
- ],
1822
- }
1823
- }
1824
- section={
2238
+ </RCTScrollView>
2239
+ <View
2240
+ pointerEvents="box-none"
2241
+ position="bottom"
2242
+ style={
2243
+ [
2244
+ {
2245
+ "bottom": 0,
2246
+ "elevation": 9999,
2247
+ "flexDirection": "column-reverse",
2248
+ "left": 0,
2249
+ "paddingHorizontal": 24,
2250
+ "paddingVertical": 16,
2251
+ "position": "absolute",
2252
+ "right": 0,
2253
+ "top": 0,
2254
+ },
2255
+ undefined,
2256
+ ]
2257
+ }
2258
+ />
2259
+ </View>
2260
+ `;
2261
+
2262
+ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2263
+ <View
2264
+ style={
2265
+ {
2266
+ "flex": 1,
2267
+ }
2268
+ }
2269
+ >
2270
+ <RCTScrollView
2271
+ ListFooterComponent={null}
2272
+ data={
2273
+ [
2274
+ {
2275
+ "category": "A",
2276
+ "data": [
1825
2277
  {
1826
- "category": "B",
1827
- "data": [
1828
- {
1829
- "text": "B1",
1830
- "value": "b1",
1831
- },
1832
- {
1833
- "text": "B2",
1834
- "value": "b2",
1835
- },
1836
- ],
1837
- }
1838
- }
1839
- style={
1840
- [
1841
- {
1842
- "marginTop": 12,
1843
- },
1844
- undefined,
1845
- ]
1846
- }
1847
- trailingItem={
2278
+ "text": "A1",
2279
+ "value": "a1",
2280
+ },
2281
+ ],
2282
+ },
2283
+ {
2284
+ "category": "B",
2285
+ "data": [
1848
2286
  {
1849
2287
  "text": "B1",
1850
2288
  "value": "b1",
1851
- }
1852
- }
1853
- />
1854
- <View
1855
- accessibilityState={
2289
+ },
1856
2290
  {
1857
- "disabled": false,
1858
- }
1859
- }
1860
- accessible={true}
1861
- focusable={true}
1862
- onClick={[Function]}
1863
- onResponderGrant={[Function]}
1864
- onResponderMove={[Function]}
1865
- onResponderRelease={[Function]}
1866
- onResponderTerminate={[Function]}
1867
- onResponderTerminationRequest={[Function]}
1868
- onStartShouldSetResponder={[Function]}
2291
+ "text": "B2",
2292
+ "value": "b2",
2293
+ },
2294
+ ],
2295
+ },
2296
+ ]
2297
+ }
2298
+ getItem={[Function]}
2299
+ getItemCount={[Function]}
2300
+ keyExtractor={[Function]}
2301
+ onContentSizeChange={[Function]}
2302
+ onEndReached={[Function]}
2303
+ onEndReachedThreshold={0.1}
2304
+ onLayout={[Function]}
2305
+ onMomentumScrollBegin={[Function]}
2306
+ onMomentumScrollEnd={[Function]}
2307
+ onScroll={[Function]}
2308
+ onScrollBeginDrag={[Function]}
2309
+ onScrollEndDrag={[Function]}
2310
+ renderItem={[Function]}
2311
+ scrollEventThrottle={50}
2312
+ stickyHeaderIndices={
2313
+ [
2314
+ 0,
2315
+ 3,
2316
+ ]
2317
+ }
2318
+ style={
2319
+ [
2320
+ {
2321
+ "paddingHorizontal": 12,
2322
+ },
2323
+ [
2324
+ {
2325
+ "paddingBottom": 16,
2326
+ },
2327
+ {},
2328
+ ],
2329
+ ]
2330
+ }
2331
+ >
2332
+ <View>
2333
+ <View
2334
+ onFocusCapture={[Function]}
2335
+ onLayout={[Function]}
2336
+ style={null}
2337
+ >
2338
+ <View
1869
2339
  style={
1870
2340
  [
1871
2341
  {
1872
- "alignItems": "center",
1873
- "backgroundColor": "#ffffff",
1874
- "borderRadius": 4,
2342
+ "alignContent": "center",
2343
+ "backgroundColor": "#f6f6f7",
2344
+ "display": "flex",
1875
2345
  "flexDirection": "row",
1876
- "opacity": 1,
1877
- "padding": 16,
2346
+ "justifyContent": "space-between",
2347
+ "marginBottom": 16,
2348
+ "paddingHorizontal": 16,
2349
+ "paddingVertical": 8,
2350
+ },
2351
+ {
2352
+ "marginBottom": 0,
1878
2353
  },
1879
- undefined,
1880
2354
  ]
1881
2355
  }
2356
+ themeSize="medium"
1882
2357
  >
1883
2358
  <View
1884
2359
  style={
1885
2360
  [
1886
2361
  {
1887
- "flex": 1,
2362
+ "alignItems": "center",
2363
+ "display": "flex",
2364
+ "flexDirection": "row",
1888
2365
  },
1889
2366
  undefined,
1890
2367
  ]
1891
2368
  }
1892
2369
  >
2370
+ <View
2371
+ style={
2372
+ [
2373
+ {
2374
+ "marginRight": 12,
2375
+ },
2376
+ undefined,
2377
+ ]
2378
+ }
2379
+ />
1893
2380
  <Text
1894
2381
  allowFontScaling={false}
1895
2382
  style={
@@ -1897,411 +2384,237 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1897
2384
  {
1898
2385
  "color": "#001f23",
1899
2386
  "fontFamily": "BeVietnamPro-Regular",
1900
- "fontSize": 16,
2387
+ "fontSize": 14,
1901
2388
  "letterSpacing": 0.48,
1902
- "lineHeight": 24,
2389
+ "lineHeight": 22,
1903
2390
  },
1904
2391
  undefined,
1905
2392
  ]
1906
2393
  }
1907
2394
  themeIntent="body"
1908
2395
  themeTypeface="neutral"
1909
- themeVariant="regular"
2396
+ themeVariant="small"
1910
2397
  >
1911
- B1
2398
+ A
1912
2399
  </Text>
1913
2400
  </View>
1914
2401
  </View>
1915
- <View
1916
- highlighted={false}
1917
- leadingItem={
1918
- {
1919
- "text": "B1",
1920
- "value": "b1",
2402
+ </View>
2403
+ <View
2404
+ onFocusCapture={[Function]}
2405
+ onLayout={[Function]}
2406
+ style={null}
2407
+ >
2408
+ <View>
2409
+ <View
2410
+ highlighted={false}
2411
+ section={
2412
+ {
2413
+ "category": "A",
2414
+ "data": [
2415
+ {
2416
+ "text": "A1",
2417
+ "value": "a1",
2418
+ },
2419
+ ],
2420
+ }
1921
2421
  }
1922
- }
1923
- leadingSection={
1924
- {
1925
- "category": "A",
1926
- "data": [
2422
+ style={
2423
+ [
1927
2424
  {
1928
- "text": "A1",
1929
- "value": "a1",
2425
+ "marginTop": 12,
1930
2426
  },
1931
- ],
2427
+ undefined,
2428
+ ]
1932
2429
  }
1933
- }
1934
- section={
1935
- {
1936
- "category": "B",
1937
- "data": [
1938
- {
1939
- "text": "B1",
1940
- "value": "b1",
1941
- },
1942
- {
1943
- "text": "B2",
1944
- "value": "b2",
1945
- },
1946
- ],
2430
+ trailingItem={
2431
+ {
2432
+ "text": "A1",
2433
+ "value": "a1",
2434
+ }
1947
2435
  }
1948
- }
1949
- style={
1950
- [
2436
+ trailingSection={
1951
2437
  {
1952
- "marginTop": 4,
1953
- },
1954
- undefined,
1955
- ]
1956
- }
1957
- trailingItem={
1958
- {
1959
- "text": "B2",
1960
- "value": "b2",
2438
+ "category": "B",
2439
+ "data": [
2440
+ {
2441
+ "text": "B1",
2442
+ "value": "b1",
2443
+ },
2444
+ {
2445
+ "text": "B2",
2446
+ "value": "b2",
2447
+ },
2448
+ ],
2449
+ }
1961
2450
  }
1962
- }
1963
- />
1964
- </View>
1965
- </View>
1966
- <View
1967
- onLayout={[Function]}
1968
- style={null}
1969
- >
1970
- <View>
1971
- <View
1972
- accessibilityState={
1973
- {
1974
- "disabled": false,
2451
+ />
2452
+ <View
2453
+ accessibilityState={
2454
+ {
2455
+ "disabled": false,
2456
+ }
1975
2457
  }
1976
- }
1977
- accessible={true}
1978
- focusable={true}
1979
- onClick={[Function]}
1980
- onResponderGrant={[Function]}
1981
- onResponderMove={[Function]}
1982
- onResponderRelease={[Function]}
1983
- onResponderTerminate={[Function]}
1984
- onResponderTerminationRequest={[Function]}
1985
- onStartShouldSetResponder={[Function]}
1986
- style={
1987
- [
2458
+ accessibilityValue={
1988
2459
  {
1989
- "alignItems": "center",
1990
- "backgroundColor": "#ffffff",
1991
- "borderRadius": 4,
1992
- "flexDirection": "row",
1993
- "opacity": 1,
1994
- "padding": 16,
1995
- },
1996
- undefined,
1997
- ]
1998
- }
1999
- >
2000
- <View
2460
+ "max": undefined,
2461
+ "min": undefined,
2462
+ "now": undefined,
2463
+ "text": undefined,
2464
+ }
2465
+ }
2466
+ accessible={true}
2467
+ focusable={true}
2468
+ onClick={[Function]}
2469
+ onResponderGrant={[Function]}
2470
+ onResponderMove={[Function]}
2471
+ onResponderRelease={[Function]}
2472
+ onResponderTerminate={[Function]}
2473
+ onResponderTerminationRequest={[Function]}
2474
+ onStartShouldSetResponder={[Function]}
2001
2475
  style={
2002
2476
  [
2003
2477
  {
2004
- "flex": 1,
2478
+ "alignItems": "center",
2479
+ "backgroundColor": "#ece8ef",
2480
+ "borderRadius": 4,
2481
+ "flexDirection": "row",
2482
+ "opacity": 1,
2483
+ "padding": 16,
2005
2484
  },
2006
2485
  undefined,
2007
2486
  ]
2008
2487
  }
2009
2488
  >
2010
- <Text
2011
- allowFontScaling={false}
2489
+ <View
2012
2490
  style={
2013
2491
  [
2014
2492
  {
2015
- "color": "#001f23",
2016
- "fontFamily": "BeVietnamPro-Regular",
2017
- "fontSize": 16,
2018
- "letterSpacing": 0.48,
2019
- "lineHeight": 24,
2493
+ "flex": 1,
2020
2494
  },
2021
2495
  undefined,
2022
2496
  ]
2023
2497
  }
2024
- themeIntent="body"
2025
- themeTypeface="neutral"
2026
- themeVariant="regular"
2027
2498
  >
2028
- B2
2029
- </Text>
2499
+ <Text
2500
+ allowFontScaling={false}
2501
+ style={
2502
+ [
2503
+ {
2504
+ "color": "#001f23",
2505
+ "fontFamily": "BeVietnamPro-Regular",
2506
+ "fontSize": 16,
2507
+ "letterSpacing": 0.48,
2508
+ "lineHeight": 24,
2509
+ },
2510
+ undefined,
2511
+ ]
2512
+ }
2513
+ themeIntent="body"
2514
+ themeTypeface="neutral"
2515
+ themeVariant="regular"
2516
+ >
2517
+ A1
2518
+ </Text>
2519
+ </View>
2030
2520
  </View>
2031
- </View>
2032
- <View
2033
- highlighted={false}
2034
- leadingItem={
2035
- {
2036
- "text": "B2",
2037
- "value": "b2",
2038
- }
2039
- }
2040
- leadingSection={
2041
- {
2042
- "category": "A",
2043
- "data": [
2044
- {
2045
- "text": "A1",
2046
- "value": "a1",
2047
- },
2048
- ],
2049
- }
2050
- }
2051
- section={
2052
- {
2053
- "category": "B",
2054
- "data": [
2055
- {
2056
- "text": "B1",
2057
- "value": "b1",
2058
- },
2059
- {
2060
- "text": "B2",
2061
- "value": "b2",
2062
- },
2063
- ],
2064
- }
2065
- }
2066
- style={
2067
- [
2521
+ <View
2522
+ highlighted={false}
2523
+ leadingItem={
2068
2524
  {
2069
- "marginTop": 12,
2070
- },
2071
- undefined,
2072
- ]
2073
- }
2074
- />
2075
- </View>
2076
- </View>
2077
- <View
2078
- onLayout={[Function]}
2079
- style={null}
2080
- />
2081
- </View>
2082
- </RCTScrollView>
2083
- `;
2084
-
2085
- exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2086
- <RCTScrollView
2087
- ListFooterComponent={null}
2088
- data={
2089
- [
2090
- {
2091
- "category": "A",
2092
- "data": [
2093
- {
2094
- "text": "A1",
2095
- "value": "a1",
2096
- },
2097
- ],
2098
- },
2099
- {
2100
- "category": "B",
2101
- "data": [
2102
- {
2103
- "text": "B1",
2104
- "value": "b1",
2105
- },
2106
- {
2107
- "text": "B2",
2108
- "value": "b2",
2109
- },
2110
- ],
2111
- },
2112
- ]
2113
- }
2114
- getItem={[Function]}
2115
- getItemCount={[Function]}
2116
- keyExtractor={[Function]}
2117
- onContentSizeChange={[Function]}
2118
- onEndReached={[Function]}
2119
- onEndReachedThreshold={0.1}
2120
- onLayout={[Function]}
2121
- onMomentumScrollBegin={[Function]}
2122
- onMomentumScrollEnd={[Function]}
2123
- onScroll={[Function]}
2124
- onScrollBeginDrag={[Function]}
2125
- onScrollEndDrag={[Function]}
2126
- renderItem={[Function]}
2127
- scrollEventThrottle={50}
2128
- stickyHeaderIndices={
2129
- [
2130
- 0,
2131
- 3,
2132
- ]
2133
- }
2134
- style={
2135
- [
2136
- {
2137
- "paddingHorizontal": 12,
2138
- },
2139
- [
2140
- {
2141
- "paddingBottom": 16,
2142
- },
2143
- {},
2144
- ],
2145
- ]
2146
- }
2147
- >
2148
- <View>
2149
- <View
2150
- onLayout={[Function]}
2151
- style={null}
2152
- >
2153
- <View
2154
- style={
2155
- [
2156
- {
2157
- "alignContent": "center",
2158
- "backgroundColor": "#f6f6f7",
2159
- "display": "flex",
2160
- "flexDirection": "row",
2161
- "justifyContent": "space-between",
2162
- "marginBottom": 16,
2163
- "paddingHorizontal": 16,
2164
- "paddingVertical": 8,
2165
- },
2166
- {
2167
- "marginBottom": 0,
2168
- },
2169
- ]
2170
- }
2171
- themeSize="medium"
2172
- >
2173
- <View
2174
- style={
2175
- [
2525
+ "text": "A1",
2526
+ "value": "a1",
2527
+ }
2528
+ }
2529
+ section={
2176
2530
  {
2177
- "alignItems": "center",
2178
- "display": "flex",
2179
- "flexDirection": "row",
2180
- },
2181
- undefined,
2182
- ]
2183
- }
2184
- >
2185
- <View
2186
- style={
2187
- [
2188
- {
2189
- "marginRight": 12,
2190
- },
2191
- undefined,
2192
- ]
2531
+ "category": "A",
2532
+ "data": [
2533
+ {
2534
+ "text": "A1",
2535
+ "value": "a1",
2536
+ },
2537
+ ],
2538
+ }
2193
2539
  }
2194
- />
2195
- <Text
2196
- allowFontScaling={false}
2197
2540
  style={
2198
2541
  [
2199
2542
  {
2200
- "color": "#001f23",
2201
- "fontFamily": "BeVietnamPro-Regular",
2202
- "fontSize": 14,
2203
- "letterSpacing": 0.48,
2204
- "lineHeight": 22,
2543
+ "marginTop": 12,
2205
2544
  },
2206
2545
  undefined,
2207
2546
  ]
2208
2547
  }
2209
- themeIntent="body"
2210
- themeTypeface="neutral"
2211
- themeVariant="small"
2212
- >
2213
- A
2214
- </Text>
2548
+ trailingSection={
2549
+ {
2550
+ "category": "B",
2551
+ "data": [
2552
+ {
2553
+ "text": "B1",
2554
+ "value": "b1",
2555
+ },
2556
+ {
2557
+ "text": "B2",
2558
+ "value": "b2",
2559
+ },
2560
+ ],
2561
+ }
2562
+ }
2563
+ />
2215
2564
  </View>
2216
2565
  </View>
2217
- </View>
2218
- <View
2219
- onLayout={[Function]}
2220
- style={null}
2221
- >
2222
- <View>
2566
+ <View
2567
+ onFocusCapture={[Function]}
2568
+ onLayout={[Function]}
2569
+ style={null}
2570
+ />
2571
+ <View
2572
+ onFocusCapture={[Function]}
2573
+ onLayout={[Function]}
2574
+ style={null}
2575
+ >
2223
2576
  <View
2224
- highlighted={false}
2225
- section={
2226
- {
2227
- "category": "A",
2228
- "data": [
2229
- {
2230
- "text": "A1",
2231
- "value": "a1",
2232
- },
2233
- ],
2234
- }
2235
- }
2236
2577
  style={
2237
2578
  [
2238
2579
  {
2239
- "marginTop": 12,
2580
+ "alignContent": "center",
2581
+ "backgroundColor": "#f6f6f7",
2582
+ "display": "flex",
2583
+ "flexDirection": "row",
2584
+ "justifyContent": "space-between",
2585
+ "marginBottom": 16,
2586
+ "paddingHorizontal": 16,
2587
+ "paddingVertical": 8,
2240
2588
  },
2241
- undefined,
2242
- ]
2243
- }
2244
- trailingItem={
2245
- {
2246
- "text": "A1",
2247
- "value": "a1",
2248
- }
2249
- }
2250
- trailingSection={
2251
- {
2252
- "category": "B",
2253
- "data": [
2254
- {
2255
- "text": "B1",
2256
- "value": "b1",
2257
- },
2258
- {
2259
- "text": "B2",
2260
- "value": "b2",
2261
- },
2262
- ],
2263
- }
2264
- }
2265
- />
2266
- <View
2267
- accessibilityState={
2268
- {
2269
- "disabled": false,
2270
- }
2271
- }
2272
- accessible={true}
2273
- focusable={true}
2274
- onClick={[Function]}
2275
- onResponderGrant={[Function]}
2276
- onResponderMove={[Function]}
2277
- onResponderRelease={[Function]}
2278
- onResponderTerminate={[Function]}
2279
- onResponderTerminationRequest={[Function]}
2280
- onStartShouldSetResponder={[Function]}
2281
- style={
2282
- [
2283
2589
  {
2284
- "alignItems": "center",
2285
- "backgroundColor": "#ece8ef",
2286
- "borderRadius": 4,
2287
- "flexDirection": "row",
2288
- "opacity": 1,
2289
- "padding": 16,
2590
+ "marginBottom": 0,
2290
2591
  },
2291
- undefined,
2292
2592
  ]
2293
2593
  }
2594
+ themeSize="medium"
2294
2595
  >
2295
2596
  <View
2296
2597
  style={
2297
2598
  [
2298
2599
  {
2299
- "flex": 1,
2600
+ "alignItems": "center",
2601
+ "display": "flex",
2602
+ "flexDirection": "row",
2300
2603
  },
2301
2604
  undefined,
2302
2605
  ]
2303
2606
  }
2304
2607
  >
2608
+ <View
2609
+ style={
2610
+ [
2611
+ {
2612
+ "marginRight": 12,
2613
+ },
2614
+ undefined,
2615
+ ]
2616
+ }
2617
+ />
2305
2618
  <Text
2306
2619
  allowFontScaling={false}
2307
2620
  style={
@@ -2309,414 +2622,337 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2309
2622
  {
2310
2623
  "color": "#001f23",
2311
2624
  "fontFamily": "BeVietnamPro-Regular",
2312
- "fontSize": 16,
2625
+ "fontSize": 14,
2313
2626
  "letterSpacing": 0.48,
2314
- "lineHeight": 24,
2627
+ "lineHeight": 22,
2315
2628
  },
2316
2629
  undefined,
2317
2630
  ]
2318
2631
  }
2319
2632
  themeIntent="body"
2320
2633
  themeTypeface="neutral"
2321
- themeVariant="regular"
2634
+ themeVariant="small"
2322
2635
  >
2323
- A1
2636
+ B
2324
2637
  </Text>
2325
2638
  </View>
2326
2639
  </View>
2327
- <View
2328
- highlighted={false}
2329
- leadingItem={
2330
- {
2331
- "text": "A1",
2332
- "value": "a1",
2333
- }
2334
- }
2335
- section={
2336
- {
2337
- "category": "A",
2338
- "data": [
2339
- {
2340
- "text": "A1",
2341
- "value": "a1",
2342
- },
2343
- ],
2344
- }
2345
- }
2346
- style={
2347
- [
2348
- {
2349
- "marginTop": 12,
2350
- },
2351
- undefined,
2352
- ]
2353
- }
2354
- trailingSection={
2355
- {
2356
- "category": "B",
2357
- "data": [
2358
- {
2359
- "text": "B1",
2360
- "value": "b1",
2361
- },
2362
- {
2363
- "text": "B2",
2364
- "value": "b2",
2365
- },
2366
- ],
2367
- }
2368
- }
2369
- />
2370
2640
  </View>
2371
- </View>
2372
- <View
2373
- onLayout={[Function]}
2374
- style={null}
2375
- />
2376
- <View
2377
- onLayout={[Function]}
2378
- style={null}
2379
- >
2380
2641
  <View
2381
- style={
2382
- [
2383
- {
2384
- "alignContent": "center",
2385
- "backgroundColor": "#f6f6f7",
2386
- "display": "flex",
2387
- "flexDirection": "row",
2388
- "justifyContent": "space-between",
2389
- "marginBottom": 16,
2390
- "paddingHorizontal": 16,
2391
- "paddingVertical": 8,
2392
- },
2393
- {
2394
- "marginBottom": 0,
2395
- },
2396
- ]
2397
- }
2398
- themeSize="medium"
2642
+ onFocusCapture={[Function]}
2643
+ onLayout={[Function]}
2644
+ style={null}
2399
2645
  >
2400
- <View
2401
- style={
2402
- [
2403
- {
2404
- "alignItems": "center",
2405
- "display": "flex",
2406
- "flexDirection": "row",
2407
- },
2408
- undefined,
2409
- ]
2410
- }
2411
- >
2646
+ <View>
2412
2647
  <View
2413
- style={
2414
- [
2415
- {
2416
- "marginRight": 12,
2417
- },
2418
- undefined,
2419
- ]
2648
+ highlighted={false}
2649
+ leadingSection={
2650
+ {
2651
+ "category": "A",
2652
+ "data": [
2653
+ {
2654
+ "text": "A1",
2655
+ "value": "a1",
2656
+ },
2657
+ ],
2658
+ }
2659
+ }
2660
+ section={
2661
+ {
2662
+ "category": "B",
2663
+ "data": [
2664
+ {
2665
+ "text": "B1",
2666
+ "value": "b1",
2667
+ },
2668
+ {
2669
+ "text": "B2",
2670
+ "value": "b2",
2671
+ },
2672
+ ],
2673
+ }
2420
2674
  }
2421
- />
2422
- <Text
2423
- allowFontScaling={false}
2424
2675
  style={
2425
2676
  [
2426
2677
  {
2427
- "color": "#001f23",
2428
- "fontFamily": "BeVietnamPro-Regular",
2429
- "fontSize": 14,
2430
- "letterSpacing": 0.48,
2431
- "lineHeight": 22,
2678
+ "marginTop": 12,
2432
2679
  },
2433
2680
  undefined,
2434
2681
  ]
2435
2682
  }
2436
- themeIntent="body"
2437
- themeTypeface="neutral"
2438
- themeVariant="small"
2439
- >
2440
- B
2441
- </Text>
2442
- </View>
2443
- </View>
2444
- </View>
2445
- <View
2446
- onLayout={[Function]}
2447
- style={null}
2448
- >
2449
- <View>
2450
- <View
2451
- highlighted={false}
2452
- leadingSection={
2453
- {
2454
- "category": "A",
2455
- "data": [
2456
- {
2457
- "text": "A1",
2458
- "value": "a1",
2459
- },
2460
- ],
2461
- }
2462
- }
2463
- section={
2464
- {
2465
- "category": "B",
2466
- "data": [
2467
- {
2468
- "text": "B1",
2469
- "value": "b1",
2470
- },
2471
- {
2472
- "text": "B2",
2473
- "value": "b2",
2474
- },
2475
- ],
2476
- }
2477
- }
2478
- style={
2479
- [
2683
+ trailingItem={
2480
2684
  {
2481
- "marginTop": 12,
2482
- },
2483
- undefined,
2484
- ]
2485
- }
2486
- trailingItem={
2487
- {
2488
- "text": "B1",
2489
- "value": "b1",
2685
+ "text": "B1",
2686
+ "value": "b1",
2687
+ }
2490
2688
  }
2491
- }
2492
- />
2493
- <View
2494
- accessibilityState={
2495
- {
2496
- "disabled": false,
2689
+ />
2690
+ <View
2691
+ accessibilityState={
2692
+ {
2693
+ "disabled": false,
2694
+ }
2497
2695
  }
2498
- }
2499
- accessible={true}
2500
- focusable={true}
2501
- onClick={[Function]}
2502
- onResponderGrant={[Function]}
2503
- onResponderMove={[Function]}
2504
- onResponderRelease={[Function]}
2505
- onResponderTerminate={[Function]}
2506
- onResponderTerminationRequest={[Function]}
2507
- onStartShouldSetResponder={[Function]}
2508
- style={
2509
- [
2696
+ accessibilityValue={
2510
2697
  {
2511
- "alignItems": "center",
2512
- "backgroundColor": "#ffffff",
2513
- "borderRadius": 4,
2514
- "flexDirection": "row",
2515
- "opacity": 1,
2516
- "padding": 16,
2517
- },
2518
- undefined,
2519
- ]
2520
- }
2521
- >
2522
- <View
2698
+ "max": undefined,
2699
+ "min": undefined,
2700
+ "now": undefined,
2701
+ "text": undefined,
2702
+ }
2703
+ }
2704
+ accessible={true}
2705
+ focusable={true}
2706
+ onClick={[Function]}
2707
+ onResponderGrant={[Function]}
2708
+ onResponderMove={[Function]}
2709
+ onResponderRelease={[Function]}
2710
+ onResponderTerminate={[Function]}
2711
+ onResponderTerminationRequest={[Function]}
2712
+ onStartShouldSetResponder={[Function]}
2523
2713
  style={
2524
2714
  [
2525
2715
  {
2526
- "flex": 1,
2716
+ "alignItems": "center",
2717
+ "backgroundColor": "#ffffff",
2718
+ "borderRadius": 4,
2719
+ "flexDirection": "row",
2720
+ "opacity": 1,
2721
+ "padding": 16,
2527
2722
  },
2528
2723
  undefined,
2529
2724
  ]
2530
2725
  }
2531
2726
  >
2532
- <Text
2533
- allowFontScaling={false}
2727
+ <View
2534
2728
  style={
2535
2729
  [
2536
2730
  {
2537
- "color": "#001f23",
2538
- "fontFamily": "BeVietnamPro-Regular",
2539
- "fontSize": 16,
2540
- "letterSpacing": 0.48,
2541
- "lineHeight": 24,
2731
+ "flex": 1,
2542
2732
  },
2543
2733
  undefined,
2544
2734
  ]
2545
2735
  }
2546
- themeIntent="body"
2547
- themeTypeface="neutral"
2548
- themeVariant="regular"
2549
2736
  >
2550
- B1
2551
- </Text>
2737
+ <Text
2738
+ allowFontScaling={false}
2739
+ style={
2740
+ [
2741
+ {
2742
+ "color": "#001f23",
2743
+ "fontFamily": "BeVietnamPro-Regular",
2744
+ "fontSize": 16,
2745
+ "letterSpacing": 0.48,
2746
+ "lineHeight": 24,
2747
+ },
2748
+ undefined,
2749
+ ]
2750
+ }
2751
+ themeIntent="body"
2752
+ themeTypeface="neutral"
2753
+ themeVariant="regular"
2754
+ >
2755
+ B1
2756
+ </Text>
2757
+ </View>
2552
2758
  </View>
2553
- </View>
2554
- <View
2555
- highlighted={false}
2556
- leadingItem={
2557
- {
2558
- "text": "B1",
2559
- "value": "b1",
2759
+ <View
2760
+ highlighted={false}
2761
+ leadingItem={
2762
+ {
2763
+ "text": "B1",
2764
+ "value": "b1",
2765
+ }
2560
2766
  }
2561
- }
2562
- leadingSection={
2563
- {
2564
- "category": "A",
2565
- "data": [
2566
- {
2567
- "text": "A1",
2568
- "value": "a1",
2569
- },
2570
- ],
2767
+ leadingSection={
2768
+ {
2769
+ "category": "A",
2770
+ "data": [
2771
+ {
2772
+ "text": "A1",
2773
+ "value": "a1",
2774
+ },
2775
+ ],
2776
+ }
2571
2777
  }
2572
- }
2573
- section={
2574
- {
2575
- "category": "B",
2576
- "data": [
2577
- {
2578
- "text": "B1",
2579
- "value": "b1",
2580
- },
2778
+ section={
2779
+ {
2780
+ "category": "B",
2781
+ "data": [
2782
+ {
2783
+ "text": "B1",
2784
+ "value": "b1",
2785
+ },
2786
+ {
2787
+ "text": "B2",
2788
+ "value": "b2",
2789
+ },
2790
+ ],
2791
+ }
2792
+ }
2793
+ style={
2794
+ [
2581
2795
  {
2582
- "text": "B2",
2583
- "value": "b2",
2796
+ "marginTop": 4,
2584
2797
  },
2585
- ],
2798
+ undefined,
2799
+ ]
2586
2800
  }
2587
- }
2588
- style={
2589
- [
2801
+ trailingItem={
2590
2802
  {
2591
- "marginTop": 4,
2592
- },
2593
- undefined,
2594
- ]
2595
- }
2596
- trailingItem={
2597
- {
2598
- "text": "B2",
2599
- "value": "b2",
2803
+ "text": "B2",
2804
+ "value": "b2",
2805
+ }
2600
2806
  }
2601
- }
2602
- />
2807
+ />
2808
+ </View>
2603
2809
  </View>
2604
- </View>
2605
- <View
2606
- onLayout={[Function]}
2607
- style={null}
2608
- >
2609
- <View>
2610
- <View
2611
- accessibilityState={
2612
- {
2613
- "disabled": false,
2810
+ <View
2811
+ onFocusCapture={[Function]}
2812
+ onLayout={[Function]}
2813
+ style={null}
2814
+ >
2815
+ <View>
2816
+ <View
2817
+ accessibilityState={
2818
+ {
2819
+ "disabled": false,
2820
+ }
2614
2821
  }
2615
- }
2616
- accessible={true}
2617
- focusable={true}
2618
- onClick={[Function]}
2619
- onResponderGrant={[Function]}
2620
- onResponderMove={[Function]}
2621
- onResponderRelease={[Function]}
2622
- onResponderTerminate={[Function]}
2623
- onResponderTerminationRequest={[Function]}
2624
- onStartShouldSetResponder={[Function]}
2625
- style={
2626
- [
2822
+ accessibilityValue={
2627
2823
  {
2628
- "alignItems": "center",
2629
- "backgroundColor": "#ffffff",
2630
- "borderRadius": 4,
2631
- "flexDirection": "row",
2632
- "opacity": 1,
2633
- "padding": 16,
2634
- },
2635
- undefined,
2636
- ]
2637
- }
2638
- >
2639
- <View
2824
+ "max": undefined,
2825
+ "min": undefined,
2826
+ "now": undefined,
2827
+ "text": undefined,
2828
+ }
2829
+ }
2830
+ accessible={true}
2831
+ focusable={true}
2832
+ onClick={[Function]}
2833
+ onResponderGrant={[Function]}
2834
+ onResponderMove={[Function]}
2835
+ onResponderRelease={[Function]}
2836
+ onResponderTerminate={[Function]}
2837
+ onResponderTerminationRequest={[Function]}
2838
+ onStartShouldSetResponder={[Function]}
2640
2839
  style={
2641
2840
  [
2642
2841
  {
2643
- "flex": 1,
2842
+ "alignItems": "center",
2843
+ "backgroundColor": "#ffffff",
2844
+ "borderRadius": 4,
2845
+ "flexDirection": "row",
2846
+ "opacity": 1,
2847
+ "padding": 16,
2644
2848
  },
2645
2849
  undefined,
2646
2850
  ]
2647
2851
  }
2648
2852
  >
2649
- <Text
2650
- allowFontScaling={false}
2853
+ <View
2651
2854
  style={
2652
2855
  [
2653
2856
  {
2654
- "color": "#001f23",
2655
- "fontFamily": "BeVietnamPro-Regular",
2656
- "fontSize": 16,
2657
- "letterSpacing": 0.48,
2658
- "lineHeight": 24,
2857
+ "flex": 1,
2659
2858
  },
2660
2859
  undefined,
2661
2860
  ]
2662
2861
  }
2663
- themeIntent="body"
2664
- themeTypeface="neutral"
2665
- themeVariant="regular"
2666
2862
  >
2667
- B2
2668
- </Text>
2863
+ <Text
2864
+ allowFontScaling={false}
2865
+ style={
2866
+ [
2867
+ {
2868
+ "color": "#001f23",
2869
+ "fontFamily": "BeVietnamPro-Regular",
2870
+ "fontSize": 16,
2871
+ "letterSpacing": 0.48,
2872
+ "lineHeight": 24,
2873
+ },
2874
+ undefined,
2875
+ ]
2876
+ }
2877
+ themeIntent="body"
2878
+ themeTypeface="neutral"
2879
+ themeVariant="regular"
2880
+ >
2881
+ B2
2882
+ </Text>
2883
+ </View>
2669
2884
  </View>
2670
- </View>
2671
- <View
2672
- highlighted={false}
2673
- leadingItem={
2674
- {
2675
- "text": "B2",
2676
- "value": "b2",
2885
+ <View
2886
+ highlighted={false}
2887
+ leadingItem={
2888
+ {
2889
+ "text": "B2",
2890
+ "value": "b2",
2891
+ }
2677
2892
  }
2678
- }
2679
- leadingSection={
2680
- {
2681
- "category": "A",
2682
- "data": [
2683
- {
2684
- "text": "A1",
2685
- "value": "a1",
2686
- },
2687
- ],
2893
+ leadingSection={
2894
+ {
2895
+ "category": "A",
2896
+ "data": [
2897
+ {
2898
+ "text": "A1",
2899
+ "value": "a1",
2900
+ },
2901
+ ],
2902
+ }
2688
2903
  }
2689
- }
2690
- section={
2691
- {
2692
- "category": "B",
2693
- "data": [
2694
- {
2695
- "text": "B1",
2696
- "value": "b1",
2697
- },
2904
+ section={
2905
+ {
2906
+ "category": "B",
2907
+ "data": [
2908
+ {
2909
+ "text": "B1",
2910
+ "value": "b1",
2911
+ },
2912
+ {
2913
+ "text": "B2",
2914
+ "value": "b2",
2915
+ },
2916
+ ],
2917
+ }
2918
+ }
2919
+ style={
2920
+ [
2698
2921
  {
2699
- "text": "B2",
2700
- "value": "b2",
2922
+ "marginTop": 12,
2701
2923
  },
2702
- ],
2924
+ undefined,
2925
+ ]
2703
2926
  }
2704
- }
2705
- style={
2706
- [
2707
- {
2708
- "marginTop": 12,
2709
- },
2710
- undefined,
2711
- ]
2712
- }
2713
- />
2927
+ />
2928
+ </View>
2714
2929
  </View>
2930
+ <View
2931
+ onFocusCapture={[Function]}
2932
+ onLayout={[Function]}
2933
+ style={null}
2934
+ />
2715
2935
  </View>
2716
- <View
2717
- onLayout={[Function]}
2718
- style={null}
2719
- />
2720
- </View>
2721
- </RCTScrollView>
2936
+ </RCTScrollView>
2937
+ <View
2938
+ pointerEvents="box-none"
2939
+ position="bottom"
2940
+ style={
2941
+ [
2942
+ {
2943
+ "bottom": 0,
2944
+ "elevation": 9999,
2945
+ "flexDirection": "column-reverse",
2946
+ "left": 0,
2947
+ "paddingHorizontal": 24,
2948
+ "paddingVertical": 16,
2949
+ "position": "absolute",
2950
+ "right": 0,
2951
+ "top": 0,
2952
+ },
2953
+ undefined,
2954
+ ]
2955
+ }
2956
+ />
2957
+ </View>
2722
2958
  `;