@hero-design/rn 8.24.0-alpha.1 → 8.25.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 (295) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/.turbo/turbo-publish:npm.log +0 -9
  3. package/es/index.js +144 -166
  4. package/lib/index.js +144 -166
  5. package/package.json +5 -5
  6. package/src/components/Carousel/CardCarousel.tsx +23 -7
  7. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +177 -70
  8. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +294 -1
  9. package/src/components/Error/StyledError.tsx +2 -0
  10. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  11. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  12. package/src/components/Spinner/AnimatedSpinner.tsx +2 -2
  13. package/src/components/Success/__tests__/index.spec.tsx +6 -0
  14. package/src/components/Success/index.tsx +19 -0
  15. package/src/components/Tabs/{ScrollableTabsV2/SceneView.tsx → SceneView.tsx} +2 -2
  16. package/src/components/Tabs/ScrollableTabs.tsx +54 -48
  17. package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/SceneView.spec.tsx +3 -3
  18. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +86 -28
  19. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1687 -49
  20. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1213 -29
  21. package/src/components/Tabs/__tests__/index.spec.tsx +58 -14
  22. package/src/components/Tabs/index.tsx +108 -102
  23. package/src/components/Tabs/useIsFocused.tsx +19 -0
  24. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  25. package/src/theme/components/error.ts +6 -1
  26. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  27. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  28. package/types/components/Accordion/index.d.ts +0 -0
  29. package/types/components/Alert/StyledAlert.d.ts +0 -0
  30. package/types/components/Alert/index.d.ts +0 -0
  31. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  32. package/types/components/Attachment/index.d.ts +0 -0
  33. package/types/components/Avatar/Avatar.d.ts +0 -0
  34. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  35. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  36. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  37. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  38. package/types/components/Avatar/index.d.ts +0 -0
  39. package/types/components/Badge/Status.d.ts +0 -0
  40. package/types/components/Badge/StyledBadge.d.ts +0 -0
  41. package/types/components/Badge/index.d.ts +0 -0
  42. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  43. package/types/components/BottomNavigation/index.d.ts +0 -0
  44. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  45. package/types/components/BottomSheet/Footer.d.ts +0 -0
  46. package/types/components/BottomSheet/Header.d.ts +0 -0
  47. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  48. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  49. package/types/components/BottomSheet/index.d.ts +0 -0
  50. package/types/components/Box/StyledBox.d.ts +0 -0
  51. package/types/components/Box/config.d.ts +0 -0
  52. package/types/components/Box/index.d.ts +0 -0
  53. package/types/components/Box/types.d.ts +0 -0
  54. package/types/components/Button/Button.d.ts +0 -0
  55. package/types/components/Button/IconButton.d.ts +0 -0
  56. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  57. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  58. package/types/components/Button/StyledButton.d.ts +0 -0
  59. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  60. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  61. package/types/components/Button/index.d.ts +0 -0
  62. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  63. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  64. package/types/components/Calendar/helpers.d.ts +0 -0
  65. package/types/components/Calendar/index.d.ts +0 -0
  66. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  67. package/types/components/Card/DataCard/index.d.ts +0 -0
  68. package/types/components/Card/StyledCard.d.ts +0 -0
  69. package/types/components/Card/index.d.ts +0 -0
  70. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  71. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  72. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  73. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  74. package/types/components/Carousel/contants.d.ts +0 -0
  75. package/types/components/Carousel/index.d.ts +0 -0
  76. package/types/components/Carousel/types.d.ts +0 -0
  77. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  78. package/types/components/Checkbox/index.d.ts +0 -0
  79. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  80. package/types/components/Collapse/index.d.ts +0 -0
  81. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  82. package/types/components/ContentNavigator/index.d.ts +0 -0
  83. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  84. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  85. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  86. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  87. package/types/components/DatePicker/index.d.ts +0 -0
  88. package/types/components/DatePicker/types.d.ts +0 -0
  89. package/types/components/Divider/StyledDivider.d.ts +0 -0
  90. package/types/components/Divider/index.d.ts +0 -0
  91. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  92. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  93. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  94. package/types/components/Drawer/index.d.ts +0 -0
  95. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  96. package/types/components/Empty/index.d.ts +0 -0
  97. package/types/components/Error/StyledError.d.ts +0 -0
  98. package/types/components/Error/index.d.ts +0 -0
  99. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  100. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  101. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  102. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  103. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  104. package/types/components/FAB/FAB.d.ts +0 -0
  105. package/types/components/FAB/StyledFAB.d.ts +0 -0
  106. package/types/components/FAB/index.d.ts +0 -0
  107. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  108. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  109. package/types/components/Icon/IconList.d.ts +0 -0
  110. package/types/components/Icon/index.d.ts +0 -0
  111. package/types/components/Icon/utils.d.ts +0 -0
  112. package/types/components/Image/index.d.ts +0 -0
  113. package/types/components/List/BasicListItem.d.ts +0 -0
  114. package/types/components/List/ListItem.d.ts +0 -0
  115. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  116. package/types/components/List/StyledListItem.d.ts +0 -0
  117. package/types/components/List/index.d.ts +0 -0
  118. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  119. package/types/components/PageControl/index.d.ts +0 -0
  120. package/types/components/PinInput/PinCell.d.ts +0 -0
  121. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  122. package/types/components/PinInput/index.d.ts +0 -0
  123. package/types/components/Progress/ProgressBar.d.ts +0 -0
  124. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  125. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  126. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  127. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  128. package/types/components/Progress/constants.d.ts +0 -0
  129. package/types/components/Progress/index.d.ts +0 -0
  130. package/types/components/Progress/types.d.ts +0 -0
  131. package/types/components/Radio/Radio.d.ts +0 -0
  132. package/types/components/Radio/RadioGroup.d.ts +0 -0
  133. package/types/components/Radio/StyledRadio.d.ts +0 -0
  134. package/types/components/Radio/index.d.ts +0 -0
  135. package/types/components/Radio/types.d.ts +0 -0
  136. package/types/components/RefreshControl/index.d.ts +0 -0
  137. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  138. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  139. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  140. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  141. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  142. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  143. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  144. package/types/components/RichTextEditor/constants.d.ts +0 -0
  145. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  146. package/types/components/RichTextEditor/index.d.ts +0 -0
  147. package/types/components/RichTextEditor/types.d.ts +0 -0
  148. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  149. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  150. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  151. package/types/components/SectionHeading/index.d.ts +0 -0
  152. package/types/components/Select/BaseOptionList.d.ts +0 -0
  153. package/types/components/Select/Footer.d.ts +0 -0
  154. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  155. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  156. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  157. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  158. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  159. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  160. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  161. package/types/components/Select/StyledSelect.d.ts +0 -0
  162. package/types/components/Select/helpers.d.ts +0 -0
  163. package/types/components/Select/index.d.ts +0 -0
  164. package/types/components/Select/types.d.ts +0 -0
  165. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  166. package/types/components/Skeleton/index.d.ts +0 -0
  167. package/types/components/Slider/index.d.ts +0 -0
  168. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  169. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  170. package/types/components/Spinner/index.d.ts +0 -0
  171. package/types/components/Success/StyledSuccess.d.ts +0 -0
  172. package/types/components/Success/index.d.ts +8 -0
  173. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  174. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  175. package/types/components/Swipeable/index.d.ts +0 -0
  176. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  177. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  178. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  179. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  180. package/types/components/Switch/index.d.ts +0 -0
  181. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  182. package/types/components/Tabs/SceneView.d.ts +4 -3
  183. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  184. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -0
  185. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  186. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  187. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  188. package/types/components/Tabs/index.d.ts +1 -3
  189. package/types/components/Tabs/useIsFocused.d.ts +6 -0
  190. package/types/components/Tabs/utils.d.ts +0 -0
  191. package/types/components/Tag/StyledTag.d.ts +0 -0
  192. package/types/components/Tag/index.d.ts +0 -0
  193. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  194. package/types/components/TextInput/index.d.ts +0 -0
  195. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  196. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  197. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  198. package/types/components/TimePicker/index.d.ts +0 -0
  199. package/types/components/TimePicker/types.d.ts +0 -0
  200. package/types/components/Toast/StyledToast.d.ts +0 -0
  201. package/types/components/Toast/Toast.d.ts +0 -0
  202. package/types/components/Toast/ToastContainer.d.ts +0 -0
  203. package/types/components/Toast/ToastContext.d.ts +0 -0
  204. package/types/components/Toast/ToastProvider.d.ts +0 -0
  205. package/types/components/Toast/index.d.ts +0 -0
  206. package/types/components/Toast/types.d.ts +0 -0
  207. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  208. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  209. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  210. package/types/components/Toolbar/index.d.ts +0 -0
  211. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  212. package/types/components/Typography/Text/index.d.ts +0 -0
  213. package/types/components/Typography/index.d.ts +0 -0
  214. package/types/index.d.ts +0 -0
  215. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  216. package/types/theme/ThemeProvider.d.ts +0 -0
  217. package/types/theme/ThemeSwitcher.d.ts +0 -0
  218. package/types/theme/components/accordion.d.ts +0 -0
  219. package/types/theme/components/alert.d.ts +0 -0
  220. package/types/theme/components/attachment.d.ts +0 -0
  221. package/types/theme/components/avatar.d.ts +0 -0
  222. package/types/theme/components/badge.d.ts +0 -0
  223. package/types/theme/components/bottomNavigation.d.ts +0 -0
  224. package/types/theme/components/bottomSheet.d.ts +0 -0
  225. package/types/theme/components/button.d.ts +0 -0
  226. package/types/theme/components/calendar.d.ts +0 -0
  227. package/types/theme/components/card.d.ts +0 -0
  228. package/types/theme/components/cardCarousel.d.ts +0 -0
  229. package/types/theme/components/carousel.d.ts +0 -0
  230. package/types/theme/components/checkbox.d.ts +0 -0
  231. package/types/theme/components/contentNavigator.d.ts +0 -0
  232. package/types/theme/components/datePicker.d.ts +0 -0
  233. package/types/theme/components/divider.d.ts +0 -0
  234. package/types/theme/components/drawer.d.ts +0 -0
  235. package/types/theme/components/empty.d.ts +0 -0
  236. package/types/theme/components/error.d.ts +4 -0
  237. package/types/theme/components/fab.d.ts +0 -0
  238. package/types/theme/components/icon.d.ts +0 -0
  239. package/types/theme/components/image.d.ts +0 -0
  240. package/types/theme/components/list.d.ts +0 -0
  241. package/types/theme/components/pageControl.d.ts +0 -0
  242. package/types/theme/components/pinInput.d.ts +0 -0
  243. package/types/theme/components/progress.d.ts +0 -0
  244. package/types/theme/components/radio.d.ts +0 -0
  245. package/types/theme/components/refreshControl.d.ts +0 -0
  246. package/types/theme/components/richTextEditor.d.ts +0 -0
  247. package/types/theme/components/sectionHeading.d.ts +0 -0
  248. package/types/theme/components/select.d.ts +0 -0
  249. package/types/theme/components/skeleton.d.ts +0 -0
  250. package/types/theme/components/slider.d.ts +0 -0
  251. package/types/theme/components/spinner.d.ts +0 -0
  252. package/types/theme/components/success.d.ts +0 -0
  253. package/types/theme/components/swipeable.d.ts +0 -0
  254. package/types/theme/components/switch.d.ts +0 -0
  255. package/types/theme/components/tabs.d.ts +0 -0
  256. package/types/theme/components/tag.d.ts +0 -0
  257. package/types/theme/components/textInput.d.ts +0 -0
  258. package/types/theme/components/timePicker.d.ts +0 -0
  259. package/types/theme/components/toast.d.ts +0 -0
  260. package/types/theme/components/toolbar.d.ts +0 -0
  261. package/types/theme/components/typography.d.ts +0 -0
  262. package/types/theme/getTheme.d.ts +0 -0
  263. package/types/theme/global/borders.d.ts +0 -0
  264. package/types/theme/global/colors/eBens.d.ts +0 -0
  265. package/types/theme/global/colors/global.d.ts +0 -0
  266. package/types/theme/global/colors/globalDark.d.ts +0 -0
  267. package/types/theme/global/colors/jobs.d.ts +0 -0
  268. package/types/theme/global/colors/swag.d.ts +0 -0
  269. package/types/theme/global/colors/swagDark.d.ts +0 -0
  270. package/types/theme/global/colors/types.d.ts +0 -0
  271. package/types/theme/global/colors/wallet.d.ts +0 -0
  272. package/types/theme/global/colors/work.d.ts +0 -0
  273. package/types/theme/global/index.d.ts +0 -0
  274. package/types/theme/global/scale.d.ts +0 -0
  275. package/types/theme/global/sizes.d.ts +0 -0
  276. package/types/theme/global/space.d.ts +0 -0
  277. package/types/theme/global/typography.d.ts +0 -0
  278. package/types/theme/index.d.ts +0 -0
  279. package/types/types.d.ts +0 -0
  280. package/types/utils/functions.d.ts +0 -0
  281. package/types/utils/helpers.d.ts +0 -0
  282. package/types/utils/hooks.d.ts +0 -0
  283. package/types/utils/scale.d.ts +0 -0
  284. package/.turbo/turbo-build:types.log +0 -2
  285. package/.turbo/turbo-lint.log +0 -146
  286. package/.turbo/turbo-test.log +0 -451
  287. package/.turbo/turbo-type-check.log +0 -1
  288. package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +0 -120
  289. package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +0 -166
  290. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +0 -2497
  291. package/src/components/Tabs/ScrollableTabsV2/index.tsx +0 -5
  292. package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +0 -10
  293. package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +0 -9
  294. package/types/components/Tabs/ScrollableTabsV2/index.d.ts +0 -4
  295. /package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/__snapshots__/SceneView.spec.tsx.snap +0 -0
