@hero-design/rn 7.11.2 → 7.12.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 (273) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +3408 -632
  4. package/global-setup.js +3 -0
  5. package/jest.config.js +1 -0
  6. package/lib/assets/fonts/hero-icons.ttf +0 -0
  7. package/lib/index.js +3408 -630
  8. package/package.json +7 -3
  9. package/rollup.config.js +8 -1
  10. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  11. package/src/components/ContentNavigator/__tests__/index.spec.tsx +19 -2
  12. package/src/components/ContentNavigator/index.tsx +12 -1
  13. package/src/components/Icon/HeroIcon/selection.json +1 -1
  14. package/src/components/Icon/IconList.ts +1 -0
  15. package/src/components/Select/MultiSelect/Option.tsx +1 -1
  16. package/src/components/Select/MultiSelect/OptionList.tsx +48 -26
  17. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +13 -0
  18. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1062 -556
  19. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +983 -889
  20. package/src/components/Select/MultiSelect/index.tsx +59 -31
  21. package/src/components/Select/SingleSelect/OptionList.tsx +45 -26
  22. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +8 -0
  23. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +992 -500
  24. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +880 -786
  25. package/src/components/Select/SingleSelect/index.tsx +60 -31
  26. package/src/components/Select/StyledOptionList.tsx +88 -0
  27. package/src/components/Select/StyledSelect.tsx +18 -16
  28. package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -14
  29. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -13
  30. package/src/components/Select/types.tsx +47 -0
  31. package/src/components/TimePicker/StyledTimePicker.tsx +8 -0
  32. package/src/components/TimePicker/TimePickerAndroid.tsx +61 -0
  33. package/src/components/TimePicker/TimePickerIOS.tsx +91 -0
  34. package/src/components/TimePicker/__tests__/TimePicker.spec.tsx +34 -0
  35. package/src/components/TimePicker/__tests__/TimePickerAndroid.spec.tsx +39 -0
  36. package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +46 -0
  37. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +200 -0
  38. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +513 -0
  39. package/src/components/TimePicker/index.tsx +15 -0
  40. package/src/components/TimePicker/types.ts +50 -0
  41. package/src/index.ts +2 -0
  42. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -0
  43. package/src/theme/components/select.ts +4 -0
  44. package/src/theme/components/timePicker.ts +11 -0
  45. package/src/theme/index.ts +3 -0
  46. package/testUtils/setup.tsx +10 -0
  47. package/types/components/Alert/StyledAlert.d.ts +0 -0
  48. package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
  49. package/types/components/Alert/index.d.ts +0 -0
  50. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  51. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  52. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  53. package/types/components/Avatar/index.d.ts +0 -0
  54. package/types/components/Badge/Status.d.ts +0 -0
  55. package/types/components/Badge/StyledBadge.d.ts +0 -0
  56. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  57. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  58. package/types/components/Badge/index.d.ts +0 -0
  59. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  60. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  61. package/types/components/BottomNavigation/index.d.ts +0 -0
  62. package/types/components/BottomSheet/Footer.d.ts +0 -0
  63. package/types/components/BottomSheet/Header.d.ts +0 -0
  64. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  65. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  66. package/types/components/BottomSheet/index.d.ts +0 -0
  67. package/types/components/Button/Button.d.ts +0 -0
  68. package/types/components/Button/IconButton.d.ts +0 -0
  69. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  70. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  71. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  72. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  73. package/types/components/Button/StyledButton.d.ts +0 -0
  74. package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +0 -0
  75. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  76. package/types/components/Button/UtilityButton/styled.d.ts +0 -0
  77. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  78. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  79. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  80. package/types/components/Button/index.d.ts +0 -0
  81. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  82. package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -0
  83. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -0
  84. package/types/components/Card/DataCard/index.d.ts +0 -0
  85. package/types/components/Card/StyledCard.d.ts +0 -0
  86. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  87. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  88. package/types/components/Card/index.d.ts +0 -0
  89. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  90. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
  91. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
  92. package/types/components/Checkbox/index.d.ts +0 -0
  93. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  94. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  95. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  96. package/types/components/Collapse/index.d.ts +0 -0
  97. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  98. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  99. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  100. package/types/components/ContentNavigator/index.d.ts +5 -1
  101. package/types/components/Divider/StyledDivider.d.ts +0 -0
  102. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  103. package/types/components/Divider/index.d.ts +0 -0
  104. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  105. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  106. package/types/components/Drawer/index.d.ts +0 -0
  107. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  108. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  109. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  110. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  111. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  112. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  113. package/types/components/FAB/FAB.d.ts +0 -0
  114. package/types/components/FAB/StyledFAB.d.ts +0 -0
  115. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  116. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  117. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  118. package/types/components/FAB/index.d.ts +0 -0
  119. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  120. package/types/components/Icon/IconList.d.ts +1 -1
  121. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  122. package/types/components/Icon/index.d.ts +0 -0
  123. package/types/components/Icon/utils.d.ts +1 -1
  124. package/types/components/List/BasicListItem.d.ts +0 -0
  125. package/types/components/List/ListItem.d.ts +0 -0
  126. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  127. package/types/components/List/StyledListItem.d.ts +0 -0
  128. package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -0
  129. package/types/components/List/__tests__/ListItem.spec.d.ts +0 -0
  130. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -0
  131. package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -0
  132. package/types/components/List/index.d.ts +0 -0
  133. package/types/components/PinInput/PinCell.d.ts +0 -0
  134. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  135. package/types/components/PinInput/__tests__/PinCell.spec.d.ts +0 -0
  136. package/types/components/PinInput/__tests__/StyledPinInput.spec.d.ts +0 -0
  137. package/types/components/PinInput/__tests__/index.spec.d.ts +0 -0
  138. package/types/components/PinInput/index.d.ts +0 -0
  139. package/types/components/Progress/ProgressBar.d.ts +0 -0
  140. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  141. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  142. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  143. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  144. package/types/components/Progress/index.d.ts +0 -0
  145. package/types/components/Progress/types.d.ts +0 -0
  146. package/types/components/Radio/Radio.d.ts +0 -0
  147. package/types/components/Radio/RadioGroup.d.ts +0 -0
  148. package/types/components/Radio/StyledRadio.d.ts +0 -0
  149. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  150. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  151. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  152. package/types/components/Radio/index.d.ts +0 -0
  153. package/types/components/Radio/types.d.ts +0 -0
  154. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  155. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
  156. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  157. package/types/components/SectionHeading/index.d.ts +0 -0
  158. package/types/components/Select/Footer.d.ts +0 -0
  159. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  160. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  161. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -0
  162. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -0
  163. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
  164. package/types/components/Select/MultiSelect/index.d.ts +3 -25
  165. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  166. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  167. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -0
  168. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -0
  169. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -0
  170. package/types/components/Select/SingleSelect/index.d.ts +4 -26
  171. package/types/components/Select/StyledOptionList.d.ts +17 -0
  172. package/types/components/Select/StyledSelect.d.ts +7 -7
  173. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -0
  174. package/types/components/Select/helpers.d.ts +0 -0
  175. package/types/components/Select/index.d.ts +1 -1
  176. package/types/components/Select/types.d.ts +44 -0
  177. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  178. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  179. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  180. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  181. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  182. package/types/components/Spinner/index.d.ts +0 -0
  183. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  184. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
  185. package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
  186. package/types/components/Switch/index.d.ts +0 -0
  187. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  188. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  189. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  190. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  191. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  192. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  193. package/types/components/Tabs/index.d.ts +0 -0
  194. package/types/components/Tabs/utils.d.ts +0 -0
  195. package/types/components/Tag/StyledTag.d.ts +0 -0
  196. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  197. package/types/components/Tag/index.d.ts +0 -0
  198. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  199. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  200. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  201. package/types/components/TextInput/index.d.ts +0 -0
  202. package/types/components/TimePicker/StyledTimePicker.d.ts +8 -0
  203. package/types/components/TimePicker/TimePickerAndroid.d.ts +3 -0
  204. package/types/components/TimePicker/TimePickerIOS.d.ts +3 -0
  205. package/types/components/TimePicker/__tests__/TimePicker.spec.d.ts +1 -0
  206. package/types/components/TimePicker/__tests__/TimePickerAndroid.spec.d.ts +1 -0
  207. package/types/components/TimePicker/__tests__/TimePickerIOS.spec.d.ts +1 -0
  208. package/types/components/TimePicker/index.d.ts +3 -0
  209. package/types/components/TimePicker/types.d.ts +49 -0
  210. package/types/components/Toast/StyledToast.d.ts +0 -0
  211. package/types/components/Toast/Toast.d.ts +0 -0
  212. package/types/components/Toast/ToastContainer.d.ts +0 -0
  213. package/types/components/Toast/ToastContext.d.ts +0 -0
  214. package/types/components/Toast/ToastProvider.d.ts +0 -0
  215. package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
  216. package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
  217. package/types/components/Toast/index.d.ts +0 -0
  218. package/types/components/Toast/types.d.ts +0 -0
  219. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  220. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  221. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  222. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -0
  223. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -0
  224. package/types/components/Toolbar/index.d.ts +0 -0
  225. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  226. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  227. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  228. package/types/components/Typography/Text/index.d.ts +0 -0
  229. package/types/components/Typography/index.d.ts +0 -0
  230. package/types/index.d.ts +2 -1
  231. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  232. package/types/theme/__tests__/index.spec.d.ts +0 -0
  233. package/types/theme/components/alert.d.ts +0 -0
  234. package/types/theme/components/avatar.d.ts +0 -0
  235. package/types/theme/components/badge.d.ts +0 -0
  236. package/types/theme/components/bottomNavigation.d.ts +0 -0
  237. package/types/theme/components/bottomSheet.d.ts +0 -0
  238. package/types/theme/components/button.d.ts +0 -0
  239. package/types/theme/components/card.d.ts +0 -0
  240. package/types/theme/components/checkbox.d.ts +0 -0
  241. package/types/theme/components/contentNavigator.d.ts +0 -0
  242. package/types/theme/components/divider.d.ts +0 -0
  243. package/types/theme/components/drawer.d.ts +0 -0
  244. package/types/theme/components/fab.d.ts +0 -0
  245. package/types/theme/components/icon.d.ts +0 -0
  246. package/types/theme/components/list.d.ts +0 -0
  247. package/types/theme/components/pinInput.d.ts +0 -0
  248. package/types/theme/components/progress.d.ts +0 -0
  249. package/types/theme/components/radio.d.ts +0 -0
  250. package/types/theme/components/sectionHeading.d.ts +0 -0
  251. package/types/theme/components/select.d.ts +4 -0
  252. package/types/theme/components/spinner.d.ts +0 -0
  253. package/types/theme/components/switch.d.ts +0 -0
  254. package/types/theme/components/tabs.d.ts +0 -0
  255. package/types/theme/components/tag.d.ts +0 -0
  256. package/types/theme/components/textInput.d.ts +0 -0
  257. package/types/theme/components/timePicker.d.ts +6 -0
  258. package/types/theme/components/toast.d.ts +0 -0
  259. package/types/theme/components/toolbar.d.ts +0 -0
  260. package/types/theme/components/typography.d.ts +0 -0
  261. package/types/theme/global/borders.d.ts +0 -0
  262. package/types/theme/global/colors.d.ts +0 -0
  263. package/types/theme/global/index.d.ts +0 -0
  264. package/types/theme/global/scale.d.ts +0 -0
  265. package/types/theme/global/space.d.ts +0 -0
  266. package/types/theme/global/typography.d.ts +0 -0
  267. package/types/theme/index.d.ts +2 -0
  268. package/types/types.d.ts +0 -0
  269. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  270. package/types/utils/helpers.d.ts +0 -0
  271. package/types/utils/hooks.d.ts +0 -0
  272. package/types/utils/scale.d.ts +0 -0
  273. package/src/components/Select/types.ts +0 -1
