@hero-design/rn 8.24.0-alpha.1 → 8.24.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 (287) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/.turbo/turbo-publish:npm.log +0 -9
  3. package/es/index.js +78 -142
  4. package/lib/index.js +78 -142
  5. package/package.json +5 -5
  6. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  7. package/src/components/Success/__tests__/index.spec.tsx +6 -0
  8. package/src/components/Success/index.tsx +19 -0
  9. package/src/components/Tabs/{ScrollableTabsV2/SceneView.tsx → SceneView.tsx} +2 -2
  10. package/src/components/Tabs/ScrollableTabs.tsx +54 -48
  11. package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/SceneView.spec.tsx +3 -3
  12. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +86 -28
  13. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1687 -49
  14. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1213 -29
  15. package/src/components/Tabs/__tests__/index.spec.tsx +58 -14
  16. package/src/components/Tabs/index.tsx +108 -102
  17. package/src/components/Tabs/useIsFocused.tsx +19 -0
  18. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  19. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  20. package/types/components/Accordion/index.d.ts +0 -0
  21. package/types/components/Alert/StyledAlert.d.ts +0 -0
  22. package/types/components/Alert/index.d.ts +0 -0
  23. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  24. package/types/components/Attachment/index.d.ts +0 -0
  25. package/types/components/Avatar/Avatar.d.ts +0 -0
  26. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  27. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  28. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  29. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  30. package/types/components/Avatar/index.d.ts +0 -0
  31. package/types/components/Badge/Status.d.ts +0 -0
  32. package/types/components/Badge/StyledBadge.d.ts +0 -0
  33. package/types/components/Badge/index.d.ts +0 -0
  34. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  35. package/types/components/BottomNavigation/index.d.ts +0 -0
  36. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  37. package/types/components/BottomSheet/Footer.d.ts +0 -0
  38. package/types/components/BottomSheet/Header.d.ts +0 -0
  39. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  40. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  41. package/types/components/BottomSheet/index.d.ts +0 -0
  42. package/types/components/Box/StyledBox.d.ts +0 -0
  43. package/types/components/Box/config.d.ts +0 -0
  44. package/types/components/Box/index.d.ts +0 -0
  45. package/types/components/Box/types.d.ts +0 -0
  46. package/types/components/Button/Button.d.ts +0 -0
  47. package/types/components/Button/IconButton.d.ts +0 -0
  48. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  49. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  50. package/types/components/Button/StyledButton.d.ts +0 -0
  51. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  52. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  53. package/types/components/Button/index.d.ts +0 -0
  54. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  55. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  56. package/types/components/Calendar/helpers.d.ts +0 -0
  57. package/types/components/Calendar/index.d.ts +0 -0
  58. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  59. package/types/components/Card/DataCard/index.d.ts +0 -0
  60. package/types/components/Card/StyledCard.d.ts +0 -0
  61. package/types/components/Card/index.d.ts +0 -0
  62. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  63. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  64. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  65. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  66. package/types/components/Carousel/contants.d.ts +0 -0
  67. package/types/components/Carousel/index.d.ts +0 -0
  68. package/types/components/Carousel/types.d.ts +0 -0
  69. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  70. package/types/components/Checkbox/index.d.ts +0 -0
  71. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  72. package/types/components/Collapse/index.d.ts +0 -0
  73. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  74. package/types/components/ContentNavigator/index.d.ts +0 -0
  75. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  76. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  77. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  78. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  79. package/types/components/DatePicker/index.d.ts +0 -0
  80. package/types/components/DatePicker/types.d.ts +0 -0
  81. package/types/components/Divider/StyledDivider.d.ts +0 -0
  82. package/types/components/Divider/index.d.ts +0 -0
  83. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  84. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  85. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  86. package/types/components/Drawer/index.d.ts +0 -0
  87. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  88. package/types/components/Empty/index.d.ts +0 -0
  89. package/types/components/Error/StyledError.d.ts +0 -0
  90. package/types/components/Error/index.d.ts +0 -0
  91. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  92. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  93. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  94. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  95. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  96. package/types/components/FAB/FAB.d.ts +0 -0
  97. package/types/components/FAB/StyledFAB.d.ts +0 -0
  98. package/types/components/FAB/index.d.ts +0 -0
  99. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  100. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  101. package/types/components/Icon/IconList.d.ts +0 -0
  102. package/types/components/Icon/index.d.ts +0 -0
  103. package/types/components/Icon/utils.d.ts +0 -0
  104. package/types/components/Image/index.d.ts +0 -0
  105. package/types/components/List/BasicListItem.d.ts +0 -0
  106. package/types/components/List/ListItem.d.ts +0 -0
  107. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  108. package/types/components/List/StyledListItem.d.ts +0 -0
  109. package/types/components/List/index.d.ts +0 -0
  110. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  111. package/types/components/PageControl/index.d.ts +0 -0
  112. package/types/components/PinInput/PinCell.d.ts +0 -0
  113. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  114. package/types/components/PinInput/index.d.ts +0 -0
  115. package/types/components/Progress/ProgressBar.d.ts +0 -0
  116. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  117. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  118. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  119. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  120. package/types/components/Progress/constants.d.ts +0 -0
  121. package/types/components/Progress/index.d.ts +0 -0
  122. package/types/components/Progress/types.d.ts +0 -0
  123. package/types/components/Radio/Radio.d.ts +0 -0
  124. package/types/components/Radio/RadioGroup.d.ts +0 -0
  125. package/types/components/Radio/StyledRadio.d.ts +0 -0
  126. package/types/components/Radio/index.d.ts +0 -0
  127. package/types/components/Radio/types.d.ts +0 -0
  128. package/types/components/RefreshControl/index.d.ts +0 -0
  129. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  130. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  131. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  132. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  133. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  134. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  135. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  136. package/types/components/RichTextEditor/constants.d.ts +0 -0
  137. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  138. package/types/components/RichTextEditor/index.d.ts +0 -0
  139. package/types/components/RichTextEditor/types.d.ts +0 -0
  140. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  141. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  142. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  143. package/types/components/SectionHeading/index.d.ts +0 -0
  144. package/types/components/Select/BaseOptionList.d.ts +0 -0
  145. package/types/components/Select/Footer.d.ts +0 -0
  146. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  147. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  148. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  149. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  150. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  151. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  152. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  153. package/types/components/Select/StyledSelect.d.ts +0 -0
  154. package/types/components/Select/helpers.d.ts +0 -0
  155. package/types/components/Select/index.d.ts +0 -0
  156. package/types/components/Select/types.d.ts +0 -0
  157. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  158. package/types/components/Skeleton/index.d.ts +0 -0
  159. package/types/components/Slider/index.d.ts +0 -0
  160. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  161. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  162. package/types/components/Spinner/index.d.ts +0 -0
  163. package/types/components/Success/StyledSuccess.d.ts +0 -0
  164. package/types/components/Success/index.d.ts +8 -0
  165. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  166. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  167. package/types/components/Swipeable/index.d.ts +0 -0
  168. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  169. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  170. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  171. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  172. package/types/components/Switch/index.d.ts +0 -0
  173. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  174. package/types/components/Tabs/SceneView.d.ts +4 -3
  175. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  176. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -0
  177. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  178. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  179. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  180. package/types/components/Tabs/index.d.ts +1 -3
  181. package/types/components/Tabs/useIsFocused.d.ts +6 -0
  182. package/types/components/Tabs/utils.d.ts +0 -0
  183. package/types/components/Tag/StyledTag.d.ts +0 -0
  184. package/types/components/Tag/index.d.ts +0 -0
  185. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  186. package/types/components/TextInput/index.d.ts +0 -0
  187. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  188. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  189. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  190. package/types/components/TimePicker/index.d.ts +0 -0
  191. package/types/components/TimePicker/types.d.ts +0 -0
  192. package/types/components/Toast/StyledToast.d.ts +0 -0
  193. package/types/components/Toast/Toast.d.ts +0 -0
  194. package/types/components/Toast/ToastContainer.d.ts +0 -0
  195. package/types/components/Toast/ToastContext.d.ts +0 -0
  196. package/types/components/Toast/ToastProvider.d.ts +0 -0
  197. package/types/components/Toast/index.d.ts +0 -0
  198. package/types/components/Toast/types.d.ts +0 -0
  199. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  200. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  201. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  202. package/types/components/Toolbar/index.d.ts +0 -0
  203. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  204. package/types/components/Typography/Text/index.d.ts +0 -0
  205. package/types/components/Typography/index.d.ts +0 -0
  206. package/types/index.d.ts +0 -0
  207. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  208. package/types/theme/ThemeProvider.d.ts +0 -0
  209. package/types/theme/ThemeSwitcher.d.ts +0 -0
  210. package/types/theme/components/accordion.d.ts +0 -0
  211. package/types/theme/components/alert.d.ts +0 -0
  212. package/types/theme/components/attachment.d.ts +0 -0
  213. package/types/theme/components/avatar.d.ts +0 -0
  214. package/types/theme/components/badge.d.ts +0 -0
  215. package/types/theme/components/bottomNavigation.d.ts +0 -0
  216. package/types/theme/components/bottomSheet.d.ts +0 -0
  217. package/types/theme/components/button.d.ts +0 -0
  218. package/types/theme/components/calendar.d.ts +0 -0
  219. package/types/theme/components/card.d.ts +0 -0
  220. package/types/theme/components/cardCarousel.d.ts +0 -0
  221. package/types/theme/components/carousel.d.ts +0 -0
  222. package/types/theme/components/checkbox.d.ts +0 -0
  223. package/types/theme/components/contentNavigator.d.ts +0 -0
  224. package/types/theme/components/datePicker.d.ts +0 -0
  225. package/types/theme/components/divider.d.ts +0 -0
  226. package/types/theme/components/drawer.d.ts +0 -0
  227. package/types/theme/components/empty.d.ts +0 -0
  228. package/types/theme/components/error.d.ts +0 -0
  229. package/types/theme/components/fab.d.ts +0 -0
  230. package/types/theme/components/icon.d.ts +0 -0
  231. package/types/theme/components/image.d.ts +0 -0
  232. package/types/theme/components/list.d.ts +0 -0
  233. package/types/theme/components/pageControl.d.ts +0 -0
  234. package/types/theme/components/pinInput.d.ts +0 -0
  235. package/types/theme/components/progress.d.ts +0 -0
  236. package/types/theme/components/radio.d.ts +0 -0
  237. package/types/theme/components/refreshControl.d.ts +0 -0
  238. package/types/theme/components/richTextEditor.d.ts +0 -0
  239. package/types/theme/components/sectionHeading.d.ts +0 -0
  240. package/types/theme/components/select.d.ts +0 -0
  241. package/types/theme/components/skeleton.d.ts +0 -0
  242. package/types/theme/components/slider.d.ts +0 -0
  243. package/types/theme/components/spinner.d.ts +0 -0
  244. package/types/theme/components/success.d.ts +0 -0
  245. package/types/theme/components/swipeable.d.ts +0 -0
  246. package/types/theme/components/switch.d.ts +0 -0
  247. package/types/theme/components/tabs.d.ts +0 -0
  248. package/types/theme/components/tag.d.ts +0 -0
  249. package/types/theme/components/textInput.d.ts +0 -0
  250. package/types/theme/components/timePicker.d.ts +0 -0
  251. package/types/theme/components/toast.d.ts +0 -0
  252. package/types/theme/components/toolbar.d.ts +0 -0
  253. package/types/theme/components/typography.d.ts +0 -0
  254. package/types/theme/getTheme.d.ts +0 -0
  255. package/types/theme/global/borders.d.ts +0 -0
  256. package/types/theme/global/colors/eBens.d.ts +0 -0
  257. package/types/theme/global/colors/global.d.ts +0 -0
  258. package/types/theme/global/colors/globalDark.d.ts +0 -0
  259. package/types/theme/global/colors/jobs.d.ts +0 -0
  260. package/types/theme/global/colors/swag.d.ts +0 -0
  261. package/types/theme/global/colors/swagDark.d.ts +0 -0
  262. package/types/theme/global/colors/types.d.ts +0 -0
  263. package/types/theme/global/colors/wallet.d.ts +0 -0
  264. package/types/theme/global/colors/work.d.ts +0 -0
  265. package/types/theme/global/index.d.ts +0 -0
  266. package/types/theme/global/scale.d.ts +0 -0
  267. package/types/theme/global/sizes.d.ts +0 -0
  268. package/types/theme/global/space.d.ts +0 -0
  269. package/types/theme/global/typography.d.ts +0 -0
  270. package/types/theme/index.d.ts +0 -0
  271. package/types/types.d.ts +0 -0
  272. package/types/utils/functions.d.ts +0 -0
  273. package/types/utils/helpers.d.ts +0 -0
  274. package/types/utils/hooks.d.ts +0 -0
  275. package/types/utils/scale.d.ts +0 -0
  276. package/.turbo/turbo-build:types.log +0 -2
  277. package/.turbo/turbo-lint.log +0 -146
  278. package/.turbo/turbo-test.log +0 -451
  279. package/.turbo/turbo-type-check.log +0 -1
  280. package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +0 -120
  281. package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +0 -166
  282. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +0 -2497
  283. package/src/components/Tabs/ScrollableTabsV2/index.tsx +0 -5
  284. package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +0 -10
  285. package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +0 -9
  286. package/types/components/Tabs/ScrollableTabsV2/index.d.ts +0 -4
  287. /package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/__snapshots__/SceneView.spec.tsx.snap +0 -0