@@ -1,2497 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Tabs.ScrollV2 lazy not render lazy screen: xxx 1`] = `
4
- <RNCSafeAreaProvider
5
- onInsetsChange={[Function]}
6
- style={
7
- Array [
8
- Object {
9
- "flex": 1,
10
- },
11
- undefined,
12
- ]
13
- }
14
- >
15
- <View
16
- accessible={true}
17
- collapsable={false}
18
- focusable={true}
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": "#f6f6f7",
30
- "borderRadius": 8,
31
- "flexDirection": "row",
32
- "justifyContent": "center",
33
- "opacity": 1,
34
- "padding": 8,
35
- "width": "100%",
36
- }
37
- }
38
- >
39
- <View
40
- style={
41
- Array [
42
- Object {
43
- "paddingRight": 12,
44
- },
45
- undefined,
46
- ]
47
- }
48
- >
49
- <HeroIcon
50
- name="sync"
51
- style={
52
- Array [
53
- Object {
54
- "color": "#001f23",
55
- "fontSize": 24,
56
- },
57
- undefined,
58
- ]
59
- }
60
- testID="undefined-icon"
61
- themeIntent="text"
62
- themeSize="medium"
63
- />
64
- </View>
65
- <Text
66
- allowFontScaling={false}
67
- style={
68
- Array [
69
- Object {
70
- "color": "#001f23",
71
- "fontFamily": "BeVietnamPro-Regular",
72
- "fontSize": 14,
73
- "letterSpacing": 0.42,
74
- "lineHeight": 22,
75
- },
76
- Array [
77
- Object {
78
- "flexShrink": 1,
79
- "fontFamily": "BeVietnamPro-Regular",
80
- "fontSize": 16,
81
- "textAlign": "center",
82
- },
83
- undefined,
84
- ],
85
- ]
86
- }
87
- themeFontSize="medium"
88
- themeFontWeight="regular"
89
- themeIntent="body"
90
- themeTypeface="neutral"
91
- >
92
- Move to Work
93
- </Text>
94
- </View>
95
- <View
96
- style={
97
- Array [
98
- Object {
99
- "flex": 1,
100
- "overflow": "hidden",
101
- },
102
- undefined,
103
- ]
104
- }
105
- >
106
- <View
107
- style={
108
- Array [
109
- Object {
110
- "borderBottomColor": "#e8e9ea",
111
- "borderBottomWidth": 1,
112
- "paddingHorizontal": 0,
113
- },
114
- undefined,
115
- ]
116
- }
117
- themeInsets={
118
- Object {
119
- "bottom": 0,
120
- "left": 0,
121
- "right": 0,
122
- "top": 0,
123
- }
124
- }
125
- >
126
- <RCTScrollView
127
- contentContainerStyle={
128
- Object {
129
- "paddingHorizontal": 8,
130
- }
131
- }
132
- data={
133
- Array [
134
- Object {
135
- "activeItem": "Work",
136
- "component": <CustomScreen
137
- title="Work Screen"
138
- />,
139
- "key": "work",
140
- },
141
- Object {
142
- "activeItem": "speaker",
143
- "component": <CustomScreen
144
- title="Personal Screen"
145
- />,
146
- "inactiveItem": "speaker-outlined",
147
- "key": "personal",
148
- },
149
- Object {
150
- "activeItem": "home",
151
- "badge": Object {
152
- "type": "status",
153
- },
154
- "component": <CustomScreen
155
- title="Home Screen"
156
- />,
157
- "inactiveItem": "home-outlined",
158
- "key": "home",
159
- },
160
- Object {
161
- "activeItem": "calendar",
162
- "badge": Object {
163
- "type": "counter",
164
- "value": 50,
165
- },
166
- "component": <CustomScreen
167
- title="Calendar Screen"
168
- />,
169
- "inactiveItem": "calendar-dates-outlined",
170
- "key": "calendar",
171
- },
172
- ]
173
- }
174
- getItem={[Function]}
175
- getItemCount={[Function]}
176
- horizontal={true}
177
- keyExtractor={[Function]}
178
- onContentSizeChange={[Function]}
179
- onLayout={[Function]}
180
- onMomentumScrollBegin={[Function]}
181
- onMomentumScrollEnd={[Function]}
182
- onScroll={[Function]}
183
- onScrollBeginDrag={[Function]}
184
- onScrollEndDrag={[Function]}
185
- onScrollToIndexFailed={[Function]}
186
- removeClippedSubviews={false}
187
- renderItem={[Function]}
188
- scrollEventThrottle={50}
189
- showsHorizontalScrollIndicator={false}
190
- stickyHeaderIndices={Array []}
191
- viewabilityConfigCallbackPairs={Array []}
192
- >
193
- <View>
194
- <View
195
- onLayout={[Function]}
196
- style={
197
- Array [
198
- Object {
199
- "flexDirection": "row",
200
- },
201
- null,
202
- ]
203
- }
204
- >
205
- <View
206
- accessible={true}
207
- collapsable={false}
208
- focusable={true}
209
- isFirstItem={true}
210
- onClick={[Function]}
211
- onResponderGrant={[Function]}
212
- onResponderMove={[Function]}
213
- onResponderRelease={[Function]}
214
- onResponderTerminate={[Function]}
215
- onResponderTerminationRequest={[Function]}
216
- onStartShouldSetResponder={[Function]}
217
- style={
218
- Object {
219
- "marginLeft": 0,
220
- "paddingVertical": 8,
221
- }
222
- }
223
- >
224
- <View
225
- style={
226
- Array [
227
- Object {
228
- "bottom": 0,
229
- "left": 0,
230
- "paddingVertical": 8,
231
- "position": "absolute",
232
- "right": 0,
233
- "top": 0,
234
- },
235
- undefined,
236
- ]
237
- }
238
- >
239
- <View
240
- collapsable={false}
241
- style={
242
- Object {
243
- "backgroundColor": "#ccd2d3",
244
- "borderRadius": 8,
245
- "flex": 1,
246
- "transform": Array [
247
- Object {
248
- "scaleX": 1,
249
- },
250
- ],
251
- }
252
- }
253
- themeActive={true}
254
- />
255
- </View>
256
- <View
257
- style={
258
- Array [
259
- Object {
260
- "paddingHorizontal": 8,
261
- "paddingVertical": 4,
262
- },
263
- undefined,
264
- ]
265
- }
266
- >
267
- <View>
268
- <Text
269
- allowFontScaling={false}
270
- numberOfLines={1}
271
- style={
272
- Array [
273
- Object {
274
- "color": "#001f23",
275
- "fontFamily": "BeVietnamPro-SemiBold",
276
- "fontSize": 14,
277
- "letterSpacing": 0.42,
278
- "lineHeight": 22,
279
- },
280
- Object {
281
- "color": "#001f23",
282
- },
283
- ]
284
- }
285
- themeFontSize="medium"
286
- themeFontWeight="semi-bold"
287
- themeIntent="body"
288
- themeTypeface="neutral"
289
- >
290
- Work
291
- </Text>
292
- </View>
293
- </View>
294
- </View>
295
- </View>
296
- <View
297
- onLayout={[Function]}
298
- style={
299
- Array [
300
- Object {
301
- "flexDirection": "row",
302
- },
303
- null,
304
- ]
305
- }
306
- >
307
- <View
308
- accessible={true}
309
- collapsable={false}
310
- focusable={true}
311
- isFirstItem={false}
312
- onClick={[Function]}
313
- onResponderGrant={[Function]}
314
- onResponderMove={[Function]}
315
- onResponderRelease={[Function]}
316
- onResponderTerminate={[Function]}
317
- onResponderTerminationRequest={[Function]}
318
- onStartShouldSetResponder={[Function]}
319
- style={
320
- Object {
321
- "marginLeft": 12,
322
- "paddingVertical": 8,
323
- }
324
- }
325
- >
326
- <View
327
- style={
328
- Array [
329
- Object {
330
- "bottom": 0,
331
- "left": 0,
332
- "paddingVertical": 8,
333
- "position": "absolute",
334
- "right": 0,
335
- "top": 0,
336
- },
337
- undefined,
338
- ]
339
- }
340
- >
341
- <View
342
- collapsable={false}
343
- style={
344
- Object {
345
- "backgroundColor": undefined,
346
- "borderRadius": 8,
347
- "flex": 1,
348
- "transform": Array [
349
- Object {
350
- "scaleX": 0,
351
- },
352
- ],
353
- }
354
- }
355
- themeActive={false}
356
- />
357
- </View>
358
- <View
359
- style={
360
- Array [
361
- Object {
362
- "paddingHorizontal": 8,
363
- "paddingVertical": 4,
364
- },
365
- undefined,
366
- ]
367
- }
368
- >
369
- <View>
370
- <HeroIcon
371
- name="speaker-outlined"
372
- style={
373
- Array [
374
- Object {
375
- "color": "#001f23",
376
- "fontSize": 20,
377
- },
378
- Object {
379
- "color": "#001f23",
380
- },
381
- ]
382
- }
383
- testID="hero-icon-speaker-outlined"
384
- themeIntent="text"
385
- themeSize="small"
386
- />
387
- </View>
388
- </View>
389
- </View>
390
- </View>
391
- <View
392
- onLayout={[Function]}
393
- style={
394
- Array [
395
- Object {
396
- "flexDirection": "row",
397
- },
398
- null,
399
- ]
400
- }
401
- >
402
- <View
403
- accessible={true}
404
- collapsable={false}
405
- focusable={true}
406
- isFirstItem={false}
407
- onClick={[Function]}
408
- onResponderGrant={[Function]}
409
- onResponderMove={[Function]}
410
- onResponderRelease={[Function]}
411
- onResponderTerminate={[Function]}
412
- onResponderTerminationRequest={[Function]}
413
- onStartShouldSetResponder={[Function]}
414
- style={
415
- Object {
416
- "marginLeft": 12,
417
- "paddingVertical": 8,
418
- }
419
- }
420
- >
421
- <View
422
- style={
423
- Array [
424
- Object {
425
- "bottom": 0,
426
- "left": 0,
427
- "paddingVertical": 8,
428
- "position": "absolute",
429
- "right": 0,
430
- "top": 0,
431
- },
432
- undefined,
433
- ]
434
- }
435
- >
436
- <View
437
- collapsable={false}
438
- style={
439
- Object {
440
- "backgroundColor": undefined,
441
- "borderRadius": 8,
442
- "flex": 1,
443
- "transform": Array [
444
- Object {
445
- "scaleX": 0,
446
- },
447
- ],
448
- }
449
- }
450
- themeActive={false}
451
- />
452
- </View>
453
- <View
454
- style={
455
- Array [
456
- Object {
457
- "paddingHorizontal": 8,
458
- "paddingVertical": 4,
459
- },
460
- undefined,
461
- ]
462
- }
463
- >
464
- <View
465
- style={
466
- Object {
467
- "paddingHorizontal": 4,
468
- }
469
- }
470
- >
471
- <HeroIcon
472
- name="home-outlined"
473
- style={
474
- Array [
475
- Object {
476
- "color": "#001f23",
477
- "fontSize": 20,
478
- },
479
- Object {
480
- "color": "#001f23",
481
- },
482
- ]
483
- }
484
- testID="hero-icon-home-outlined"
485
- themeIntent="text"
486
- themeSize="small"
487
- />
488
- <View
489
- collapsable={false}
490
- style={
491
- Object {
492
- "backgroundColor": "#de350b",
493
- "borderRadius": 999,
494
- "height": 8,
495
- "opacity": 1,
496
- "position": "absolute",
497
- "right": -2,
498
- "top": -2,
499
- "transform": Array [
500
- Object {
501
- "scale": 1,
502
- },
503
- ],
504
- "width": 8,
505
- }
506
- }
507
- themeIntent="danger"
508
- />
509
- </View>
510
- </View>
511
- </View>
512
- </View>
513
- <View
514
- onLayout={[Function]}
515
- style={
516
- Array [
517
- Object {
518
- "flexDirection": "row",
519
- },
520
- null,
521
- ]
522
- }
523
- >
524
- <View
525
- accessible={true}
526
- collapsable={false}
527
- focusable={true}
528
- isFirstItem={false}
529
- onClick={[Function]}
530
- onResponderGrant={[Function]}
531
- onResponderMove={[Function]}
532
- onResponderRelease={[Function]}
533
- onResponderTerminate={[Function]}
534
- onResponderTerminationRequest={[Function]}
535
- onStartShouldSetResponder={[Function]}
536
- style={
537
- Object {
538
- "marginLeft": 12,
539
- "paddingVertical": 8,
540
- }
541
- }
542
- >
543
- <View
544
- style={
545
- Array [
546
- Object {
547
- "bottom": 0,
548
- "left": 0,
549
- "paddingVertical": 8,
550
- "position": "absolute",
551
- "right": 0,
552
- "top": 0,
553
- },
554
- undefined,
555
- ]
556
- }
557
- >
558
- <View
559
- collapsable={false}
560
- style={
561
- Object {
562
- "backgroundColor": undefined,
563
- "borderRadius": 8,
564
- "flex": 1,
565
- "transform": Array [
566
- Object {
567
- "scaleX": 0,
568
- },
569
- ],
570
- }
571
- }
572
- themeActive={false}
573
- />
574
- </View>
575
- <View
576
- style={
577
- Array [
578
- Object {
579
- "paddingHorizontal": 8,
580
- "paddingVertical": 4,
581
- },
582
- undefined,
583
- ]
584
- }
585
- >
586
- <View
587
- style={
588
- Array [
589
- Object {
590
- "alignItems": "center",
591
- "flexDirection": "row",
592
- },
593
- undefined,
594
- ]
595
- }
596
- >
597
- <HeroIcon
598
- name="calendar-dates-outlined"
599
- style={
600
- Array [
601
- Object {
602
- "color": "#001f23",
603
- "fontSize": 20,
604
- },
605
- Object {
606
- "color": "#001f23",
607
- },
608
- ]
609
- }
610
- testID="hero-icon-calendar-dates-outlined"
611
- themeIntent="text"
612
- themeSize="small"
613
- />
614
- <View
615
- collapsable={false}
616
- style={
617
- Object {
618
- "alignItems": "center",
619
- "backgroundColor": "#4568fb",
620
- "borderRadius": 999,
621
- "height": 20,
622
- "justifyContent": "center",
623
- "marginLeft": 4,
624
- "minWidth": 20,
625
- "opacity": 1,
626
- "paddingHorizontal": 8,
627
- "transform": Array [
628
- Object {
629
- "scale": 1,
630
- },
631
- ],
632
- }
633
- }
634
- themeIntent="info"
635
- themePadding="wideContent"
636
- >
637
- <Text
638
- allowFontScaling={false}
639
- style={
640
- Array [
641
- Object {
642
- "color": "#001f23",
643
- "fontFamily": "BeVietnamPro-Regular",
644
- "fontSize": 14,
645
- "letterSpacing": 0.42,
646
- "lineHeight": 22,
647
- },
648
- Array [
649
- Object {
650
- "color": "#ffffff",
651
- "fontFamily": "BeVietnamPro-SemiBold",
652
- "fontSize": 12,
653
- "includeFontPadding": false,
654
- "lineHeight": 20,
655
- "textAlign": "center",
656
- "textAlignVertical": "center",
657
- },
658
- undefined,
659
- ],
660
- ]
661
- }
662
- themeFontSize="medium"
663
- themeFontWeight="regular"
664
- themeIntent="body"
665
- themeTypeface="neutral"
666
- >
667
- 50
668
- </Text>
669
- </View>
670
- </View>
671
- </View>
672
- </View>
673
- </View>
674
- </View>
675
- </RCTScrollView>
676
- </View>
677
- <RNCViewPager
678
- layoutDirection="ltr"
679
- onMoveShouldSetResponderCapture={[Function]}
680
- onPageScroll={[Function]}
681
- onPageScrollStateChanged={[Function]}
682
- onPageSelected={[Function]}
683
- >
684
- <View
685
- collapsable={false}
686
- style={
687
- Object {
688
- "bottom": 0,
689
- "left": 0,
690
- "position": "absolute",
691
- "right": 0,
692
- "top": 0,
693
- }
694
- }
695
- >
696
- <View
697
- accessibilityElementsHidden={false}
698
- importantForAccessibility="auto"
699
- style={
700
- Array [
701
- Object {
702
- "flex": 1,
703
- },
704
- Array [
705
- Object {
706
- "flex": 1,
707
- "overflow": "hidden",
708
- },
709
- Object {
710
- "bottom": 0,
711
- "left": 0,
712
- "position": "absolute",
713
- "right": 0,
714
- "top": 0,
715
- },
716
- ],
717
- ]
718
- }
719
- >
720
- <Text>
721
- Work Screen
722
-
723
- focused
724
- </Text>
725
- </View>
726
- </View>
727
- <View
728
- collapsable={false}
729
- style={
730
- Object {
731
- "bottom": 0,
732
- "left": 0,
733
- "position": "absolute",
734
- "right": 0,
735
- "top": 0,
736
- }
737
- }
738
- >
739
- <View
740
- accessibilityElementsHidden={true}
741
- importantForAccessibility="no-hide-descendants"
742
- style={
743
- Array [
744
- Object {
745
- "flex": 1,
746
- },
747
- Array [
748
- Object {
749
- "flex": 1,
750
- "overflow": "hidden",
751
- },
752
- null,
753
- ],
754
- ]
755
- }
756
- >
757
- <Text>
758
- Personal Screen
759
-
760
- unfocused
761
- </Text>
762
- </View>
763
- </View>
764
- <View
765
- collapsable={false}
766
- style={
767
- Object {
768
- "bottom": 0,
769
- "left": 0,
770
- "position": "absolute",
771
- "right": 0,
772
- "top": 0,
773
- }
774
- }
775
- >
776
- <View
777
- accessibilityElementsHidden={true}
778
- importantForAccessibility="no-hide-descendants"
779
- style={
780
- Array [
781
- Object {
782
- "flex": 1,
783
- },
784
- Array [
785
- Object {
786
- "flex": 1,
787
- "overflow": "hidden",
788
- },
789
- null,
790
- ],
791
- ]
792
- }
793
- />
794
- </View>
795
- <View
796
- collapsable={false}
797
- style={
798
- Object {
799
- "bottom": 0,
800
- "left": 0,
801
- "position": "absolute",
802
- "right": 0,
803
- "top": 0,
804
- }
805
- }
806
- >
807
- <View
808
- accessibilityElementsHidden={true}
809
- importantForAccessibility="no-hide-descendants"
810
- style={
811
- Array [
812
- Object {
813
- "flex": 1,
814
- },
815
- Array [
816
- Object {
817
- "flex": 1,
818
- "overflow": "hidden",
819
- },
820
- null,
821
- ],
822
- ]
823
- }
824
- />
825
- </View>
826
- </RNCViewPager>
827
- </View>
828
- </RNCSafeAreaProvider>
829
- `;
830
-
831
- exports[`Tabs.ScrollV2 renders correctly 1`] = `
832
- <RNCSafeAreaProvider
833
- onInsetsChange={[Function]}
834
- style={
835
- Array [
836
- Object {
837
- "flex": 1,
838
- },
839
- undefined,
840
- ]
841
- }
842
- >
843
- <View
844
- accessible={true}
845
- collapsable={false}
846
- focusable={true}
847
- onClick={[Function]}
848
- onResponderGrant={[Function]}
849
- onResponderMove={[Function]}
850
- onResponderRelease={[Function]}
851
- onResponderTerminate={[Function]}
852
- onResponderTerminationRequest={[Function]}
853
- onStartShouldSetResponder={[Function]}
854
- style={
855
- Object {
856
- "alignItems": "center",
857
- "backgroundColor": "#f6f6f7",
858
- "borderRadius": 8,
859
- "flexDirection": "row",
860
- "justifyContent": "center",
861
- "opacity": 1,
862
- "padding": 8,
863
- "width": "100%",
864
- }
865
- }
866
- >
867
- <View
868
- style={
869
- Array [
870
- Object {
871
- "paddingRight": 12,
872
- },
873
- undefined,
874
- ]
875
- }
876
- >
877
- <HeroIcon
878
- name="sync"
879
- style={
880
- Array [
881
- Object {
882
- "color": "#001f23",
883
- "fontSize": 24,
884
- },
885
- undefined,
886
- ]
887
- }
888
- testID="undefined-icon"
889
- themeIntent="text"
890
- themeSize="medium"
891
- />
892
- </View>
893
- <Text
894
- allowFontScaling={false}
895
- style={
896
- Array [
897
- Object {
898
- "color": "#001f23",
899
- "fontFamily": "BeVietnamPro-Regular",
900
- "fontSize": 14,
901
- "letterSpacing": 0.42,
902
- "lineHeight": 22,
903
- },
904
- Array [
905
- Object {
906
- "flexShrink": 1,
907
- "fontFamily": "BeVietnamPro-Regular",
908
- "fontSize": 16,
909
- "textAlign": "center",
910
- },
911
- undefined,
912
- ],
913
- ]
914
- }
915
- themeFontSize="medium"
916
- themeFontWeight="regular"
917
- themeIntent="body"
918
- themeTypeface="neutral"
919
- >
920
- Move to Work
921
- </Text>
922
- </View>
923
- <View
924
- style={
925
- Array [
926
- Object {
927
- "flex": 1,
928
- "overflow": "hidden",
929
- },
930
- undefined,
931
- ]
932
- }
933
- >
934
- <View
935
- style={
936
- Array [
937
- Object {
938
- "borderBottomColor": "#e8e9ea",
939
- "borderBottomWidth": 1,
940
- "paddingHorizontal": 0,
941
- },
942
- undefined,
943
- ]
944
- }
945
- themeInsets={
946
- Object {
947
- "bottom": 0,
948
- "left": 0,
949
- "right": 0,
950
- "top": 0,
951
- }
952
- }
953
- >
954
- <RCTScrollView
955
- contentContainerStyle={
956
- Object {
957
- "paddingHorizontal": 8,
958
- }
959
- }
960
- data={
961
- Array [
962
- Object {
963
- "activeItem": "Work",
964
- "component": <CustomScreen
965
- title="Work Screen"
966
- />,
967
- "key": "work",
968
- },
969
- Object {
970
- "activeItem": "speaker",
971
- "component": <CustomScreen
972
- title="Personal Screen"
973
- />,
974
- "inactiveItem": "speaker-outlined",
975
- "key": "personal",
976
- },
977
- Object {
978
- "activeItem": "home",
979
- "badge": Object {
980
- "type": "status",
981
- },
982
- "component": <CustomScreen
983
- title="Home Screen"
984
- />,
985
- "inactiveItem": "home-outlined",
986
- "key": "home",
987
- },
988
- Object {
989
- "activeItem": "calendar",
990
- "badge": Object {
991
- "type": "counter",
992
- "value": 50,
993
- },
994
- "component": <CustomScreen
995
- title="Calendar Screen"
996
- />,
997
- "inactiveItem": "calendar-dates-outlined",
998
- "key": "calendar",
999
- },
1000
- ]
1001
- }
1002
- getItem={[Function]}
1003
- getItemCount={[Function]}
1004
- horizontal={true}
1005
- keyExtractor={[Function]}
1006
- onContentSizeChange={[Function]}
1007
- onLayout={[Function]}
1008
- onMomentumScrollBegin={[Function]}
1009
- onMomentumScrollEnd={[Function]}
1010
- onScroll={[Function]}
1011
- onScrollBeginDrag={[Function]}
1012
- onScrollEndDrag={[Function]}
1013
- onScrollToIndexFailed={[Function]}
1014
- removeClippedSubviews={false}
1015
- renderItem={[Function]}
1016
- scrollEventThrottle={50}
1017
- showsHorizontalScrollIndicator={false}
1018
- stickyHeaderIndices={Array []}
1019
- viewabilityConfigCallbackPairs={Array []}
1020
- >
1021
- <View>
1022
- <View
1023
- onLayout={[Function]}
1024
- style={
1025
- Array [
1026
- Object {
1027
- "flexDirection": "row",
1028
- },
1029
- null,
1030
- ]
1031
- }
1032
- >
1033
- <View
1034
- accessible={true}
1035
- collapsable={false}
1036
- focusable={true}
1037
- isFirstItem={true}
1038
- onClick={[Function]}
1039
- onResponderGrant={[Function]}
1040
- onResponderMove={[Function]}
1041
- onResponderRelease={[Function]}
1042
- onResponderTerminate={[Function]}
1043
- onResponderTerminationRequest={[Function]}
1044
- onStartShouldSetResponder={[Function]}
1045
- style={
1046
- Object {
1047
- "marginLeft": 0,
1048
- "paddingVertical": 8,
1049
- }
1050
- }
1051
- >
1052
- <View
1053
- style={
1054
- Array [
1055
- Object {
1056
- "bottom": 0,
1057
- "left": 0,
1058
- "paddingVertical": 8,
1059
- "position": "absolute",
1060
- "right": 0,
1061
- "top": 0,
1062
- },
1063
- undefined,
1064
- ]
1065
- }
1066
- >
1067
- <View
1068
- collapsable={false}
1069
- style={
1070
- Object {
1071
- "backgroundColor": "#ccd2d3",
1072
- "borderRadius": 8,
1073
- "flex": 1,
1074
- "transform": Array [
1075
- Object {
1076
- "scaleX": 1,
1077
- },
1078
- ],
1079
- }
1080
- }
1081
- themeActive={true}
1082
- />
1083
- </View>
1084
- <View
1085
- style={
1086
- Array [
1087
- Object {
1088
- "paddingHorizontal": 8,
1089
- "paddingVertical": 4,
1090
- },
1091
- undefined,
1092
- ]
1093
- }
1094
- >
1095
- <View>
1096
- <Text
1097
- allowFontScaling={false}
1098
- numberOfLines={1}
1099
- style={
1100
- Array [
1101
- Object {
1102
- "color": "#001f23",
1103
- "fontFamily": "BeVietnamPro-SemiBold",
1104
- "fontSize": 14,
1105
- "letterSpacing": 0.42,
1106
- "lineHeight": 22,
1107
- },
1108
- Object {
1109
- "color": "#001f23",
1110
- },
1111
- ]
1112
- }
1113
- themeFontSize="medium"
1114
- themeFontWeight="semi-bold"
1115
- themeIntent="body"
1116
- themeTypeface="neutral"
1117
- >
1118
- Work
1119
- </Text>
1120
- </View>
1121
- </View>
1122
- </View>
1123
- </View>
1124
- <View
1125
- onLayout={[Function]}
1126
- style={
1127
- Array [
1128
- Object {
1129
- "flexDirection": "row",
1130
- },
1131
- null,
1132
- ]
1133
- }
1134
- >
1135
- <View
1136
- accessible={true}
1137
- collapsable={false}
1138
- focusable={true}
1139
- isFirstItem={false}
1140
- onClick={[Function]}
1141
- onResponderGrant={[Function]}
1142
- onResponderMove={[Function]}
1143
- onResponderRelease={[Function]}
1144
- onResponderTerminate={[Function]}
1145
- onResponderTerminationRequest={[Function]}
1146
- onStartShouldSetResponder={[Function]}
1147
- style={
1148
- Object {
1149
- "marginLeft": 12,
1150
- "paddingVertical": 8,
1151
- }
1152
- }
1153
- >
1154
- <View
1155
- style={
1156
- Array [
1157
- Object {
1158
- "bottom": 0,
1159
- "left": 0,
1160
- "paddingVertical": 8,
1161
- "position": "absolute",
1162
- "right": 0,
1163
- "top": 0,
1164
- },
1165
- undefined,
1166
- ]
1167
- }
1168
- >
1169
- <View
1170
- collapsable={false}
1171
- style={
1172
- Object {
1173
- "backgroundColor": undefined,
1174
- "borderRadius": 8,
1175
- "flex": 1,
1176
- "transform": Array [
1177
- Object {
1178
- "scaleX": 0,
1179
- },
1180
- ],
1181
- }
1182
- }
1183
- themeActive={false}
1184
- />
1185
- </View>
1186
- <View
1187
- style={
1188
- Array [
1189
- Object {
1190
- "paddingHorizontal": 8,
1191
- "paddingVertical": 4,
1192
- },
1193
- undefined,
1194
- ]
1195
- }
1196
- >
1197
- <View>
1198
- <HeroIcon
1199
- name="speaker-outlined"
1200
- style={
1201
- Array [
1202
- Object {
1203
- "color": "#001f23",
1204
- "fontSize": 20,
1205
- },
1206
- Object {
1207
- "color": "#001f23",
1208
- },
1209
- ]
1210
- }
1211
- testID="hero-icon-speaker-outlined"
1212
- themeIntent="text"
1213
- themeSize="small"
1214
- />
1215
- </View>
1216
- </View>
1217
- </View>
1218
- </View>
1219
- <View
1220
- onLayout={[Function]}
1221
- style={
1222
- Array [
1223
- Object {
1224
- "flexDirection": "row",
1225
- },
1226
- null,
1227
- ]
1228
- }
1229
- >
1230
- <View
1231
- accessible={true}
1232
- collapsable={false}
1233
- focusable={true}
1234
- isFirstItem={false}
1235
- onClick={[Function]}
1236
- onResponderGrant={[Function]}
1237
- onResponderMove={[Function]}
1238
- onResponderRelease={[Function]}
1239
- onResponderTerminate={[Function]}
1240
- onResponderTerminationRequest={[Function]}
1241
- onStartShouldSetResponder={[Function]}
1242
- style={
1243
- Object {
1244
- "marginLeft": 12,
1245
- "paddingVertical": 8,
1246
- }
1247
- }
1248
- >
1249
- <View
1250
- style={
1251
- Array [
1252
- Object {
1253
- "bottom": 0,
1254
- "left": 0,
1255
- "paddingVertical": 8,
1256
- "position": "absolute",
1257
- "right": 0,
1258
- "top": 0,
1259
- },
1260
- undefined,
1261
- ]
1262
- }
1263
- >
1264
- <View
1265
- collapsable={false}
1266
- style={
1267
- Object {
1268
- "backgroundColor": undefined,
1269
- "borderRadius": 8,
1270
- "flex": 1,
1271
- "transform": Array [
1272
- Object {
1273
- "scaleX": 0,
1274
- },
1275
- ],
1276
- }
1277
- }
1278
- themeActive={false}
1279
- />
1280
- </View>
1281
- <View
1282
- style={
1283
- Array [
1284
- Object {
1285
- "paddingHorizontal": 8,
1286
- "paddingVertical": 4,
1287
- },
1288
- undefined,
1289
- ]
1290
- }
1291
- >
1292
- <View
1293
- style={
1294
- Object {
1295
- "paddingHorizontal": 4,
1296
- }
1297
- }
1298
- >
1299
- <HeroIcon
1300
- name="home-outlined"
1301
- style={
1302
- Array [
1303
- Object {
1304
- "color": "#001f23",
1305
- "fontSize": 20,
1306
- },
1307
- Object {
1308
- "color": "#001f23",
1309
- },
1310
- ]
1311
- }
1312
- testID="hero-icon-home-outlined"
1313
- themeIntent="text"
1314
- themeSize="small"
1315
- />
1316
- <View
1317
- collapsable={false}
1318
- style={
1319
- Object {
1320
- "backgroundColor": "#de350b",
1321
- "borderRadius": 999,
1322
- "height": 8,
1323
- "opacity": 1,
1324
- "position": "absolute",
1325
- "right": -2,
1326
- "top": -2,
1327
- "transform": Array [
1328
- Object {
1329
- "scale": 1,
1330
- },
1331
- ],
1332
- "width": 8,
1333
- }
1334
- }
1335
- themeIntent="danger"
1336
- />
1337
- </View>
1338
- </View>
1339
- </View>
1340
- </View>
1341
- <View
1342
- onLayout={[Function]}
1343
- style={
1344
- Array [
1345
- Object {
1346
- "flexDirection": "row",
1347
- },
1348
- null,
1349
- ]
1350
- }
1351
- >
1352
- <View
1353
- accessible={true}
1354
- collapsable={false}
1355
- focusable={true}
1356
- isFirstItem={false}
1357
- onClick={[Function]}
1358
- onResponderGrant={[Function]}
1359
- onResponderMove={[Function]}
1360
- onResponderRelease={[Function]}
1361
- onResponderTerminate={[Function]}
1362
- onResponderTerminationRequest={[Function]}
1363
- onStartShouldSetResponder={[Function]}
1364
- style={
1365
- Object {
1366
- "marginLeft": 12,
1367
- "paddingVertical": 8,
1368
- }
1369
- }
1370
- >
1371
- <View
1372
- style={
1373
- Array [
1374
- Object {
1375
- "bottom": 0,
1376
- "left": 0,
1377
- "paddingVertical": 8,
1378
- "position": "absolute",
1379
- "right": 0,
1380
- "top": 0,
1381
- },
1382
- undefined,
1383
- ]
1384
- }
1385
- >
1386
- <View
1387
- collapsable={false}
1388
- style={
1389
- Object {
1390
- "backgroundColor": undefined,
1391
- "borderRadius": 8,
1392
- "flex": 1,
1393
- "transform": Array [
1394
- Object {
1395
- "scaleX": 0,
1396
- },
1397
- ],
1398
- }
1399
- }
1400
- themeActive={false}
1401
- />
1402
- </View>
1403
- <View
1404
- style={
1405
- Array [
1406
- Object {
1407
- "paddingHorizontal": 8,
1408
- "paddingVertical": 4,
1409
- },
1410
- undefined,
1411
- ]
1412
- }
1413
- >
1414
- <View
1415
- style={
1416
- Array [
1417
- Object {
1418
- "alignItems": "center",
1419
- "flexDirection": "row",
1420
- },
1421
- undefined,
1422
- ]
1423
- }
1424
- >
1425
- <HeroIcon
1426
- name="calendar-dates-outlined"
1427
- style={
1428
- Array [
1429
- Object {
1430
- "color": "#001f23",
1431
- "fontSize": 20,
1432
- },
1433
- Object {
1434
- "color": "#001f23",
1435
- },
1436
- ]
1437
- }
1438
- testID="hero-icon-calendar-dates-outlined"
1439
- themeIntent="text"
1440
- themeSize="small"
1441
- />
1442
- <View
1443
- collapsable={false}
1444
- style={
1445
- Object {
1446
- "alignItems": "center",
1447
- "backgroundColor": "#4568fb",
1448
- "borderRadius": 999,
1449
- "height": 20,
1450
- "justifyContent": "center",
1451
- "marginLeft": 4,
1452
- "minWidth": 20,
1453
- "opacity": 1,
1454
- "paddingHorizontal": 8,
1455
- "transform": Array [
1456
- Object {
1457
- "scale": 1,
1458
- },
1459
- ],
1460
- }
1461
- }
1462
- themeIntent="info"
1463
- themePadding="wideContent"
1464
- >
1465
- <Text
1466
- allowFontScaling={false}
1467
- style={
1468
- Array [
1469
- Object {
1470
- "color": "#001f23",
1471
- "fontFamily": "BeVietnamPro-Regular",
1472
- "fontSize": 14,
1473
- "letterSpacing": 0.42,
1474
- "lineHeight": 22,
1475
- },
1476
- Array [
1477
- Object {
1478
- "color": "#ffffff",
1479
- "fontFamily": "BeVietnamPro-SemiBold",
1480
- "fontSize": 12,
1481
- "includeFontPadding": false,
1482
- "lineHeight": 20,
1483
- "textAlign": "center",
1484
- "textAlignVertical": "center",
1485
- },
1486
- undefined,
1487
- ],
1488
- ]
1489
- }
1490
- themeFontSize="medium"
1491
- themeFontWeight="regular"
1492
- themeIntent="body"
1493
- themeTypeface="neutral"
1494
- >
1495
- 50
1496
- </Text>
1497
- </View>
1498
- </View>
1499
- </View>
1500
- </View>
1501
- </View>
1502
- </View>
1503
- </RCTScrollView>
1504
- </View>
1505
- <RNCViewPager
1506
- layoutDirection="ltr"
1507
- onMoveShouldSetResponderCapture={[Function]}
1508
- onPageScroll={[Function]}
1509
- onPageScrollStateChanged={[Function]}
1510
- onPageSelected={[Function]}
1511
- >
1512
- <View
1513
- collapsable={false}
1514
- style={
1515
- Object {
1516
- "bottom": 0,
1517
- "left": 0,
1518
- "position": "absolute",
1519
- "right": 0,
1520
- "top": 0,
1521
- }
1522
- }
1523
- >
1524
- <View
1525
- accessibilityElementsHidden={false}
1526
- importantForAccessibility="auto"
1527
- style={
1528
- Array [
1529
- Object {
1530
- "flex": 1,
1531
- },
1532
- Array [
1533
- Object {
1534
- "flex": 1,
1535
- "overflow": "hidden",
1536
- },
1537
- Object {
1538
- "bottom": 0,
1539
- "left": 0,
1540
- "position": "absolute",
1541
- "right": 0,
1542
- "top": 0,
1543
- },
1544
- ],
1545
- ]
1546
- }
1547
- >
1548
- <Text>
1549
- Work Screen
1550
-
1551
- focused
1552
- </Text>
1553
- </View>
1554
- </View>
1555
- <View
1556
- collapsable={false}
1557
- style={
1558
- Object {
1559
- "bottom": 0,
1560
- "left": 0,
1561
- "position": "absolute",
1562
- "right": 0,
1563
- "top": 0,
1564
- }
1565
- }
1566
- >
1567
- <View
1568
- accessibilityElementsHidden={true}
1569
- importantForAccessibility="no-hide-descendants"
1570
- style={
1571
- Array [
1572
- Object {
1573
- "flex": 1,
1574
- },
1575
- Array [
1576
- Object {
1577
- "flex": 1,
1578
- "overflow": "hidden",
1579
- },
1580
- null,
1581
- ],
1582
- ]
1583
- }
1584
- >
1585
- <Text>
1586
- Personal Screen
1587
-
1588
- unfocused
1589
- </Text>
1590
- </View>
1591
- </View>
1592
- <View
1593
- collapsable={false}
1594
- style={
1595
- Object {
1596
- "bottom": 0,
1597
- "left": 0,
1598
- "position": "absolute",
1599
- "right": 0,
1600
- "top": 0,
1601
- }
1602
- }
1603
- >
1604
- <View
1605
- accessibilityElementsHidden={true}
1606
- importantForAccessibility="no-hide-descendants"
1607
- style={
1608
- Array [
1609
- Object {
1610
- "flex": 1,
1611
- },
1612
- Array [
1613
- Object {
1614
- "flex": 1,
1615
- "overflow": "hidden",
1616
- },
1617
- null,
1618
- ],
1619
- ]
1620
- }
1621
- />
1622
- </View>
1623
- <View
1624
- collapsable={false}
1625
- style={
1626
- Object {
1627
- "bottom": 0,
1628
- "left": 0,
1629
- "position": "absolute",
1630
- "right": 0,
1631
- "top": 0,
1632
- }
1633
- }
1634
- >
1635
- <View
1636
- accessibilityElementsHidden={true}
1637
- importantForAccessibility="no-hide-descendants"
1638
- style={
1639
- Array [
1640
- Object {
1641
- "flex": 1,
1642
- },
1643
- Array [
1644
- Object {
1645
- "flex": 1,
1646
- "overflow": "hidden",
1647
- },
1648
- null,
1649
- ],
1650
- ]
1651
- }
1652
- />
1653
- </View>
1654
- </RNCViewPager>
1655
- </View>
1656
- </RNCSafeAreaProvider>
1657
- `;
1658
-
1659
- exports[`useIsFocused renders correctly 1`] = `
1660
- <RNCSafeAreaProvider
1661
- onInsetsChange={[Function]}
1662
- style={
1663
- Array [
1664
- Object {
1665
- "flex": 1,
1666
- },
1667
- undefined,
1668
- ]
1669
- }
1670
- >
1671
- <View
1672
- accessible={true}
1673
- collapsable={false}
1674
- focusable={true}
1675
- onClick={[Function]}
1676
- onResponderGrant={[Function]}
1677
- onResponderMove={[Function]}
1678
- onResponderRelease={[Function]}
1679
- onResponderTerminate={[Function]}
1680
- onResponderTerminationRequest={[Function]}
1681
- onStartShouldSetResponder={[Function]}
1682
- style={
1683
- Object {
1684
- "alignItems": "center",
1685
- "backgroundColor": "#f6f6f7",
1686
- "borderRadius": 8,
1687
- "flexDirection": "row",
1688
- "justifyContent": "center",
1689
- "opacity": 1,
1690
- "padding": 8,
1691
- "width": "100%",
1692
- }
1693
- }
1694
- >
1695
- <View
1696
- style={
1697
- Array [
1698
- Object {
1699
- "paddingRight": 12,
1700
- },
1701
- undefined,
1702
- ]
1703
- }
1704
- >
1705
- <HeroIcon
1706
- name="sync"
1707
- style={
1708
- Array [
1709
- Object {
1710
- "color": "#001f23",
1711
- "fontSize": 24,
1712
- },
1713
- undefined,
1714
- ]
1715
- }
1716
- testID="undefined-icon"
1717
- themeIntent="text"
1718
- themeSize="medium"
1719
- />
1720
- </View>
1721
- <Text
1722
- allowFontScaling={false}
1723
- style={
1724
- Array [
1725
- Object {
1726
- "color": "#001f23",
1727
- "fontFamily": "BeVietnamPro-Regular",
1728
- "fontSize": 14,
1729
- "letterSpacing": 0.42,
1730
- "lineHeight": 22,
1731
- },
1732
- Array [
1733
- Object {
1734
- "flexShrink": 1,
1735
- "fontFamily": "BeVietnamPro-Regular",
1736
- "fontSize": 16,
1737
- "textAlign": "center",
1738
- },
1739
- undefined,
1740
- ],
1741
- ]
1742
- }
1743
- themeFontSize="medium"
1744
- themeFontWeight="regular"
1745
- themeIntent="body"
1746
- themeTypeface="neutral"
1747
- >
1748
- Move to Work
1749
- </Text>
1750
- </View>
1751
- <View
1752
- style={
1753
- Array [
1754
- Object {
1755
- "flex": 1,
1756
- "overflow": "hidden",
1757
- },
1758
- undefined,
1759
- ]
1760
- }
1761
- >
1762
- <View
1763
- style={
1764
- Array [
1765
- Object {
1766
- "borderBottomColor": "#e8e9ea",
1767
- "borderBottomWidth": 1,
1768
- "paddingHorizontal": 0,
1769
- },
1770
- undefined,
1771
- ]
1772
- }
1773
- themeInsets={
1774
- Object {
1775
- "bottom": 0,
1776
- "left": 0,
1777
- "right": 0,
1778
- "top": 0,
1779
- }
1780
- }
1781
- >
1782
- <RCTScrollView
1783
- contentContainerStyle={
1784
- Object {
1785
- "paddingHorizontal": 8,
1786
- }
1787
- }
1788
- data={
1789
- Array [
1790
- Object {
1791
- "activeItem": "Work",
1792
- "component": <CustomScreen
1793
- title="Work Screen"
1794
- />,
1795
- "key": "work",
1796
- },
1797
- Object {
1798
- "activeItem": "speaker",
1799
- "component": <CustomScreen
1800
- title="Personal Screen"
1801
- />,
1802
- "inactiveItem": "speaker-outlined",
1803
- "key": "personal",
1804
- },
1805
- Object {
1806
- "activeItem": "home",
1807
- "badge": Object {
1808
- "type": "status",
1809
- },
1810
- "component": <CustomScreen
1811
- title="Home Screen"
1812
- />,
1813
- "inactiveItem": "home-outlined",
1814
- "key": "home",
1815
- },
1816
- Object {
1817
- "activeItem": "calendar",
1818
- "badge": Object {
1819
- "type": "counter",
1820
- "value": 50,
1821
- },
1822
- "component": <CustomScreen
1823
- title="Calendar Screen"
1824
- />,
1825
- "inactiveItem": "calendar-dates-outlined",
1826
- "key": "calendar",
1827
- },
1828
- ]
1829
- }
1830
- getItem={[Function]}
1831
- getItemCount={[Function]}
1832
- horizontal={true}
1833
- keyExtractor={[Function]}
1834
- onContentSizeChange={[Function]}
1835
- onLayout={[Function]}
1836
- onMomentumScrollBegin={[Function]}
1837
- onMomentumScrollEnd={[Function]}
1838
- onScroll={[Function]}
1839
- onScrollBeginDrag={[Function]}
1840
- onScrollEndDrag={[Function]}
1841
- onScrollToIndexFailed={[Function]}
1842
- removeClippedSubviews={false}
1843
- renderItem={[Function]}
1844
- scrollEventThrottle={50}
1845
- showsHorizontalScrollIndicator={false}
1846
- stickyHeaderIndices={Array []}
1847
- viewabilityConfigCallbackPairs={Array []}
1848
- >
1849
- <View>
1850
- <View
1851
- onLayout={[Function]}
1852
- style={
1853
- Array [
1854
- Object {
1855
- "flexDirection": "row",
1856
- },
1857
- null,
1858
- ]
1859
- }
1860
- >
1861
- <View
1862
- accessible={true}
1863
- collapsable={false}
1864
- focusable={true}
1865
- isFirstItem={true}
1866
- onClick={[Function]}
1867
- onResponderGrant={[Function]}
1868
- onResponderMove={[Function]}
1869
- onResponderRelease={[Function]}
1870
- onResponderTerminate={[Function]}
1871
- onResponderTerminationRequest={[Function]}
1872
- onStartShouldSetResponder={[Function]}
1873
- style={
1874
- Object {
1875
- "marginLeft": 0,
1876
- "paddingVertical": 8,
1877
- }
1878
- }
1879
- >
1880
- <View
1881
- style={
1882
- Array [
1883
- Object {
1884
- "bottom": 0,
1885
- "left": 0,
1886
- "paddingVertical": 8,
1887
- "position": "absolute",
1888
- "right": 0,
1889
- "top": 0,
1890
- },
1891
- undefined,
1892
- ]
1893
- }
1894
- >
1895
- <View
1896
- collapsable={false}
1897
- style={
1898
- Object {
1899
- "backgroundColor": "#ccd2d3",
1900
- "borderRadius": 8,
1901
- "flex": 1,
1902
- "transform": Array [
1903
- Object {
1904
- "scaleX": 1,
1905
- },
1906
- ],
1907
- }
1908
- }
1909
- themeActive={true}
1910
- />
1911
- </View>
1912
- <View
1913
- style={
1914
- Array [
1915
- Object {
1916
- "paddingHorizontal": 8,
1917
- "paddingVertical": 4,
1918
- },
1919
- undefined,
1920
- ]
1921
- }
1922
- >
1923
- <View>
1924
- <Text
1925
- allowFontScaling={false}
1926
- numberOfLines={1}
1927
- style={
1928
- Array [
1929
- Object {
1930
- "color": "#001f23",
1931
- "fontFamily": "BeVietnamPro-SemiBold",
1932
- "fontSize": 14,
1933
- "letterSpacing": 0.42,
1934
- "lineHeight": 22,
1935
- },
1936
- Object {
1937
- "color": "#001f23",
1938
- },
1939
- ]
1940
- }
1941
- themeFontSize="medium"
1942
- themeFontWeight="semi-bold"
1943
- themeIntent="body"
1944
- themeTypeface="neutral"
1945
- >
1946
- Work
1947
- </Text>
1948
- </View>
1949
- </View>
1950
- </View>
1951
- </View>
1952
- <View
1953
- onLayout={[Function]}
1954
- style={
1955
- Array [
1956
- Object {
1957
- "flexDirection": "row",
1958
- },
1959
- null,
1960
- ]
1961
- }
1962
- >
1963
- <View
1964
- accessible={true}
1965
- collapsable={false}
1966
- focusable={true}
1967
- isFirstItem={false}
1968
- onClick={[Function]}
1969
- onResponderGrant={[Function]}
1970
- onResponderMove={[Function]}
1971
- onResponderRelease={[Function]}
1972
- onResponderTerminate={[Function]}
1973
- onResponderTerminationRequest={[Function]}
1974
- onStartShouldSetResponder={[Function]}
1975
- style={
1976
- Object {
1977
- "marginLeft": 12,
1978
- "paddingVertical": 8,
1979
- }
1980
- }
1981
- >
1982
- <View
1983
- style={
1984
- Array [
1985
- Object {
1986
- "bottom": 0,
1987
- "left": 0,
1988
- "paddingVertical": 8,
1989
- "position": "absolute",
1990
- "right": 0,
1991
- "top": 0,
1992
- },
1993
- undefined,
1994
- ]
1995
- }
1996
- >
1997
- <View
1998
- collapsable={false}
1999
- style={
2000
- Object {
2001
- "backgroundColor": undefined,
2002
- "borderRadius": 8,
2003
- "flex": 1,
2004
- "transform": Array [
2005
- Object {
2006
- "scaleX": 0,
2007
- },
2008
- ],
2009
- }
2010
- }
2011
- themeActive={false}
2012
- />
2013
- </View>
2014
- <View
2015
- style={
2016
- Array [
2017
- Object {
2018
- "paddingHorizontal": 8,
2019
- "paddingVertical": 4,
2020
- },
2021
- undefined,
2022
- ]
2023
- }
2024
- >
2025
- <View>
2026
- <HeroIcon
2027
- name="speaker-outlined"
2028
- style={
2029
- Array [
2030
- Object {
2031
- "color": "#001f23",
2032
- "fontSize": 20,
2033
- },
2034
- Object {
2035
- "color": "#001f23",
2036
- },
2037
- ]
2038
- }
2039
- testID="hero-icon-speaker-outlined"
2040
- themeIntent="text"
2041
- themeSize="small"
2042
- />
2043
- </View>
2044
- </View>
2045
- </View>
2046
- </View>
2047
- <View
2048
- onLayout={[Function]}
2049
- style={
2050
- Array [
2051
- Object {
2052
- "flexDirection": "row",
2053
- },
2054
- null,
2055
- ]
2056
- }
2057
- >
2058
- <View
2059
- accessible={true}
2060
- collapsable={false}
2061
- focusable={true}
2062
- isFirstItem={false}
2063
- onClick={[Function]}
2064
- onResponderGrant={[Function]}
2065
- onResponderMove={[Function]}
2066
- onResponderRelease={[Function]}
2067
- onResponderTerminate={[Function]}
2068
- onResponderTerminationRequest={[Function]}
2069
- onStartShouldSetResponder={[Function]}
2070
- style={
2071
- Object {
2072
- "marginLeft": 12,
2073
- "paddingVertical": 8,
2074
- }
2075
- }
2076
- >
2077
- <View
2078
- style={
2079
- Array [
2080
- Object {
2081
- "bottom": 0,
2082
- "left": 0,
2083
- "paddingVertical": 8,
2084
- "position": "absolute",
2085
- "right": 0,
2086
- "top": 0,
2087
- },
2088
- undefined,
2089
- ]
2090
- }
2091
- >
2092
- <View
2093
- collapsable={false}
2094
- style={
2095
- Object {
2096
- "backgroundColor": undefined,
2097
- "borderRadius": 8,
2098
- "flex": 1,
2099
- "transform": Array [
2100
- Object {
2101
- "scaleX": 0,
2102
- },
2103
- ],
2104
- }
2105
- }
2106
- themeActive={false}
2107
- />
2108
- </View>
2109
- <View
2110
- style={
2111
- Array [
2112
- Object {
2113
- "paddingHorizontal": 8,
2114
- "paddingVertical": 4,
2115
- },
2116
- undefined,
2117
- ]
2118
- }
2119
- >
2120
- <View
2121
- style={
2122
- Object {
2123
- "paddingHorizontal": 4,
2124
- }
2125
- }
2126
- >
2127
- <HeroIcon
2128
- name="home-outlined"
2129
- style={
2130
- Array [
2131
- Object {
2132
- "color": "#001f23",
2133
- "fontSize": 20,
2134
- },
2135
- Object {
2136
- "color": "#001f23",
2137
- },
2138
- ]
2139
- }
2140
- testID="hero-icon-home-outlined"
2141
- themeIntent="text"
2142
- themeSize="small"
2143
- />
2144
- <View
2145
- collapsable={false}
2146
- style={
2147
- Object {
2148
- "backgroundColor": "#de350b",
2149
- "borderRadius": 999,
2150
- "height": 8,
2151
- "opacity": 1,
2152
- "position": "absolute",
2153
- "right": -2,
2154
- "top": -2,
2155
- "transform": Array [
2156
- Object {
2157
- "scale": 1,
2158
- },
2159
- ],
2160
- "width": 8,
2161
- }
2162
- }
2163
- themeIntent="danger"
2164
- />
2165
- </View>
2166
- </View>
2167
- </View>
2168
- </View>
2169
- <View
2170
- onLayout={[Function]}
2171
- style={
2172
- Array [
2173
- Object {
2174
- "flexDirection": "row",
2175
- },
2176
- null,
2177
- ]
2178
- }
2179
- >
2180
- <View
2181
- accessible={true}
2182
- collapsable={false}
2183
- focusable={true}
2184
- isFirstItem={false}
2185
- onClick={[Function]}
2186
- onResponderGrant={[Function]}
2187
- onResponderMove={[Function]}
2188
- onResponderRelease={[Function]}
2189
- onResponderTerminate={[Function]}
2190
- onResponderTerminationRequest={[Function]}
2191
- onStartShouldSetResponder={[Function]}
2192
- style={
2193
- Object {
2194
- "marginLeft": 12,
2195
- "paddingVertical": 8,
2196
- }
2197
- }
2198
- >
2199
- <View
2200
- style={
2201
- Array [
2202
- Object {
2203
- "bottom": 0,
2204
- "left": 0,
2205
- "paddingVertical": 8,
2206
- "position": "absolute",
2207
- "right": 0,
2208
- "top": 0,
2209
- },
2210
- undefined,
2211
- ]
2212
- }
2213
- >
2214
- <View
2215
- collapsable={false}
2216
- style={
2217
- Object {
2218
- "backgroundColor": undefined,
2219
- "borderRadius": 8,
2220
- "flex": 1,
2221
- "transform": Array [
2222
- Object {
2223
- "scaleX": 0,
2224
- },
2225
- ],
2226
- }
2227
- }
2228
- themeActive={false}
2229
- />
2230
- </View>
2231
- <View
2232
- style={
2233
- Array [
2234
- Object {
2235
- "paddingHorizontal": 8,
2236
- "paddingVertical": 4,
2237
- },
2238
- undefined,
2239
- ]
2240
- }
2241
- >
2242
- <View
2243
- style={
2244
- Array [
2245
- Object {
2246
- "alignItems": "center",
2247
- "flexDirection": "row",
2248
- },
2249
- undefined,
2250
- ]
2251
- }
2252
- >
2253
- <HeroIcon
2254
- name="calendar-dates-outlined"
2255
- style={
2256
- Array [
2257
- Object {
2258
- "color": "#001f23",
2259
- "fontSize": 20,
2260
- },
2261
- Object {
2262
- "color": "#001f23",
2263
- },
2264
- ]
2265
- }
2266
- testID="hero-icon-calendar-dates-outlined"
2267
- themeIntent="text"
2268
- themeSize="small"
2269
- />
2270
- <View
2271
- collapsable={false}
2272
- style={
2273
- Object {
2274
- "alignItems": "center",
2275
- "backgroundColor": "#4568fb",
2276
- "borderRadius": 999,
2277
- "height": 20,
2278
- "justifyContent": "center",
2279
- "marginLeft": 4,
2280
- "minWidth": 20,
2281
- "opacity": 1,
2282
- "paddingHorizontal": 8,
2283
- "transform": Array [
2284
- Object {
2285
- "scale": 1,
2286
- },
2287
- ],
2288
- }
2289
- }
2290
- themeIntent="info"
2291
- themePadding="wideContent"
2292
- >
2293
- <Text
2294
- allowFontScaling={false}
2295
- style={
2296
- Array [
2297
- Object {
2298
- "color": "#001f23",
2299
- "fontFamily": "BeVietnamPro-Regular",
2300
- "fontSize": 14,
2301
- "letterSpacing": 0.42,
2302
- "lineHeight": 22,
2303
- },
2304
- Array [
2305
- Object {
2306
- "color": "#ffffff",
2307
- "fontFamily": "BeVietnamPro-SemiBold",
2308
- "fontSize": 12,
2309
- "includeFontPadding": false,
2310
- "lineHeight": 20,
2311
- "textAlign": "center",
2312
- "textAlignVertical": "center",
2313
- },
2314
- undefined,
2315
- ],
2316
- ]
2317
- }
2318
- themeFontSize="medium"
2319
- themeFontWeight="regular"
2320
- themeIntent="body"
2321
- themeTypeface="neutral"
2322
- >
2323
- 50
2324
- </Text>
2325
- </View>
2326
- </View>
2327
- </View>
2328
- </View>
2329
- </View>
2330
- </View>
2331
- </RCTScrollView>
2332
- </View>
2333
- <RNCViewPager
2334
- layoutDirection="ltr"
2335
- onMoveShouldSetResponderCapture={[Function]}
2336
- onPageScroll={[Function]}
2337
- onPageScrollStateChanged={[Function]}
2338
- onPageSelected={[Function]}
2339
- >
2340
- <View
2341
- collapsable={false}
2342
- style={
2343
- Object {
2344
- "bottom": 0,
2345
- "left": 0,
2346
- "position": "absolute",
2347
- "right": 0,
2348
- "top": 0,
2349
- }
2350
- }
2351
- >
2352
- <View
2353
- accessibilityElementsHidden={false}
2354
- importantForAccessibility="auto"
2355
- style={
2356
- Array [
2357
- Object {
2358
- "flex": 1,
2359
- },
2360
- Array [
2361
- Object {
2362
- "flex": 1,
2363
- "overflow": "hidden",
2364
- },
2365
- Object {
2366
- "bottom": 0,
2367
- "left": 0,
2368
- "position": "absolute",
2369
- "right": 0,
2370
- "top": 0,
2371
- },
2372
- ],
2373
- ]
2374
- }
2375
- >
2376
- <Text>
2377
- Work Screen
2378
-
2379
- focused
2380
- </Text>
2381
- </View>
2382
- </View>
2383
- <View
2384
- collapsable={false}
2385
- style={
2386
- Object {
2387
- "bottom": 0,
2388
- "left": 0,
2389
- "position": "absolute",
2390
- "right": 0,
2391
- "top": 0,
2392
- }
2393
- }
2394
- >
2395
- <View
2396
- accessibilityElementsHidden={true}
2397
- importantForAccessibility="no-hide-descendants"
2398
- style={
2399
- Array [
2400
- Object {
2401
- "flex": 1,
2402
- },
2403
- Array [
2404
- Object {
2405
- "flex": 1,
2406
- "overflow": "hidden",
2407
- },
2408
- null,
2409
- ],
2410
- ]
2411
- }
2412
- >
2413
- <Text>
2414
- Personal Screen
2415
-
2416
- unfocused
2417
- </Text>
2418
- </View>
2419
- </View>
2420
- <View
2421
- collapsable={false}
2422
- style={
2423
- Object {
2424
- "bottom": 0,
2425
- "left": 0,
2426
- "position": "absolute",
2427
- "right": 0,
2428
- "top": 0,
2429
- }
2430
- }
2431
- >
2432
- <View
2433
- accessibilityElementsHidden={true}
2434
- importantForAccessibility="no-hide-descendants"
2435
- style={
2436
- Array [
2437
- Object {
2438
- "flex": 1,
2439
- },
2440
- Array [
2441
- Object {
2442
- "flex": 1,
2443
- "overflow": "hidden",
2444
- },
2445
- null,
2446
- ],
2447
- ]
2448
- }
2449
- >
2450
- <Text>
2451
- Home Screen
2452
-
2453
- unfocused
2454
- </Text>
2455
- </View>
2456
- </View>
2457
- <View
2458
- collapsable={false}
2459
- style={
2460
- Object {
2461
- "bottom": 0,
2462
- "left": 0,
2463
- "position": "absolute",
2464
- "right": 0,
2465
- "top": 0,
2466
- }
2467
- }
2468
- >
2469
- <View
2470
- accessibilityElementsHidden={true}
2471
- importantForAccessibility="no-hide-descendants"
2472
- style={
2473
- Array [
2474
- Object {
2475
- "flex": 1,
2476
- },
2477
- Array [
2478
- Object {
2479
- "flex": 1,
2480
- "overflow": "hidden",
2481
- },
2482
- null,
2483
- ],
2484
- ]
2485
- }
2486
- >
2487
- <Text>
2488
- Calendar Screen
2489
-
2490
- unfocused
2491
- </Text>
2492
- </View>
2493
- </View>
2494
- </RNCViewPager>
2495
- </View>
2496
- </RNCSafeAreaProvider>
2497
- `;