@@ -1,571 +1,1063 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`OptionList renders correctly 1`] = `
4
- <View
5
- style={
3
+ exports[`OptionList render isLoading correctly 1`] = `
4
+ <RCTScrollView
5
+ ListFooterComponent={
6
+ <View
7
+ style={
8
+ Object {
9
+ "alignItems": "center",
10
+ "display": "flex",
11
+ "height": 56,
12
+ }
13
+ }
14
+ >
15
+ <Spinner />
16
+ </View>
17
+ }
18
+ data={
6
19
  Array [
7
20
  Object {
8
- "padding": 16,
21
+ "text": "A",
22
+ "value": "a",
23
+ },
24
+ Object {
25
+ "text": "B",
26
+ "value": "b",
27
+ },
28
+ Object {
29
+ "text": "C",
30
+ "value": "c",
9
31
  },
10
- undefined,
11
32
  ]
12
33
  }
13
- >
14
- <View
15
- accessible={true}
16
- collapsable={false}
17
- focusable={true}
18
- nativeID="animatedComponent"
19
- onClick={[Function]}
20
- onResponderGrant={[Function]}
21
- onResponderMove={[Function]}
22
- onResponderRelease={[Function]}
23
- onResponderTerminate={[Function]}
24
- onResponderTerminationRequest={[Function]}
25
- onStartShouldSetResponder={[Function]}
26
- style={
27
- Object {
28
- "alignItems": "center",
29
- "backgroundColor": "#f1e9fb",
30
- "borderRadius": 4,
31
- "flexDirection": "row",
32
- "justifyContent": "space-between",
33
- "opacity": 1,
34
- "padding": 16,
35
- }
34
+ getItem={[Function]}
35
+ getItemCount={[Function]}
36
+ keyExtractor={[Function]}
37
+ onContentSizeChange={[Function]}
38
+ onEndReached={[Function]}
39
+ onEndReachedThreshold={0.1}
40
+ onLayout={[Function]}
41
+ onMomentumScrollBegin={[Function]}
42
+ onMomentumScrollEnd={[Function]}
43
+ onScroll={[Function]}
44
+ onScrollBeginDrag={[Function]}
45
+ onScrollEndDrag={[Function]}
46
+ onScrollToIndexFailed={[Function]}
47
+ removeClippedSubviews={false}
48
+ renderItem={[Function]}
49
+ scrollEventThrottle={50}
50
+ stickyHeaderIndices={Array []}
51
+ style={
52
+ Object {
53
+ "paddingHorizontal": 16,
36
54
  }
37
- >
55
+ }
56
+ viewabilityConfigCallbackPairs={Array []}
57
+ >
58
+ <View>
38
59
  <View
39
- style={
40
- Object {
41
- "flex": 1,
42
- }
43
- }
60
+ onLayout={[Function]}
61
+ style={null}
44
62
  >
45
- <Text
46
- style={
47
- Array [
63
+ <View>
64
+ <View
65
+ accessible={true}
66
+ collapsable={false}
67
+ focusable={true}
68
+ nativeID="animatedComponent"
69
+ onClick={[Function]}
70
+ onResponderGrant={[Function]}
71
+ onResponderMove={[Function]}
72
+ onResponderRelease={[Function]}
73
+ onResponderTerminate={[Function]}
74
+ onResponderTerminationRequest={[Function]}
75
+ onStartShouldSetResponder={[Function]}
76
+ style={
48
77
  Object {
49
- "color": "#292a2b",
50
- "fontFamily": "BeVietnamPro-Regular",
51
- "fontSize": 16,
52
- "letterSpacing": 0.48,
53
- "lineHeight": 24,
54
- },
55
- undefined,
56
- ]
57
- }
58
- themeFontSize="large"
59
- themeFontWeight="regular"
60
- themeIntent="body"
61
- >
62
- A
63
- </Text>
78
+ "alignItems": "center",
79
+ "backgroundColor": "#f1e9fb",
80
+ "borderRadius": 4,
81
+ "flexDirection": "row",
82
+ "justifyContent": "space-between",
83
+ "opacity": 1,
84
+ "padding": 16,
85
+ }
86
+ }
87
+ >
88
+ <View
89
+ style={
90
+ Object {
91
+ "flex": 1,
92
+ }
93
+ }
94
+ >
95
+ <Text
96
+ style={
97
+ Array [
98
+ Object {
99
+ "color": "#292a2b",
100
+ "fontFamily": "BeVietnamPro-Regular",
101
+ "fontSize": 16,
102
+ "letterSpacing": 0.48,
103
+ "lineHeight": 24,
104
+ },
105
+ undefined,
106
+ ]
107
+ }
108
+ themeFontSize="large"
109
+ themeFontWeight="regular"
110
+ themeIntent="body"
111
+ >
112
+ A
113
+ </Text>
114
+ </View>
115
+ </View>
116
+ </View>
64
117
  </View>