@@ -1,5 +1,833 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Tabs.Scroll 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
+
3
831
  exports[`Tabs.Scroll renders correctly 1`] = `
4
832
  <RNCSafeAreaProvider
5
833
  onInsetsChange={[Function]}
@@ -133,16 +961,844 @@ exports[`Tabs.Scroll renders correctly 1`] = `
133
961
  Array [
134
962
  Object {
135
963
  "activeItem": "Work",
136
- "component": <Text>
137
- Work Screen
138
- </Text>,
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
+ />,
139
1795
  "key": "work",
140
1796
  },
141
1797
  Object {
142
1798
  "activeItem": "speaker",
143
- "component": <Text>
144
- Personal Screen
145
- </Text>,
1799
+ "component": <CustomScreen
1800
+ title="Personal Screen"
1801
+ />,
146
1802
  "inactiveItem": "speaker-outlined",
147
1803
  "key": "personal",
148
1804
  },
@@ -151,9 +1807,9 @@ exports[`Tabs.Scroll renders correctly 1`] = `
151
1807
  "badge": Object {
152
1808
  "type": "status",
153
1809
  },
154
- "component": <Text>
155
- Home Screen
156
- </Text>,
1810
+ "component": <CustomScreen
1811
+ title="Home Screen"
1812
+ />,
157
1813
  "inactiveItem": "home-outlined",
158
1814
  "key": "home",
159
1815
  },
@@ -163,9 +1819,9 @@ exports[`Tabs.Scroll renders correctly 1`] = `
163
1819
  "type": "counter",
164
1820
  "value": 50,
165
1821
  },
166
- "component": <Text>
167
- Calendar Screen
168
- </Text>,
1822
+ "component": <CustomScreen
1823
+ title="Calendar Screen"
1824
+ />,
169
1825
  "inactiveItem": "calendar-dates-outlined",
170
1826
  "key": "calendar",
171
1827
  },
@@ -695,16 +2351,17 @@ exports[`Tabs.Scroll renders correctly 1`] = `
695
2351
  >
696
2352
  <View
697
2353
  accessibilityElementsHidden={false}
698
- collapsable={false}
699
2354
  importantForAccessibility="auto"
700
- pointerEvents="auto"
701
2355
  style={
702
2356
  Array [
703
2357
  Object {
704
2358
  "flex": 1,
705
2359
  },
706
2360
  Array [
707
- undefined,
2361
+ Object {
2362
+ "flex": 1,
2363
+ "overflow": "hidden",
2364
+ },
708
2365
  Object {
709
2366
  "bottom": 0,
710
2367
  "left": 0,
@@ -718,6 +2375,8 @@ exports[`Tabs.Scroll renders correctly 1`] = `
718
2375
  >
719
2376
  <Text>
720
2377
  Work Screen
2378
+
2379
+ focused
721
2380
  </Text>
722
2381
  </View>
723
2382
  </View>