65
- </View>
66
- <View
67
- style={
68
- Array [
69
- Object {
70
- "marginTop": 4,
71
- },
72
- undefined,
73
- ]
74
- }
75
- />
76
- <View
77
- accessible={true}
78
- collapsable={false}
79
- focusable={true}
80
- nativeID="animatedComponent"
81
- onClick={[Function]}
82
- onResponderGrant={[Function]}
83
- onResponderMove={[Function]}
84
- onResponderRelease={[Function]}
85
- onResponderTerminate={[Function]}
86
- onResponderTerminationRequest={[Function]}
87
- onStartShouldSetResponder={[Function]}
88
- style={
89
- Object {
90
- "alignItems": "center",
91
- "backgroundColor": "#ffffff",
92
- "borderRadius": 4,
93
- "flexDirection": "row",
94
- "justifyContent": "space-between",
95
- "opacity": 1,
96
- "padding": 16,
97
- }
98
- }
99
- >
100
118
  <View
101
- style={
102
- Object {
103
- "flex": 1,
104
- }
105
- }
119
+ onLayout={[Function]}
120
+ style={null}
106
121
  >
107
- <Text
108
- style={
109
- Array [
122
+ <View>
123
+ <View
124
+ accessible={true}
125
+ collapsable={false}
126
+ focusable={true}
127
+ nativeID="animatedComponent"
128
+ onClick={[Function]}
129
+ onResponderGrant={[Function]}
130
+ onResponderMove={[Function]}
131
+ onResponderRelease={[Function]}
132
+ onResponderTerminate={[Function]}
133
+ onResponderTerminationRequest={[Function]}
134
+ onStartShouldSetResponder={[Function]}
135
+ style={
136
+ Object {
137
+ "alignItems": "center",
138
+ "backgroundColor": "#ffffff",
139
+ "borderRadius": 4,
140
+ "flexDirection": "row",
141
+ "justifyContent": "space-between",
142
+ "opacity": 1,
143
+ "padding": 16,
144
+ }
145
+ }
146
+ >
147
+ <View
148
+ style={
149
+ Object {
150
+ "flex": 1,
151
+ }
152
+ }
153
+ >
154
+ <Text
155
+ style={
156
+ Array [
157
+ Object {
158
+ "color": "#292a2b",
159
+ "fontFamily": "BeVietnamPro-Regular",
160
+ "fontSize": 16,
161
+ "letterSpacing": 0.48,
162
+ "lineHeight": 24,
163
+ },
164
+ undefined,
165
+ ]
166
+ }
167
+ themeFontSize="large"
168
+ themeFontWeight="regular"
169
+ themeIntent="body"
170
+ >
171
+ B
172
+ </Text>
173
+ </View>
174
+ </View>
175
+ </View>
176
+ </View>
177
+ <View
178
+ onLayout={[Function]}
179
+ style={null}
180
+ >
181
+ <View>
182
+ <View
183
+ accessible={true}
184
+ collapsable={false}
185
+ focusable={true}
186
+ nativeID="animatedComponent"
187
+ onClick={[Function]}
188
+ onResponderGrant={[Function]}
189
+ onResponderMove={[Function]}
190
+ onResponderRelease={[Function]}
191
+ onResponderTerminate={[Function]}
192
+ onResponderTerminationRequest={[Function]}
193
+ onStartShouldSetResponder={[Function]}
194
+ style={
110
195
  Object {
111
- "color": "#292a2b",
112
- "fontFamily": "BeVietnamPro-Regular",
113
- "fontSize": 16,
114
- "letterSpacing": 0.48,
115
- "lineHeight": 24,
116
- },
117
- undefined,
118
- ]
196
+ "alignItems": "center",
197
+ "backgroundColor": "#ffffff",
198
+ "borderRadius": 4,
199
+ "flexDirection": "row",
200
+ "justifyContent": "space-between",
201
+ "opacity": 1,
202
+ "padding": 16,
203
+ }
204
+ }
205
+ >
206
+ <View
207
+ style={
208
+ Object {
209
+ "flex": 1,
210
+ }
211
+ }
212
+ >
213
+ <Text
214
+ style={
215
+ Array [
216
+ Object {
217
+ "color": "#292a2b",
218
+ "fontFamily": "BeVietnamPro-Regular",
219
+ "fontSize": 16,
220
+ "letterSpacing": 0.48,
221
+ "lineHeight": 24,
222
+ },
223
+ undefined,
224
+ ]
225
+ }
226
+ themeFontSize="large"
227
+ themeFontWeight="regular"
228
+ themeIntent="body"
229
+ >
230
+ C
231
+ </Text>
232
+ </View>
233
+ </View>
234
+ </View>
235
+ </View>
236
+ <View
237
+ onLayout={[Function]}
238
+ >
239
+ <View
240
+ style={
241
+ Object {
242
+ "alignItems": "center",
243
+ "display": "flex",
244
+ "height": 56,
245
+ }
119
246
  }