@@ -735,29 +2394,26 @@ exports[`Tabs.Scroll renders correctly 1`] = `
735
2394
  >
736
2395
  <View
737
2396
  accessibilityElementsHidden={true}
738
- collapsable={false}
739
2397
  importantForAccessibility="no-hide-descendants"
740
- pointerEvents="none"
741
2398
  style={
742
2399
  Array [
743
2400
  Object {
744
2401
  "flex": 1,
745
2402
  },
746
2403
  Array [
747
- undefined,
748
2404
  Object {
749
- "bottom": 0,
750
- "left": 0,
751
- "position": "absolute",
752
- "right": 0,
753
- "top": 0,
2405
+ "flex": 1,
2406
+ "overflow": "hidden",
754
2407
  },
2408
+ null,
755
2409
  ],
756
2410
  ]
757
2411
  }
758
2412
  >
759
2413
  <Text>
760
2414
  Personal Screen
2415
+
2416
+ unfocused
761
2417
  </Text>
762
2418
  </View>
763
2419
  </View>
@@ -775,31 +2431,22 @@ exports[`Tabs.Scroll renders correctly 1`] = `
775
2431
  >
776
2432
  <View
777
2433
  accessibilityElementsHidden={true}
778
- collapsable={false}
779
2434
  importantForAccessibility="no-hide-descendants"