120
- themeFontSize="large"
121
- themeFontWeight="regular"
122
- themeIntent="body"
123
247
  >
124
- B
125
- </Text>
248
+ <View
249
+ style={
250
+ Array [
251
+ Object {},
252
+ undefined,
253
+ ]
254
+ }
255
+ >
256
+ <View
257
+ style={
258
+ Array [
259
+ Object {
260
+ "alignItems": "center",
261
+ "height": "100%",
262
+ "justifyContent": "center",
263
+ },
264
+ undefined,
265
+ ]
266
+ }
267
+ >
268
+ <View
269
+ collapsable={false}
270
+ nativeID="animatedComponent"
271
+ style={
272
+ Object {
273
+ "transform": Array [
274
+ Object {
275
+ "rotate": "0deg",
276
+ },
277
+ ],
278
+ }
279
+ }
280
+ >
281
+ <View
282
+ collapsable={false}
283
+ nativeID="animatedComponent"
284
+ style={
285
+ Array [
286
+ Object {
287
+ "flexDirection": "row",
288
+ "marginBottom": 8,
289
+ },
290
+ Object {},
291
+ ]
292
+ }
293
+ themePosition="top"
294
+ >
295
+ <View
296
+ collapsable={false}
297
+ nativeID="animatedComponent"
298
+ style={
299
+ Array [
300
+ Object {
301
+ "backgroundColor": "#7622d7",
302
+ "borderRadius": 8,
303
+ "height": 16,
304
+ "opacity": 1,
305
+ "width": 16,
306
+ },
307
+ Object {},
308
+ ]
309
+ }
310
+ themePosition="topLeft"
311
+ />
312
+ <View
313
+ collapsable={false}
314
+ nativeID="animatedComponent"
315
+ style={
316
+ Array [
317
+ Object {
318
+ "backgroundColor": "#7622d7",
319
+ "borderRadius": 8,
320
+ "height": 16,
321
+ "marginLeft": 8,
322
+ "opacity": 0.7,
323
+ "width": 16,
324
+ },
325
+ Object {},
326
+ ]
327
+ }
328
+ themePosition="topRight"
329
+ />
330
+ </View>
331
+ <View
332
+ collapsable={false}
333
+ nativeID="animatedComponent"
334
+ style={
335
+ Array [
336
+ Object {
337
+ "flexDirection": "row",
338
+ "marginBottom": 0,
339
+ },
340
+ Object {},
341
+ ]
342
+ }
343
+ themePosition="bottom"
344
+ >
345
+ <View
346
+ collapsable={false}
347
+ nativeID="animatedComponent"
348
+ style={
349
+ Array [
350
+ Object {
351
+ "backgroundColor": "#7622d7",
352
+ "borderRadius": 8,
353
+ "height": 16,
354
+ "opacity": 0.5,
355
+ "width": 16,
356
+ },
357
+ Object {},
358
+ ]
359
+ }
360
+ themePosition="bottomLeft"
361
+ />
362
+ <View
363
+ collapsable={false}
364
+ nativeID="animatedComponent"
365
+ style={
366
+ Array [
367
+ Object {
368
+ "backgroundColor": "#7622d7",
369
+ "borderRadius": 8,
370
+ "height": 16,
371
+ "marginLeft": 8,
372
+ "opacity": 0.3,
373
+ "width": 16,
374
+ },
375
+ Object {},
376
+ ]
377
+ }
378
+ themePosition="bottomRight"
379
+ />
380
+ </View>
381
+ </View>
382
+ </View>
383
+ </View>
384
+ </View>
126
385
  </View>
127
386
  </View>
128
- <View
129
- style={
130
- Array [
131
- Object {
132
- "marginTop": 4,
133
- },
134
- undefined,
135
- ]
136
- }
137
- />
138
- <View
139
- accessible={true}
140
- collapsable={false}
141
- focusable={true}
142
- nativeID="animatedComponent"
143
- onClick={[Function]}
144
- onResponderGrant={[Function]}
145
- onResponderMove={[Function]}
146
- onResponderRelease={[Function]}
147
- onResponderTerminate={[Function]}
148
- onResponderTerminationRequest={[Function]}
149
- onStartShouldSetResponder={[Function]}
150
- style={
387
+ </RCTScrollView>
388
+ `;
389
+
390
+ exports[`OptionList renders correctly 1`] = `
391
+ <RCTScrollView
392
+ ListFooterComponent={null}
393
+ data={
394
+ Array [
151
395
  Object {
152
- "alignItems": "center",
153
- "backgroundColor": "#ffffff",
154
- "borderRadius": 4,
155
- "flexDirection": "row",
156
- "justifyContent": "space-between",
157
- "opacity": 1,
158
- "padding": 16,
159
- }
396
+ "text": "A",
397
+ "value": "a",
398
+ },
399
+ Object {
400
+ "text": "B",
401
+ "value": "b",
402
+ },
403
+ Object {
404
+ "text": "C",
405
+ "value": "c",
406
+ },
407
+ ]
408
+ }
409
+ getItem={[Function]}
410
+ getItemCount={[Function]}
411
+ keyExtractor={[Function]}
412
+ onContentSizeChange={[Function]}
413
+ onEndReached={[Function]}
414
+ onEndReachedThreshold={0.1}
415
+ onLayout={[Function]}
416
+ onMomentumScrollBegin={[Function]}
417
+ onMomentumScrollEnd={[Function]}
418
+ onScroll={[Function]}
419
+ onScrollBeginDrag={[Function]}
420
+ onScrollEndDrag={[Function]}
421
+ onScrollToIndexFailed={[Function]}
422
+ removeClippedSubviews={false}
423
+ renderItem={[Function]}
424
+ scrollEventThrottle={50}
425
+ stickyHeaderIndices={Array []}
426
+ style={
427
+ Object {
428
+ "paddingHorizontal": 16,
160
429
  }
161
- >
430
+ }
431
+ viewabilityConfigCallbackPairs={Array []}
432
+ >
433
+ <View>
162
434
  <View
163
- style={
164
- Object {
165
- "flex": 1,
166
- }
167
- }
435
+ onLayout={[Function]}
436
+ style={null}
168
437
  >
169
- <Text
170
- style={
171
- Array [
438
+ <View>
439
+ <View
440
+ accessible={true}
441
+ collapsable={false}
442
+ focusable={true}
443
+ nativeID="animatedComponent"
444
+ onClick={[Function]}
445
+ onResponderGrant={[Function]}
446
+ onResponderMove={[Function]}
447
+ onResponderRelease={[Function]}
448
+ onResponderTerminate={[Function]}
449
+ onResponderTerminationRequest={[Function]}
450
+ onStartShouldSetResponder={[Function]}
451
+ style={
172
452
  Object {
173
- "color": "#292a2b",
174
- "fontFamily": "BeVietnamPro-Regular",
175
- "fontSize": 16,
176
- "letterSpacing": 0.48,
177
- "lineHeight": 24,
178
- },
179
- undefined,
180
- ]
181
- }
182
- themeFontSize="large"
183
- themeFontWeight="regular"
184
- themeIntent="body"
185
- >
186
- C
187
- </Text>
453
+ "alignItems": "center",
454
+ "backgroundColor": "#f1e9fb",
455
+ "borderRadius": 4,
456
+ "flexDirection": "row",
457
+ "justifyContent": "space-between",
458
+ "opacity": 1,
459
+ "padding": 16,
460
+ }
461
+ }
462
+ >
463
+ <View
464
+ style={
465
+ Object {
466
+ "flex": 1,
467
+ }
468
+ }
469
+ >
470
+ <Text
471
+ style={
472
+ Array [
473
+ Object {
474
+ "color": "#292a2b",
475
+ "fontFamily": "BeVietnamPro-Regular",
476
+ "fontSize": 16,
477
+ "letterSpacing": 0.48,
478
+ "lineHeight": 24,
479
+ },
480
+ undefined,
481
+ ]
482
+ }
483
+ themeFontSize="large"
484
+ themeFontWeight="regular"
485
+ themeIntent="body"
486
+ >
487
+ A
488
+ </Text>
489
+ </View>
490
+ </View>
491
+ </View>
492
+ </View>
493
+ <View
494
+ onLayout={[Function]}
495
+ style={null}
496
+ >
497
+ <View>
498
+ <View
499
+ accessible={true}
500
+ collapsable={false}
501
+ focusable={true}
502
+ nativeID="animatedComponent"
503
+ onClick={[Function]}
504
+ onResponderGrant={[Function]}
505
+ onResponderMove={[Function]}
506
+ onResponderRelease={[Function]}
507
+ onResponderTerminate={[Function]}
508
+ onResponderTerminationRequest={[Function]}
509
+ onStartShouldSetResponder={[Function]}
510
+ style={
511
+ Object {
512
+ "alignItems": "center",
513
+ "backgroundColor": "#ffffff",
514
+ "borderRadius": 4,
515
+ "flexDirection": "row",
516
+ "justifyContent": "space-between",
517
+ "opacity": 1,
518
+ "padding": 16,
519
+ }
520
+ }
521
+ >
522
+ <View
523
+ style={
524
+ Object {
525
+ "flex": 1,
526
+ }
527
+ }
528
+ >
529
+ <Text
530
+ style={
531
+ Array [
532
+ Object {
533
+ "color": "#292a2b",
534
+ "fontFamily": "BeVietnamPro-Regular",
535
+ "fontSize": 16,
536
+ "letterSpacing": 0.48,
537
+ "lineHeight": 24,
538
+ },
539
+ undefined,
540
+ ]
541
+ }
542
+ themeFontSize="large"
543
+ themeFontWeight="regular"
544
+ themeIntent="body"
545
+ >
546
+ B
547
+ </Text>
548
+ </View>
549
+ </View>
550
+ </View>
551
+ </View>
552
+ <View
553
+ onLayout={[Function]}
554
+ style={null}
555
+ >
556
+ <View>
557
+ <View
558
+ accessible={true}
559
+ collapsable={false}
560
+ focusable={true}
561
+ nativeID="animatedComponent"
562
+ onClick={[Function]}
563
+ onResponderGrant={[Function]}
564
+ onResponderMove={[Function]}
565
+ onResponderRelease={[Function]}
566
+ onResponderTerminate={[Function]}
567
+ onResponderTerminationRequest={[Function]}
568
+ onStartShouldSetResponder={[Function]}
569
+ style={
570
+ Object {
571
+ "alignItems": "center",
572
+ "backgroundColor": "#ffffff",
573
+ "borderRadius": 4,
574
+ "flexDirection": "row",
575
+ "justifyContent": "space-between",
576
+ "opacity": 1,
577
+ "padding": 16,
578
+ }
579
+ }
580
+ >
581
+ <View
582
+ style={
583
+ Object {
584
+ "flex": 1,
585
+ }
586
+ }
587
+ >
588
+ <Text
589
+ style={
590
+ Array [
591
+ Object {
592
+ "color": "#292a2b",
593
+ "fontFamily": "BeVietnamPro-Regular",
594
+ "fontSize": 16,
595
+ "letterSpacing": 0.48,
596
+ "lineHeight": 24,
597
+ },
598
+ undefined,
599
+ ]
600
+ }
601
+ themeFontSize="large"
602
+ themeFontWeight="regular"
603
+ themeIntent="body"
604
+ >
605
+ C
606
+ </Text>
607
+ </View>
608
+ </View>
609
+ </View>
188
610
  </View>
189
611
  </View>
190
- </View>
612
+ </RCTScrollView>
191
613
  `;
192
614
 
193
615
  exports[`OptionList trigger onPress correctly on select new value 1`] = `