780
- pointerEvents="none"
781
2435
  style={
782
2436
  Array [
783
2437
  Object {
784
2438
  "flex": 1,
785
2439
  },
786
2440
  Array [
787
- undefined,
788
2441
  Object {
789
- "bottom": 0,
790
- "left": 0,
791
- "position": "absolute",
792
- "right": 0,
793
- "top": 0,
2442
+ "flex": 1,
2443
+ "overflow": "hidden",
794
2444
  },
2445
+ null,
795
2446
  ],
796
2447
  ]
797
2448
  }
798
- >
799
- <Text>
800
- Home Screen
801
- </Text>
802
- </View>
2449
+ />
803
2450
  </View>
804
2451
  <View
805
2452
  collapsable={false}
@@ -815,31 +2462,22 @@ exports[`Tabs.Scroll renders correctly 1`] = `
815
2462
  >
816
2463
  <View
817
2464
  accessibilityElementsHidden={true}
818
- collapsable={false}
819
2465
  importantForAccessibility="no-hide-descendants"
820
- pointerEvents="none"
821
2466
  style={
822
2467
  Array [
823
2468
  Object {
824
2469
  "flex": 1,
825
2470
  },
826
2471
  Array [
827
- undefined,
828
2472
  Object {
829
- "bottom": 0,
830
- "left": 0,
831
- "position": "absolute",
832
- "right": 0,
833
- "top": 0,
2473
+ "flex": 1,
2474
+ "overflow": "hidden",
834
2475
  },
2476
+ null,
835
2477
  ],
836
2478
  ]
837
2479
  }
838
- >
839
- <Text>
840
- Calendar Screen
841
- </Text>
842
- </View>
2480
+ />
843
2481
  </View>
844
2482
  </RNCViewPager>
845
2483
  </View>