194
- <View
195
- style={
616
+ <RCTScrollView
617
+ ListFooterComponent={null}
618
+ data={
196
619
  Array [
197
620
  Object {
198
- "padding": 16,
621
+ "text": "A",
622
+ "value": "a",
623
+ },
624
+ Object {
625
+ "text": "B",
626
+ "value": "b",
627
+ },
628
+ Object {
629
+ "text": "C",
630
+ "value": "c",
199
631
  },
200
- undefined,
201
632
  ]
202
633
  }
203
- >
204
- <View
205
- accessible={true}
206
- collapsable={false}
207
- focusable={true}
208
- nativeID="animatedComponent"
209
- onClick={[Function]}
210
- onResponderGrant={[Function]}
211
- onResponderMove={[Function]}
212
- onResponderRelease={[Function]}
213
- onResponderTerminate={[Function]}
214
- onResponderTerminationRequest={[Function]}
215
- onStartShouldSetResponder={[Function]}
216
- style={
217
- Object {
218
- "alignItems": "center",
219
- "backgroundColor": "#f1e9fb",
220
- "borderRadius": 4,
221
- "flexDirection": "row",
222
- "justifyContent": "space-between",
223
- "opacity": 1,
224
- "padding": 16,
225
- }
634
+ getItem={[Function]}
635
+ getItemCount={[Function]}
636
+ keyExtractor={[Function]}
637
+ onContentSizeChange={[Function]}
638
+ onEndReached={[Function]}
639
+ onEndReachedThreshold={0.1}
640
+ onLayout={[Function]}
641
+ onMomentumScrollBegin={[Function]}
642
+ onMomentumScrollEnd={[Function]}
643
+ onScroll={[Function]}
644
+ onScrollBeginDrag={[Function]}
645
+ onScrollEndDrag={[Function]}
646
+ onScrollToIndexFailed={[Function]}
647
+ removeClippedSubviews={false}
648
+ renderItem={[Function]}
649
+ scrollEventThrottle={50}
650
+ stickyHeaderIndices={Array []}
651
+ style={
652
+ Object {
653
+ "paddingHorizontal": 16,
226
654
  }
227
- >
655
+ }
656
+ viewabilityConfigCallbackPairs={Array []}
657
+ >
658
+ <View>
228
659
  <View
229
- style={
230
- Object {
231
- "flex": 1,
232
- }
233
- }
660
+ onLayout={[Function]}
661
+ style={null}
234
662
  >
235
- <Text
236
- style={
237
- Array [
663
+ <View>
664
+ <View
665
+ accessible={true}
666
+ collapsable={false}
667
+ focusable={true}
668
+ nativeID="animatedComponent"
669
+ onClick={[Function]}
670
+ onResponderGrant={[Function]}
671
+ onResponderMove={[Function]}
672
+ onResponderRelease={[Function]}
673
+ onResponderTerminate={[Function]}
674
+ onResponderTerminationRequest={[Function]}
675
+ onStartShouldSetResponder={[Function]}
676
+ style={
238
677
  Object {
239
- "color": "#292a2b",
240
- "fontFamily": "BeVietnamPro-Regular",
241
- "fontSize": 16,
242
- "letterSpacing": 0.48,
243
- "lineHeight": 24,
244
- },
245
- undefined,
246
- ]
247
- }
248
- themeFontSize="large"
249
- themeFontWeight="regular"
250
- themeIntent="body"
251
- >
252
- A
253
- </Text>
678
+ "alignItems": "center",
679
+ "backgroundColor": "#f1e9fb",
680
+ "borderRadius": 4,
681
+ "flexDirection": "row",
682
+ "justifyContent": "space-between",
683
+ "opacity": 1,
684
+ "padding": 16,
685
+ }
686
+ }
687
+ >
688
+ <View
689
+ style={
690
+ Object {
691
+ "flex": 1,
692
+ }
693
+ }
694
+ >
695
+ <Text
696
+ style={
697
+ Array [
698
+ Object {
699
+ "color": "#292a2b",
700
+ "fontFamily": "BeVietnamPro-Regular",
701
+ "fontSize": 16,
702
+ "letterSpacing": 0.48,
703
+ "lineHeight": 24,
704
+ },
705
+ undefined,
706
+ ]
707
+ }
708
+ themeFontSize="large"
709
+ themeFontWeight="regular"
710
+ themeIntent="body"
711
+ >
712
+ A
713
+ </Text>
714
+ </View>
715
+ </View>
716
+ </View>
254
717
  </View>
255
- </View>
256
- <View
257
- style={
258
- Array [
259
- Object {
260
- "marginTop": 4,
261
- },
262
- undefined,
263
- ]
264
- }
265
- />
266
- <View
267
- accessible={true}
268
- collapsable={false}
269
- focusable={true}
270
- nativeID="animatedComponent"
271
- onClick={[Function]}
272
- onResponderGrant={[Function]}
273
- onResponderMove={[Function]}
274
- onResponderRelease={[Function]}
275
- onResponderTerminate={[Function]}
276
- onResponderTerminationRequest={[Function]}
277
- onStartShouldSetResponder={[Function]}
278
- style={
279
- Object {
280
- "alignItems": "center",
281
- "backgroundColor": "#ffffff",
282
- "borderRadius": 4,
283
- "flexDirection": "row",
284
- "justifyContent": "space-between",
285
- "opacity": 1,
286
- "padding": 16,
287
- }
288
- }
289
- >
290
718
  <View
291
- style={
292
- Object {
293
- "flex": 1,
294
- }
295
- }
719
+ onLayout={[Function]}
720
+ style={null}
296
721
  >
297
- <Text
298
- style={
299
- Array [
722
+ <View>
723
+ <View
724
+ accessible={true}
725
+ collapsable={false}
726
+ focusable={true}
727
+ nativeID="animatedComponent"
728
+ onClick={[Function]}
729
+ onResponderGrant={[Function]}
730
+ onResponderMove={[Function]}
731
+ onResponderRelease={[Function]}
732
+ onResponderTerminate={[Function]}
733
+ onResponderTerminationRequest={[Function]}
734
+ onStartShouldSetResponder={[Function]}
735
+ style={
300
736
  Object {
301
- "color": "#292a2b",
302
- "fontFamily": "BeVietnamPro-Regular",
303
- "fontSize": 16,
304
- "letterSpacing": 0.48,
305
- "lineHeight": 24,
306
- },
307
- undefined,
308
- ]
309
- }
310
- themeFontSize="large"
311
- themeFontWeight="regular"
312
- themeIntent="body"
313
- >
314
- B
315
- </Text>
737
+ "alignItems": "center",
738
+ "backgroundColor": "#ffffff",
739
+ "borderRadius": 4,
740
+ "flexDirection": "row",
741
+ "justifyContent": "space-between",
742
+ "opacity": 1,
743
+ "padding": 16,
744
+ }
745
+ }
746
+ >
747
+ <View
748
+ style={
749
+ Object {
750
+ "flex": 1,
751
+ }
752
+ }
753
+ >
754
+ <Text
755
+ style={
756
+ Array [
757
+ Object {
758
+ "color": "#292a2b",
759
+ "fontFamily": "BeVietnamPro-Regular",
760
+ "fontSize": 16,
761
+ "letterSpacing": 0.48,
762
+ "lineHeight": 24,
763
+ },
764
+ undefined,
765
+ ]
766
+ }
767
+ themeFontSize="large"
768
+ themeFontWeight="regular"
769
+ themeIntent="body"
770
+ >
771
+ B
772
+ </Text>
773
+ </View>
774
+ </View>
775
+ </View>
316
776
  </View>
317
- </View>
318
- <View
319
- style={
320
- Array [
321
- Object {
322
- "marginTop": 4,
323
- },
324
- undefined,
325
- ]
326
- }
327
- />
328
- <View
329
- accessible={true}
330
- collapsable={false}
331
- focusable={true}
332
- nativeID="animatedComponent"
333
- onClick={[Function]}
334
- onResponderGrant={[Function]}
335
- onResponderMove={[Function]}
336
- onResponderRelease={[Function]}
337
- onResponderTerminate={[Function]}
338
- onResponderTerminationRequest={[Function]}
339
- onStartShouldSetResponder={[Function]}
340
- style={
341
- Object {
342
- "alignItems": "center",
343
- "backgroundColor": "#ffffff",
344
- "borderRadius": 4,
345
- "flexDirection": "row",
346
- "justifyContent": "space-between",
347
- "opacity": 1,
348
- "padding": 16,
349
- }
350
- }
351
- >
352
777
  <View
353
- style={
354
- Object {
355
- "flex": 1,
356
- }
357
- }
778
+ onLayout={[Function]}
779
+ style={null}
358
780
  >
359
- <Text
360
- style={
361
- Array [
781
+ <View>
782
+ <View
783
+ accessible={true}
784
+ collapsable={false}
785
+ focusable={true}
786
+ nativeID="animatedComponent"
787
+ onClick={[Function]}
788
+ onResponderGrant={[Function]}
789
+ onResponderMove={[Function]}
790
+ onResponderRelease={[Function]}
791
+ onResponderTerminate={[Function]}
792
+ onResponderTerminationRequest={[Function]}
793
+ onStartShouldSetResponder={[Function]}
794
+ style={
362
795
  Object {
363
- "color": "#292a2b",
364
- "fontFamily": "BeVietnamPro-Regular",
365
- "fontSize": 16,
366
- "letterSpacing": 0.48,
367
- "lineHeight": 24,
368
- },
369
- undefined,
370
- ]
371
- }
372
- themeFontSize="large"
373
- themeFontWeight="regular"
374
- themeIntent="body"
375
- >
376
- C
377
- </Text>
796
+ "alignItems": "center",
797
+ "backgroundColor": "#ffffff",
798
+ "borderRadius": 4,
799
+ "flexDirection": "row",
800
+ "justifyContent": "space-between",
801
+ "opacity": 1,
802
+ "padding": 16,
803
+ }
804
+ }
805
+ >
806
+ <View
807
+ style={
808
+ Object {
809
+ "flex": 1,
810
+ }
811
+ }
812
+ >
813
+ <Text
814
+ style={
815
+ Array [
816
+ Object {
817
+ "color": "#292a2b",
818
+ "fontFamily": "BeVietnamPro-Regular",
819
+ "fontSize": 16,
820
+ "letterSpacing": 0.48,
821
+ "lineHeight": 24,
822
+ },
823
+ undefined,
824
+ ]
825
+ }
826
+ themeFontSize="large"
827
+ themeFontWeight="regular"
828
+ themeIntent="body"
829
+ >
830
+ C
831
+ </Text>
832
+ </View>
833
+ </View>
834
+ </View>
378
835
  </View>
379
836
  </View>
380
- </View>
837
+ </RCTScrollView>
381
838
  `;
382
839
 
383
840
  exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
384
- <View
385
- style={
841
+ <RCTScrollView
842
+ ListFooterComponent={null}
843
+ data={
386
844
  Array [
387
845
  Object {
388
- "padding": 16,
846
+ "text": "A",
847
+ "value": "a",
848
+ },
849
+ Object {
850
+ "text": "B",
851
+ "value": "b",
852
+ },
853
+ Object {
854
+ "text": "C",
855
+ "value": "c",
389
856
  },
390
- undefined,
391
857
  ]
392
858
  }
393
- >
394
- <View
395
- accessible={true}
396
- collapsable={false}
397
- focusable={true}
398
- nativeID="animatedComponent"
399
- onClick={[Function]}
400
- onResponderGrant={[Function]}
401
- onResponderMove={[Function]}
402
- onResponderRelease={[Function]}
403
- onResponderTerminate={[Function]}
404
- onResponderTerminationRequest={[Function]}
405
- onStartShouldSetResponder={[Function]}
406
- style={
407
- Object {
408
- "alignItems": "center",
409
- "backgroundColor": "#f1e9fb",
410
- "borderRadius": 4,
411
- "flexDirection": "row",
412
- "justifyContent": "space-between",
413
- "opacity": 1,
414
- "padding": 16,
415
- }
859
+ getItem={[Function]}
860
+ getItemCount={[Function]}
861
+ keyExtractor={[Function]}
862
+ onContentSizeChange={[Function]}
863
+ onEndReached={[Function]}
864
+ onEndReachedThreshold={0.1}
865
+ onLayout={[Function]}
866
+ onMomentumScrollBegin={[Function]}
867
+ onMomentumScrollEnd={[Function]}
868
+ onScroll={[Function]}
869
+ onScrollBeginDrag={[Function]}
870
+ onScrollEndDrag={[Function]}
871
+ onScrollToIndexFailed={[Function]}
872
+ removeClippedSubviews={false}
873
+ renderItem={[Function]}
874
+ scrollEventThrottle={50}
875
+ stickyHeaderIndices={Array []}
876
+ style={
877
+ Object {
878
+ "paddingHorizontal": 16,
416
879
  }
417
- >
880
+ }
881
+ viewabilityConfigCallbackPairs={Array []}
882
+ >
883
+ <View>
418
884
  <View
419
- style={
420
- Object {
421
- "flex": 1,
422
- }
423
- }
885
+ onLayout={[Function]}
886
+ style={null}
424
887
  >
425
- <Text
426
- style={
427
- Array [
888
+ <View>
889
+ <View
890
+ accessible={true}
891
+ collapsable={false}
892
+ focusable={true}
893
+ nativeID="animatedComponent"
894
+ onClick={[Function]}
895
+ onResponderGrant={[Function]}
896
+ onResponderMove={[Function]}
897
+ onResponderRelease={[Function]}
898
+ onResponderTerminate={[Function]}
899
+ onResponderTerminationRequest={[Function]}
900
+ onStartShouldSetResponder={[Function]}
901
+ style={
428
902
  Object {
429
- "color": "#292a2b",
430
- "fontFamily": "BeVietnamPro-Regular",
431
- "fontSize": 16,
432
- "letterSpacing": 0.48,
433
- "lineHeight": 24,
434
- },
435
- undefined,
436
- ]
437
- }
438
- themeFontSize="large"
439
- themeFontWeight="regular"
440
- themeIntent="body"
441
- >
442
- A
443
- </Text>
903
+ "alignItems": "center",
904
+ "backgroundColor": "#f1e9fb",
905
+ "borderRadius": 4,
906
+ "flexDirection": "row",
907
+ "justifyContent": "space-between",
908
+ "opacity": 1,
909
+ "padding": 16,
910
+ }
911
+ }
912
+ >
913
+ <View
914
+ style={
915
+ Object {
916
+ "flex": 1,
917
+ }
918
+ }
919
+ >
920
+ <Text
921
+ style={
922
+ Array [
923
+ Object {
924
+ "color": "#292a2b",
925
+ "fontFamily": "BeVietnamPro-Regular",
926
+ "fontSize": 16,
927
+ "letterSpacing": 0.48,
928
+ "lineHeight": 24,
929
+ },
930
+ undefined,
931
+ ]
932
+ }
933
+ themeFontSize="large"
934
+ themeFontWeight="regular"
935
+ themeIntent="body"
936
+ >
937
+ A
938
+ </Text>
939
+ </View>
940
+ </View>
941
+ </View>
444
942
  </View>
445
- </View>
446
- <View
447
- style={
448
- Array [
449
- Object {
450
- "marginTop": 4,
451
- },
452
- undefined,
453
- ]
454
- }
455
- />
456
- <View
457
- accessible={true}
458
- collapsable={false}
459
- focusable={true}
460
- nativeID="animatedComponent"
461
- onClick={[Function]}
462
- onResponderGrant={[Function]}
463
- onResponderMove={[Function]}
464
- onResponderRelease={[Function]}
465
- onResponderTerminate={[Function]}
466
- onResponderTerminationRequest={[Function]}
467
- onStartShouldSetResponder={[Function]}
468
- style={
469
- Object {
470
- "alignItems": "center",
471
- "backgroundColor": "#ffffff",
472
- "borderRadius": 4,
473
- "flexDirection": "row",
474
- "justifyContent": "space-between",
475
- "opacity": 1,
476
- "padding": 16,
477
- }
478
- }
479
- >
480
943
  <View
481
- style={
482
- Object {
483
- "flex": 1,
484
- }
485
- }
944
+ onLayout={[Function]}
945
+ style={null}
486
946
  >
487
- <Text
488
- style={
489
- Array [
947
+ <View>
948
+ <View
949
+ accessible={true}
950
+ collapsable={false}
951
+ focusable={true}
952
+ nativeID="animatedComponent"
953
+ onClick={[Function]}
954
+ onResponderGrant={[Function]}
955
+ onResponderMove={[Function]}
956
+ onResponderRelease={[Function]}
957
+ onResponderTerminate={[Function]}
958
+ onResponderTerminationRequest={[Function]}
959
+ onStartShouldSetResponder={[Function]}
960
+ style={
490
961
  Object {
491
- "color": "#292a2b",
492
- "fontFamily": "BeVietnamPro-Regular",
493
- "fontSize": 16,
494
- "letterSpacing": 0.48,
495
- "lineHeight": 24,
496
- },
497
- undefined,
498
- ]
499
- }
500
- themeFontSize="large"
501
- themeFontWeight="regular"
502
- themeIntent="body"
503
- >
504
- B
505
- </Text>
962
+ "alignItems": "center",
963
+ "backgroundColor": "#ffffff",
964
+ "borderRadius": 4,
965
+ "flexDirection": "row",
966
+ "justifyContent": "space-between",
967
+ "opacity": 1,
968
+ "padding": 16,
969
+ }
970
+ }
971
+ >
972
+ <View
973
+ style={
974
+ Object {
975
+ "flex": 1,
976
+ }
977
+ }
978
+ >
979
+ <Text
980
+ style={
981
+ Array [
982
+ Object {
983
+ "color": "#292a2b",
984
+ "fontFamily": "BeVietnamPro-Regular",
985
+ "fontSize": 16,
986
+ "letterSpacing": 0.48,
987
+ "lineHeight": 24,
988
+ },
989
+ undefined,
990
+ ]
991
+ }
992
+ themeFontSize="large"
993
+ themeFontWeight="regular"
994
+ themeIntent="body"
995
+ >
996
+ B
997
+ </Text>
998
+ </View>
999
+ </View>
1000
+ </View>
506
1001
  </View>
507
- </View>
508
- <View
509
- style={
510
- Array [
511
- Object {
512
- "marginTop": 4,
513
- },
514
- undefined,
515
- ]
516
- }
517
- />
518
- <View
519
- accessible={true}
520
- collapsable={false}
521
- focusable={true}
522
- nativeID="animatedComponent"
523
- onClick={[Function]}
524
- onResponderGrant={[Function]}
525
- onResponderMove={[Function]}
526
- onResponderRelease={[Function]}
527
- onResponderTerminate={[Function]}
528
- onResponderTerminationRequest={[Function]}
529
- onStartShouldSetResponder={[Function]}
530
- style={
531
- Object {
532
- "alignItems": "center",
533
- "backgroundColor": "#ffffff",
534
- "borderRadius": 4,
535
- "flexDirection": "row",
536
- "justifyContent": "space-between",
537
- "opacity": 1,
538
- "padding": 16,
539
- }
540
- }
541
- >
542
1002
  <View
543
- style={
544
- Object {
545
- "flex": 1,
546
- }
547
- }
1003
+ onLayout={[Function]}
1004
+ style={null}
548
1005
  >
549
- <Text
550
- style={
551
- Array [
1006
+ <View>
1007
+ <View
1008
+ accessible={true}
1009
+ collapsable={false}
1010
+ focusable={true}
1011
+ nativeID="animatedComponent"
1012
+ onClick={[Function]}
1013
+ onResponderGrant={[Function]}
1014
+ onResponderMove={[Function]}
1015
+ onResponderRelease={[Function]}
1016
+ onResponderTerminate={[Function]}
1017
+ onResponderTerminationRequest={[Function]}
1018
+ onStartShouldSetResponder={[Function]}
1019
+ style={
552
1020
  Object {
553
- "color": "#292a2b",
554
- "fontFamily": "BeVietnamPro-Regular",
555
- "fontSize": 16,
556
- "letterSpacing": 0.48,
557
- "lineHeight": 24,
558
- },
559
- undefined,
560
- ]
561
- }
562
- themeFontSize="large"
563
- themeFontWeight="regular"
564
- themeIntent="body"
565
- >
566
- C
567
- </Text>
1021
+ "alignItems": "center",
1022
+ "backgroundColor": "#ffffff",
1023
+ "borderRadius": 4,
1024
+ "flexDirection": "row",
1025
+ "justifyContent": "space-between",
1026
+ "opacity": 1,
1027
+ "padding": 16,
1028
+ }
1029
+ }
1030
+ >
1031
+ <View
1032
+ style={
1033
+ Object {
1034
+ "flex": 1,
1035
+ }
1036
+ }
1037
+ >
1038
+ <Text
1039
+ style={
1040
+ Array [
1041
+ Object {
1042
+ "color": "#292a2b",
1043
+ "fontFamily": "BeVietnamPro-Regular",
1044
+ "fontSize": 16,
1045
+ "letterSpacing": 0.48,
1046
+ "lineHeight": 24,
1047
+ },
1048
+ undefined,
1049
+ ]
1050
+ }
1051
+ themeFontSize="large"
1052
+ themeFontWeight="regular"
1053
+ themeIntent="body"
1054
+ >
1055
+ C
1056
+ </Text>
1057
+ </View>
1058
+ </View>
1059
+ </View>
568
1060
  </View>
569
1061
  </View>
570
- </View>
1062
+ </RCTScrollView>
571
1063
  `;