@hero-design/rn 8.62.0 → 8.63.1
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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +205 -196
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +205 -196
- package/package.json +17 -17
- package/src/components/Alert/__tests__/index.spec.tsx +36 -0
- package/src/components/Alert/index.tsx +28 -2
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +0 -21
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -12
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +4 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -16
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -15
- package/src/components/Tabs/ScrollableTabs.tsx +5 -3
- package/src/components/Tabs/StyledScrollableTabs.tsx +0 -6
- package/src/components/Tabs/StyledTabs.tsx +0 -8
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -6
- package/src/components/Tabs/index.tsx +6 -3
- package/types/components/Accordion/StyledAccordion.d.ts +0 -1
- package/types/components/Alert/StyledAlert.d.ts +0 -1
- package/types/components/Alert/index.d.ts +18 -2
- package/types/components/Attachment/StyledAttachment.d.ts +0 -1
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -1
- package/types/components/Avatar/StyledAvatar.d.ts +0 -1
- package/types/components/Avatar/index.d.ts +0 -1
- package/types/components/Badge/StyledBadge.d.ts +0 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -1
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -1
- package/types/components/BottomSheet/ScrollView.d.ts +0 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -1
- package/types/components/Box/StyledBox.d.ts +0 -1
- package/types/components/Box/types.d.ts +0 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -1
- package/types/components/Button/StyledButton.d.ts +0 -1
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -1
- package/types/components/Calendar/StyledCalendar.d.ts +1 -2
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -1
- package/types/components/Card/StyledCard.d.ts +0 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -1
- package/types/components/Carousel/StyledCarousel.d.ts +0 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -1
- package/types/components/Chip/StyledChip.d.ts +0 -1
- package/types/components/Collapse/StyledCollapse.d.ts +0 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -1
- package/types/components/Divider/StyledDivider.d.ts +0 -1
- package/types/components/Drawer/StyledDrawer.d.ts +0 -1
- package/types/components/Empty/StyledEmpty.d.ts +0 -1
- package/types/components/Error/StyledError.d.ts +0 -1
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -1
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -1
- package/types/components/FAB/StyledFAB.d.ts +0 -1
- package/types/components/FAB/index.d.ts +0 -1
- package/types/components/Icon/HeroIcon/index.d.ts +0 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +0 -1
- package/types/components/List/StyledBasicListItem.d.ts +0 -1
- package/types/components/List/StyledListItem.d.ts +0 -1
- package/types/components/PageControl/StyledPageControl.d.ts +0 -1
- package/types/components/PinInput/StyledPinInput.d.ts +0 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -1
- package/types/components/Progress/StyledProgressBar.d.ts +0 -1
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -1
- package/types/components/Progress/index.d.ts +0 -1
- package/types/components/Radio/StyledRadio.d.ts +0 -1
- package/types/components/Radio/index.d.ts +0 -1
- package/types/components/Rate/StyledRate.d.ts +0 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -1
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -1
- package/types/components/RichTextEditor/index.d.ts +0 -1
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -1
- package/types/components/Select/StyledSelect.d.ts +0 -1
- package/types/components/Select/index.d.ts +0 -1
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -1
- package/types/components/Spinner/StyledSpinner.d.ts +0 -1
- package/types/components/Success/StyledSuccess.d.ts +0 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -1
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -1
- package/types/components/Switch/StyledSwitch.d.ts +0 -1
- package/types/components/Tabs/StyledScrollableTabs.d.ts +1 -9
- package/types/components/Tabs/StyledTabs.d.ts +1 -7
- package/types/components/Tag/StyledTag.d.ts +0 -1
- package/types/components/TextInput/StyledTextInput.d.ts +0 -1
- package/types/components/TextInput/index.d.ts +3 -3
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -1
- package/types/components/Toast/StyledToast.d.ts +0 -1
- package/types/components/Toast/Toast.d.ts +0 -1
- package/types/components/Toast/ToastContext.d.ts +0 -1
- package/types/components/Toast/index.d.ts +0 -1
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -1
- package/types/components/Typography/Body/StyledBody.d.ts +0 -1
- package/types/components/Typography/Caption/StyledCaption.d.ts +0 -1
- package/types/components/Typography/Label/StyledLabel.d.ts +0 -1
- package/types/components/Typography/Text/StyledText.d.ts +0 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +0 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -1
- package/types/theme/ThemeProvider.d.ts +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fireEvent } from '@testing-library/react-native';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import Alert from '..';
|
|
3
4
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
@@ -29,6 +30,23 @@ describe('Alert', () => {
|
|
|
29
30
|
expect(getByTestId('alert-close-icon')).toBeDefined();
|
|
30
31
|
});
|
|
31
32
|
|
|
33
|
+
it('renders correctly with CTA ', () => {
|
|
34
|
+
const onCloseSpy = jest.fn();
|
|
35
|
+
const { getByText } = renderWithTheme(
|
|
36
|
+
<Alert
|
|
37
|
+
title="Title"
|
|
38
|
+
content="Content"
|
|
39
|
+
actionLabel="CTA"
|
|
40
|
+
onClose={onCloseSpy}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
expect(getByText('CTA')).toBeVisible();
|
|
45
|
+
fireEvent.press(getByText('CTA'));
|
|
46
|
+
|
|
47
|
+
expect(onCloseSpy).toHaveBeenCalledTimes(1);
|
|
48
|
+
});
|
|
49
|
+
|
|
32
50
|
it('renders correctly without rounded ', () => {
|
|
33
51
|
const { toJSON, getByTestId, getByText, queryByTestId } = renderWithTheme(
|
|
34
52
|
<Alert title="Title" content="Content" variant="unrounded" />
|
|
@@ -122,3 +140,21 @@ describe('Alert', () => {
|
|
|
122
140
|
});
|
|
123
141
|
});
|
|
124
142
|
});
|
|
143
|
+
|
|
144
|
+
describe('AlertProps', () => {
|
|
145
|
+
it('raises type error if actionLabel has value but no close icon', () => {
|
|
146
|
+
// should raise error which requires onClose
|
|
147
|
+
renderWithTheme(
|
|
148
|
+
// @ts-expect-error: Type '{ title: string; content: string; actionLabel: string; }' i
|
|
149
|
+
<Alert title="Title" content="Content" actionLabel="VIEW" />
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
// if onClose is standalone, it's valid
|
|
153
|
+
renderWithTheme(
|
|
154
|
+
<Alert title="Title" content="Content" onClose={jest.fn()} />
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
// if onClose and actionLabel are undefined, it's valid
|
|
158
|
+
renderWithTheme(<Alert title="Title" content="Content" />);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
@@ -37,7 +37,7 @@ const AlertIcon = ({ icon }: { icon?: IconName }) =>
|
|
|
37
37
|
</IconContainer>
|
|
38
38
|
) : null;
|
|
39
39
|
|
|
40
|
-
interface
|
|
40
|
+
interface BasicAlertProps {
|
|
41
41
|
/**
|
|
42
42
|
* Alert title.
|
|
43
43
|
*/
|
|
@@ -59,6 +59,7 @@ interface AlertProps {
|
|
|
59
59
|
intent?: 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
60
60
|
/**
|
|
61
61
|
* Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
|
|
62
|
+
* - undefined: no action button.
|
|
62
63
|
*/
|
|
63
64
|
onClose?: () => void;
|
|
64
65
|
/**
|
|
@@ -73,8 +74,26 @@ interface AlertProps {
|
|
|
73
74
|
* Testing id of the component.
|
|
74
75
|
*/
|
|
75
76
|
testID?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Action label at the right side of the alert.
|
|
79
|
+
* - undefined: a close icon.
|
|
80
|
+
*/
|
|
81
|
+
actionLabel?: string;
|
|
76
82
|
}
|
|
77
83
|
|
|
84
|
+
type AlertProps =
|
|
85
|
+
| (BasicAlertProps & {
|
|
86
|
+
actionLabel?: undefined;
|
|
87
|
+
})
|
|
88
|
+
| (BasicAlertProps & {
|
|
89
|
+
onClose: () => void;
|
|
90
|
+
/**
|
|
91
|
+
* Action label at the right side of the alert.
|
|
92
|
+
* - undefined: a close icon.
|
|
93
|
+
*/
|
|
94
|
+
actionLabel: string;
|
|
95
|
+
});
|
|
96
|
+
|
|
78
97
|
const Alert = ({
|
|
79
98
|
content,
|
|
80
99
|
icon,
|
|
@@ -84,6 +103,7 @@ const Alert = ({
|
|
|
84
103
|
variant = 'rounded',
|
|
85
104
|
style,
|
|
86
105
|
testID,
|
|
106
|
+
actionLabel,
|
|
87
107
|
}: AlertProps): JSX.Element => {
|
|
88
108
|
useDeprecation(
|
|
89
109
|
`Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.`,
|
|
@@ -116,7 +136,13 @@ const Alert = ({
|
|
|
116
136
|
</ContentContainer>
|
|
117
137
|
{onClose ? (
|
|
118
138
|
<CTAWrapper onPress={onClose} testID="alert-close-icon">
|
|
119
|
-
|
|
139
|
+
{typeof actionLabel === 'string' ? (
|
|
140
|
+
<Typography.Body variant="small-bold">
|
|
141
|
+
{actionLabel}
|
|
142
|
+
</Typography.Body>
|
|
143
|
+
) : (
|
|
144
|
+
<Icon icon="cancel" size="small" />
|
|
145
|
+
)}
|
|
120
146
|
</CTAWrapper>
|
|
121
147
|
) : null}
|
|
122
148
|
</Container>
|
package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap
CHANGED
|
@@ -900,13 +900,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
|
|
|
900
900
|
</View>
|
|
901
901
|
</View>
|
|
902
902
|
</View>
|
|
903
|
-
<Modal
|
|
904
|
-
animationType="fade"
|
|
905
|
-
hardwareAccelerated={false}
|
|
906
|
-
statusBarTranslucent={true}
|
|
907
|
-
transparent={true}
|
|
908
|
-
visible={false}
|
|
909
|
-
/>
|
|
910
903
|
</View>
|
|
911
904
|
<View
|
|
912
905
|
pointerEvents="box-none"
|
|
@@ -2069,13 +2062,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
|
|
|
2069
2062
|
</View>
|
|
2070
2063
|
</View>
|
|
2071
2064
|
</View>
|
|
2072
|
-
<Modal
|
|
2073
|
-
animationType="fade"
|
|
2074
|
-
hardwareAccelerated={false}
|
|
2075
|
-
statusBarTranslucent={true}
|
|
2076
|
-
transparent={true}
|
|
2077
|
-
visible={false}
|
|
2078
|
-
/>
|
|
2079
2065
|
</View>
|
|
2080
2066
|
<View
|
|
2081
2067
|
pointerEvents="box-none"
|
|
@@ -2885,13 +2871,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
|
|
|
2885
2871
|
</View>
|
|
2886
2872
|
</View>
|
|
2887
2873
|
</View>
|
|
2888
|
-
<Modal
|
|
2889
|
-
animationType="fade"
|
|
2890
|
-
hardwareAccelerated={false}
|
|
2891
|
-
statusBarTranslucent={true}
|
|
2892
|
-
transparent={true}
|
|
2893
|
-
visible={false}
|
|
2894
|
-
/>
|
|
2895
2874
|
</View>
|
|
2896
2875
|
<View
|
|
2897
2876
|
pointerEvents="box-none"
|
|
@@ -8,12 +8,6 @@ exports[`BottomSheet renders correctly with BottomSheet.ScrollView 1`] = `
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
>
|
|
11
|
-
<Modal
|
|
12
|
-
hardwareAccelerated={false}
|
|
13
|
-
onRequestClose={[MockFunction]}
|
|
14
|
-
transparent={true}
|
|
15
|
-
visible={false}
|
|
16
|
-
/>
|
|
17
11
|
<View
|
|
18
12
|
pointerEvents="box-none"
|
|
19
13
|
position="bottom"
|
|
@@ -45,12 +39,6 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
45
39
|
}
|
|
46
40
|
}
|
|
47
41
|
>
|
|
48
|
-
<Modal
|
|
49
|
-
hardwareAccelerated={false}
|
|
50
|
-
onRequestClose={[MockFunction]}
|
|
51
|
-
transparent={true}
|
|
52
|
-
visible={false}
|
|
53
|
-
/>
|
|
54
42
|
<View
|
|
55
43
|
pointerEvents="box-none"
|
|
56
44
|
position="bottom"
|
|
@@ -538,12 +538,6 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
|
|
|
538
538
|
</View>
|
|
539
539
|
</View>
|
|
540
540
|
</View>
|
|
541
|
-
<Modal
|
|
542
|
-
hardwareAccelerated={false}
|
|
543
|
-
onRequestClose={[Function]}
|
|
544
|
-
transparent={true}
|
|
545
|
-
visible={false}
|
|
546
|
-
/>
|
|
547
541
|
</View>
|
|
548
542
|
<View
|
|
549
543
|
pointerEvents="box-none"
|
|
@@ -825,12 +819,6 @@ exports[`DatePicker renders variant Calendar 1`] = `
|
|
|
825
819
|
</View>
|
|
826
820
|
</View>
|
|
827
821
|
</View>
|
|
828
|
-
<Modal
|
|
829
|
-
hardwareAccelerated={false}
|
|
830
|
-
onRequestClose={[Function]}
|
|
831
|
-
transparent={true}
|
|
832
|
-
visible={false}
|
|
833
|
-
/>
|
|
834
822
|
</View>
|
|
835
823
|
<View
|
|
836
824
|
pointerEvents="box-none"
|
|
@@ -158,13 +158,6 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
158
158
|
</View>
|
|
159
159
|
</View>
|
|
160
160
|
</View>
|
|
161
|
-
<Modal
|
|
162
|
-
animationType="fade"
|
|
163
|
-
hardwareAccelerated={false}
|
|
164
|
-
statusBarTranslucent={true}
|
|
165
|
-
transparent={true}
|
|
166
|
-
visible={false}
|
|
167
|
-
/>
|
|
168
161
|
</View>
|
|
169
162
|
<View
|
|
170
163
|
pointerEvents="box-none"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bolt":59011,"bookmark-added":59012,"bookmark":59013,"box-check":59014,"box":59015,"bpay":59016,"buildings":59017,"cake":59018,"calendar-clock":59019,"calendar":59020,"candy-box-menu":59021,"caret-down-small":59022,"caret-down":59023,"caret-left-small":59024,"caret-left":59025,"caret-right-small":59026,"caret-right":59027,"caret-up-small":59028,"caret-up":59029,"check-radio":59030,"circle-add":59031,"circle-cancel":59032,"circle-check":59033,"circle-down":59034,"circle-info":59035,"circle-left":59036,"circle-ok":59037,"circle-pencil":59038,"circle-question":59039,"circle-remove":59040,"circle-right":59041,"circle-up":59042,"circle-warning":59043,"clock-3":59044,"clock":59045,"cloud-download":59046,"cloud-upload":59047,"cog":59048,"coin":59049,"contacts":59050,"credit-card":59051,"diamond":59052,"direction-arrows":59053,"directory":59054,"document":59055,"dollar-coin-shine":59056,"double-buildings":59057,"edit-template":59058,"envelope":59059,"exclude":59060,"expand-content":59061,"expense":59062,"explore_nearby":59063,"eye-circle":59064,"eye-invisible":59065,"eye":59066,"face-meh":59067,"face-sad":59068,"face-smiley":59069,"feed":59070,"feedbacks":59071,"file-certified":59072,"file-clone":59073,"file-copy":59074,"file-csv":59075,"file-dispose":59076,"file-doc":59077,"file-excel":59078,"file-export":59079,"file-lock":59080,"file-pdf":59081,"file-powerpoint":59082,"file-search":59083,"file-secured":59084,"file-sheets":59085,"file-slide":59086,"file-verified":59087,"file-word":59088,"file":59089,"filter":59090,"folder-user":59091,"folder":59092,"format-bold":59093,"format-heading1":59094,"format-heading2":59095,"format-italic":59096,"format-list-bulleted":59097,"format-list-numbered":59098,"format-underlined":59099,"funnel-filter":59100,"global-dollar":59101,"globe":59102,"graduation-cap":59103,"graph":59104,"happy-sun":59105,"health-bag":59106,"heart":59107,"hero-points":59108,"home":59109,"image":59110,"import":59111,"incident-siren":59112,"instapay-daily":59113,"instapay-now":59114,"instapay":59115,"list":59116,"loading-2":59117,"loading":59118,"location-on":59119,"location":59120,"lock":59121,"looks-one":59122,"looks-two":59123,"media-content":59124,"menu":59125,"money-notes":59126,"moneybag":59127,"moon":59128,"multiple-stars":59129,"multiple-users":59130,"near-me":59131,"node":59132,"open-folder":59133,"paperclip":59134,"payment-summary":59135,"pencil":59136,"phone":59137,"piggy-bank":59138,"plane-up":59139,"plane":59140,"play-circle":59141,"print":59142,"raising-hands":59143,"reply-arrow":59144,"reply":59145,"reschedule":59146,"rostering":59147,"salary-sacrifice":59148,"save":59149,"schedule-send":59150,"schedule":59151,"search-person":59152,"send":59153,"speaker-active":59154,"speaker":59155,"star-award":59156,"star-badge":59157,"star-circle":59158,"star-medal":59159,"star":59160,"steps-circle":59161,"stopwatch":59162,"suitcase":59163,"surfing":59164,"survey":59165,"swag-pillar-benefit":59166,"swag-pillar-career":59167,"swag-pillar-money":59168,"swag-pillar-work":59169,"swag":59170,"swipe-right":59171,"switch":59172,"tag":59173,"target":59174,"teams":59175,"timesheet":59176,"touch-id":59177,"trash-bin":59178,"unlock":59179,"user":59180,"video-1":59181,"video-2":59182,"wallet":59183,"warning":59184,"activate-outlined":59185,"add-credit-card-outlined":59186,"add-person-outlined":59187,"add-section-outlined":59188,"add-time-outlined":59189,"add":59190,"adjustment-outlined":59191,"ai-outlined":59192,"alignment-2-outlined":59193,"alignment-outlined":59194,"all-caps":59195,"application-outlined":59196,"arrow-down":59197,"arrow-downwards":59198,"arrow-left":59199,"arrow-leftwards":59200,"arrow-right":59201,"arrow-rightwards":59202,"arrow-up":59203,"arrow-upwards":59204,"article-outlined":59205,"at-sign":59206,"auto-graph-outlined":59207,"beer-outlined":59208,"bell-active-outlined":59209,"bell-outlined":59210,"bell-slash-outlined":59211,"bill-management-outlined":59212,"billing-outlined":59213,"body-outlined":59214,"bold":59215,"bolt-outlined":59216,"book-outlined":59217,"bookmark-added-outlined":59218,"bookmark-outlined":59219,"box-check-outlined":59220,"box-outlined":59221,"bullet-points":59222,"cake-outlined":59223,"calendar-dates-outlined":59224,"calendar-star-outlined":59225,"call-outlined":59226,"call-split-outlined":59227,"camera-outlined":59228,"cancel":59229,"car-forward-outlined":59230,"cashback-outlined":59231,"charging-station-outlined":59232,"chat-bubble-outlined":59233,"chat-unread-outlined":59234,"checkmark":59235,"circle-add-outlined":59236,"circle-cancel-outlined":59237,"circle-down-outlined":59238,"circle-info-outlined":59239,"circle-left-outlined":59240,"circle-ok-outlined":59241,"circle-question-outlined":59242,"circle-remove-outlined":59243,"circle-right-outlined":59244,"circle-up-outlined":59245,"circle-warning-outlined":59246,"clock-2-outlined":59247,"clock-outlined":59248,"
|
|
1
|
+
{"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bolt":59011,"bookmark-added":59012,"bookmark":59013,"box-check":59014,"box":59015,"bpay":59016,"buildings":59017,"cake":59018,"calendar-clock":59019,"calendar":59020,"candy-box-menu":59021,"caret-down-small":59022,"caret-down":59023,"caret-left-small":59024,"caret-left":59025,"caret-right-small":59026,"caret-right":59027,"caret-up-small":59028,"caret-up":59029,"check-radio":59030,"circle-add":59031,"circle-cancel":59032,"circle-check":59033,"circle-down":59034,"circle-info":59035,"circle-left":59036,"circle-ok":59037,"circle-pencil":59038,"circle-question":59039,"circle-remove":59040,"circle-right":59041,"circle-up":59042,"circle-warning":59043,"clock-3":59044,"clock":59045,"cloud-download":59046,"cloud-upload":59047,"cog":59048,"coin":59049,"contacts":59050,"credit-card":59051,"diamond":59052,"direction-arrows":59053,"directory":59054,"document":59055,"dollar-coin-shine":59056,"double-buildings":59057,"edit-template":59058,"envelope":59059,"exclude":59060,"expand-content":59061,"expense":59062,"explore_nearby":59063,"eye-circle":59064,"eye-invisible":59065,"eye":59066,"face-meh":59067,"face-sad":59068,"face-smiley":59069,"feed":59070,"feedbacks":59071,"file-certified":59072,"file-clone":59073,"file-copy":59074,"file-csv":59075,"file-dispose":59076,"file-doc":59077,"file-excel":59078,"file-export":59079,"file-lock":59080,"file-pdf":59081,"file-powerpoint":59082,"file-search":59083,"file-secured":59084,"file-sheets":59085,"file-slide":59086,"file-verified":59087,"file-word":59088,"file":59089,"filter":59090,"folder-user":59091,"folder":59092,"format-bold":59093,"format-heading1":59094,"format-heading2":59095,"format-italic":59096,"format-list-bulleted":59097,"format-list-numbered":59098,"format-underlined":59099,"funnel-filter":59100,"global-dollar":59101,"globe":59102,"graduation-cap":59103,"graph":59104,"happy-sun":59105,"health-bag":59106,"heart":59107,"hero-points":59108,"home":59109,"image":59110,"import":59111,"incident-siren":59112,"instapay-daily":59113,"instapay-now":59114,"instapay":59115,"list":59116,"loading-2":59117,"loading":59118,"location-on":59119,"location":59120,"lock":59121,"looks-one":59122,"looks-two":59123,"media-content":59124,"menu":59125,"money-notes":59126,"moneybag":59127,"moon":59128,"multiple-stars":59129,"multiple-users":59130,"near-me":59131,"node":59132,"open-folder":59133,"paperclip":59134,"payment-summary":59135,"pencil":59136,"phone":59137,"piggy-bank":59138,"plane-up":59139,"plane":59140,"play-circle":59141,"print":59142,"raising-hands":59143,"reply-arrow":59144,"reply":59145,"reschedule":59146,"rostering":59147,"salary-sacrifice":59148,"save":59149,"schedule-send":59150,"schedule":59151,"search-person":59152,"send":59153,"speaker-active":59154,"speaker":59155,"star-award":59156,"star-badge":59157,"star-circle":59158,"star-medal":59159,"star":59160,"steps-circle":59161,"stopwatch":59162,"suitcase":59163,"surfing":59164,"survey":59165,"swag-pillar-benefit":59166,"swag-pillar-career":59167,"swag-pillar-money":59168,"swag-pillar-work":59169,"swag":59170,"swipe-right":59171,"switch":59172,"tag":59173,"target":59174,"teams":59175,"timesheet":59176,"touch-id":59177,"trash-bin":59178,"unlock":59179,"user":59180,"video-1":59181,"video-2":59182,"wallet":59183,"warning":59184,"activate-outlined":59185,"add-credit-card-outlined":59186,"add-person-outlined":59187,"add-section-outlined":59188,"add-time-outlined":59189,"add":59190,"adjustment-outlined":59191,"ai-outlined":59192,"alignment-2-outlined":59193,"alignment-outlined":59194,"all-caps":59195,"application-outlined":59196,"arrow-down":59197,"arrow-downwards":59198,"arrow-left":59199,"arrow-leftwards":59200,"arrow-right":59201,"arrow-rightwards":59202,"arrow-up":59203,"arrow-upwards":59204,"article-outlined":59205,"at-sign":59206,"auto-graph-outlined":59207,"beer-outlined":59208,"bell-active-outlined":59209,"bell-outlined":59210,"bell-slash-outlined":59211,"bill-management-outlined":59212,"billing-outlined":59213,"body-outlined":59214,"bold":59215,"bolt-outlined":59216,"book-outlined":59217,"bookmark-added-outlined":59218,"bookmark-outlined":59219,"box-check-outlined":59220,"box-outlined":59221,"bullet-points":59222,"cake-outlined":59223,"calendar-dates-outlined":59224,"calendar-star-outlined":59225,"call-outlined":59226,"call-split-outlined":59227,"camera-outlined":59228,"cancel":59229,"car-forward-outlined":59230,"cashback-outlined":59231,"charging-station-outlined":59232,"chat-bubble-outlined":59233,"chat-unread-outlined":59234,"checkmark":59235,"circle-add-outlined":59236,"circle-cancel-outlined":59237,"circle-down-outlined":59238,"circle-info-outlined":59239,"circle-left-outlined":59240,"circle-ok-outlined":59241,"circle-question-outlined":59242,"circle-remove-outlined":59243,"circle-right-outlined":59244,"circle-up-outlined":59245,"circle-warning-outlined":59246,"clock-2-outlined":59247,"clock-in-outlined":59248,"clock-out-outlined":59249,"clock-outlined":59250,"cog-outlined":59251,"coin-outlined":59252,"coin-super-outlined":59253,"comment-outlined":59254,"contacts-outlined":59255,"contacts-user-outlined":59256,"credit-card-outlined":59257,"cup-outlined":59258,"dentistry-outlined":59259,"direction-arrows-outlined":59260,"directory-outlined":59261,"document-outlined":59262,"dollar-box-outlined":59263,"dollar-card-outlined":59264,"dollar-coin-shine-outlined":59265,"dollar-credit-card-outlined":59266,"dollar-sign":59267,"double-buildings-outlined":59268,"double-left-arrows":59269,"double-right-arrows":59270,"download-box-outlined":59271,"download-outlined":59272,"edit-template-outlined":59273,"email-outlined":59274,"end-break-outlined":59275,"enter-arrow":59276,"envelope-outlined":59277,"expense-approval-outlined":59278,"expense-outlined":59279,"explore-outlined":59280,"extension-outlined":59281,"external-link":59282,"eye-invisible-outlined":59283,"eye-outlined":59284,"face-id":59285,"face-meh-outlined":59286,"face-open-smiley-outlined":59287,"face-sad-outlined":59288,"face-smiley-outlined":59289,"fastfood-outlined":59290,"feed-outlined":59291,"file-certified-outlined":59292,"file-clone-outlined":59293,"file-copy-outlined":59294,"file-dispose-outlined":59295,"file-dollar-certified-outlined":59296,"file-dollar-outlined":59297,"file-download-outlined":59298,"file-export-outlined":59299,"file-lock-outlined":59300,"file-outlined":59301,"file-search-outlined":59302,"file-secured-outlined":59303,"file-statutory-outlined":59304,"file-verified-outlined":59305,"filter-outlined":59306,"folder-outlined":59307,"folder-user-outlined":59308,"form-outlined":59309,"funnel-filter-outline":59310,"goal-outlined":59311,"graph-outlined":59312,"hand-holding-user-outlined":59313,"happy-sun-outlined":59314,"health-bag-outlined":59315,"heart-outlined":59316,"home-active-outlined":59317,"home-outlined":59318,"id-card-outlined":59319,"image-outlined":59320,"import-outlined":59321,"instapay-outlined":59322,"italic":59323,"job-search-outlined":59324,"leave-approval-outlined":59325,"link-1":59326,"link-2":59327,"list-outlined":59328,"live-help-outlined":59329,"local_mall_outlined":59330,"location-on-outlined":59331,"location-outlined":59332,"lock-outlined":59333,"locked-file-outlined":59334,"log-out":59335,"mail-outlined":59336,"map-outlined":59337,"media-content-outlined":59338,"menu-close":59339,"menu-expand":59340,"menu-fold-outlined":59341,"menu-unfold-outlined":59342,"moneybag-outlined":59343,"moon-outlined":59344,"more-horizontal":59345,"more-vertical":59346,"multiple-folders-outlined":59347,"multiple-users-outlined":59348,"near-me-outlined":59349,"node-outlined":59350,"number-points":59351,"number":59352,"overview-outlined":59353,"payment-summary-outlined":59354,"payslip-outlined":59355,"pencil-outlined":59356,"percentage":59357,"phone-outlined":59358,"piggy-bank-outlined":59359,"plane-outlined":59360,"play-circle-outlined":59361,"print-outlined":59362,"propane-tank-outlined":59363,"qr-code-outlined":59364,"qualification-outlined":59365,"re-assign":59366,"redeem":59367,"refresh":59368,"remove":59369,"reply-outlined":59370,"restart":59371,"resume-outlined":59372,"return-arrow":59373,"rostering-outlined":59374,"safety-outlined":59375,"save-outlined":59376,"schedule-outlined":59377,"search-outlined":59378,"search-secured-outlined":59379,"send-outlined":59380,"share-1":59381,"share-2":59382,"share-outlined-2":59383,"share-outlined":59384,"shopping_basket_outlined":59385,"show-chart-outlined":59386,"single-down-arrow":59387,"single-left-arrow":59388,"single-right-arrow":59389,"single-up-arrow":59390,"smart-match-outlined":59391,"sparkle-outlined":59392,"speaker-active-outlined":59393,"speaker-outlined":59394,"star-circle-outlined":59395,"star-outlined":59396,"start-break-outlined":59397,"stash-outlined":59398,"stopwatch-outlined":59399,"strikethrough":59400,"styler-outlined":59401,"suitcase-clock-outlined":59402,"suitcase-outlined":59403,"survey-outlined":59404,"switch-outlined":59405,"sync":59406,"tag-outlined":59407,"target-outlined":59408,"tennis-outlined":59409,"ticket-outlined":59410,"timesheet-outlined":59411,"timesheets-outlined":59412,"today-outlined":59413,"transfer":59414,"trash-bin-outlined":59415,"umbrela-outlined":59416,"unavailability-outlined":59417,"unavailable":59418,"underline":59419,"union-outlined":59420,"unlock-outlined":59421,"upload-outlined":59422,"user-circle-outlined":59423,"user-gear-outlined":59424,"user-outlined":59425,"user-rectangle-outlined":59426,"video-1-outlined":59427,"video-2-outlined":59428,"volunteer-outlined":59429,"wallet-outlined":59430,"wellness-outlined":59431}
|
|
@@ -248,6 +248,8 @@ const IconList = [
|
|
|
248
248
|
'circle-up-outlined',
|
|
249
249
|
'circle-warning-outlined',
|
|
250
250
|
'clock-2-outlined',
|
|
251
|
+
'clock-in-outlined',
|
|
252
|
+
'clock-out-outlined',
|
|
251
253
|
'clock-outlined',
|
|
252
254
|
'cog-outlined',
|
|
253
255
|
'coin-outlined',
|
|
@@ -273,6 +275,7 @@ const IconList = [
|
|
|
273
275
|
'download-outlined',
|
|
274
276
|
'edit-template-outlined',
|
|
275
277
|
'email-outlined',
|
|
278
|
+
'end-break-outlined',
|
|
276
279
|
'enter-arrow',
|
|
277
280
|
'envelope-outlined',
|
|
278
281
|
'expense-approval-outlined',
|
|
@@ -394,6 +397,7 @@ const IconList = [
|
|
|
394
397
|
'speaker-outlined',
|
|
395
398
|
'star-circle-outlined',
|
|
396
399
|
'star-outlined',
|
|
400
|
+
'start-break-outlined',
|
|
397
401
|
'stash-outlined',
|
|
398
402
|
'stopwatch-outlined',
|
|
399
403
|
'strikethrough',
|
|
@@ -31,7 +31,7 @@ exports[`MentionList when search string is not empty should render mention list
|
|
|
31
31
|
onScrollEndDrag={[Function]}
|
|
32
32
|
removeClippedSubviews={false}
|
|
33
33
|
renderItem={[Function]}
|
|
34
|
-
scrollEventThrottle={
|
|
34
|
+
scrollEventThrottle={0.0001}
|
|
35
35
|
stickyHeaderIndices={[]}
|
|
36
36
|
viewabilityConfigCallbackPairs={[]}
|
|
37
37
|
>
|
|
@@ -61,7 +61,7 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
61
61
|
onScrollBeginDrag={[Function]}
|
|
62
62
|
onScrollEndDrag={[Function]}
|
|
63
63
|
renderItem={[Function]}
|
|
64
|
-
scrollEventThrottle={
|
|
64
|
+
scrollEventThrottle={0.0001}
|
|
65
65
|
stickyHeaderIndices={
|
|
66
66
|
[
|
|
67
67
|
0,
|
|
@@ -935,7 +935,7 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
935
935
|
onScrollBeginDrag={[Function]}
|
|
936
936
|
onScrollEndDrag={[Function]}
|
|
937
937
|
renderItem={[Function]}
|
|
938
|
-
scrollEventThrottle={
|
|
938
|
+
scrollEventThrottle={0.0001}
|
|
939
939
|
stickyHeaderIndices={
|
|
940
940
|
[
|
|
941
941
|
0,
|
|
@@ -1656,7 +1656,7 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
|
|
|
1656
1656
|
onScrollBeginDrag={[Function]}
|
|
1657
1657
|
onScrollEndDrag={[Function]}
|
|
1658
1658
|
renderItem={[Function]}
|
|
1659
|
-
scrollEventThrottle={
|
|
1659
|
+
scrollEventThrottle={0.0001}
|
|
1660
1660
|
stickyHeaderIndices={
|
|
1661
1661
|
[
|
|
1662
1662
|
0,
|
|
@@ -2405,7 +2405,7 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
|
|
|
2405
2405
|
onScrollBeginDrag={[Function]}
|
|
2406
2406
|
onScrollEndDrag={[Function]}
|
|
2407
2407
|
renderItem={[Function]}
|
|
2408
|
-
scrollEventThrottle={
|
|
2408
|
+
scrollEventThrottle={0.0001}
|
|
2409
2409
|
stickyHeaderIndices={
|
|
2410
2410
|
[
|
|
2411
2411
|
0,
|
|
@@ -533,7 +533,7 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
533
533
|
onScrollEndDrag={[Function]}
|
|
534
534
|
onScrollToIndexFailed={[Function]}
|
|
535
535
|
renderItem={[Function]}
|
|
536
|
-
scrollEventThrottle={
|
|
536
|
+
scrollEventThrottle={0.0001}
|
|
537
537
|
stickyHeaderIndices={
|
|
538
538
|
[
|
|
539
539
|
0,
|
|
@@ -1795,12 +1795,6 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
1795
1795
|
</View>
|
|
1796
1796
|
</View>
|
|
1797
1797
|
</View>
|
|
1798
|
-
<Modal
|
|
1799
|
-
hardwareAccelerated={false}
|
|
1800
|
-
onRequestClose={[Function]}
|
|
1801
|
-
transparent={true}
|
|
1802
|
-
visible={false}
|
|
1803
|
-
/>
|
|
1804
1798
|
<View
|
|
1805
1799
|
pointerEvents="box-none"
|
|
1806
1800
|
position="bottom"
|
|
@@ -2361,7 +2355,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
2361
2355
|
onScrollEndDrag={[Function]}
|
|
2362
2356
|
onScrollToIndexFailed={[Function]}
|
|
2363
2357
|
renderItem={[Function]}
|
|
2364
|
-
scrollEventThrottle={
|
|
2358
|
+
scrollEventThrottle={0.0001}
|
|
2365
2359
|
stickyHeaderIndices={
|
|
2366
2360
|
[
|
|
2367
2361
|
0,
|
|
@@ -3838,12 +3832,6 @@ exports[`rendering renders correctly when input is loading 1`] = `
|
|
|
3838
3832
|
</View>
|
|
3839
3833
|
</View>
|
|
3840
3834
|
</View>
|
|
3841
|
-
<Modal
|
|
3842
|
-
hardwareAccelerated={false}
|
|
3843
|
-
onRequestClose={[Function]}
|
|
3844
|
-
transparent={true}
|
|
3845
|
-
visible={false}
|
|
3846
|
-
/>
|
|
3847
3835
|
<View
|
|
3848
3836
|
pointerEvents="box-none"
|
|
3849
3837
|
position="bottom"
|
|
@@ -4392,7 +4380,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
4392
4380
|
onScrollEndDrag={[Function]}
|
|
4393
4381
|
onScrollToIndexFailed={[Function]}
|
|
4394
4382
|
renderItem={[Function]}
|
|
4395
|
-
scrollEventThrottle={
|
|
4383
|
+
scrollEventThrottle={0.0001}
|
|
4396
4384
|
stickyHeaderIndices={
|
|
4397
4385
|
[
|
|
4398
4386
|
0,
|
|
@@ -5710,7 +5698,7 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
5710
5698
|
onScrollEndDrag={[Function]}
|
|
5711
5699
|
onScrollToIndexFailed={[Function]}
|
|
5712
5700
|
renderItem={[Function]}
|
|
5713
|
-
scrollEventThrottle={
|
|
5701
|
+
scrollEventThrottle={0.0001}
|
|
5714
5702
|
stickyHeaderIndices={
|
|
5715
5703
|
[
|
|
5716
5704
|
0,
|
|
@@ -61,7 +61,7 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
61
61
|
onScrollBeginDrag={[Function]}
|
|
62
62
|
onScrollEndDrag={[Function]}
|
|
63
63
|
renderItem={[Function]}
|
|
64
|
-
scrollEventThrottle={
|
|
64
|
+
scrollEventThrottle={0.0001}
|
|
65
65
|
stickyHeaderIndices={
|
|
66
66
|
[
|
|
67
67
|
0,
|
|
@@ -912,7 +912,7 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
912
912
|
onScrollBeginDrag={[Function]}
|
|
913
913
|
onScrollEndDrag={[Function]}
|
|
914
914
|
renderItem={[Function]}
|
|
915
|
-
scrollEventThrottle={
|
|
915
|
+
scrollEventThrottle={0.0001}
|
|
916
916
|
stickyHeaderIndices={
|
|
917
917
|
[
|
|
918
918
|
0,
|
|
@@ -1610,7 +1610,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1610
1610
|
onScrollBeginDrag={[Function]}
|
|
1611
1611
|
onScrollEndDrag={[Function]}
|
|
1612
1612
|
renderItem={[Function]}
|
|
1613
|
-
scrollEventThrottle={
|
|
1613
|
+
scrollEventThrottle={0.0001}
|
|
1614
1614
|
stickyHeaderIndices={
|
|
1615
1615
|
[
|
|
1616
1616
|
0,
|
|
@@ -2308,7 +2308,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2308
2308
|
onScrollBeginDrag={[Function]}
|
|
2309
2309
|
onScrollEndDrag={[Function]}
|
|
2310
2310
|
renderItem={[Function]}
|
|
2311
|
-
scrollEventThrottle={
|
|
2311
|
+
scrollEventThrottle={0.0001}
|
|
2312
2312
|
stickyHeaderIndices={
|
|
2313
2313
|
[
|
|
2314
2314
|
0,
|
|
@@ -532,7 +532,7 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
532
532
|
onScrollEndDrag={[Function]}
|
|
533
533
|
onScrollToIndexFailed={[Function]}
|
|
534
534
|
renderItem={[Function]}
|
|
535
|
-
scrollEventThrottle={
|
|
535
|
+
scrollEventThrottle={0.0001}
|
|
536
536
|
stickyHeaderIndices={
|
|
537
537
|
[
|
|
538
538
|
0,
|
|
@@ -1710,12 +1710,6 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
1710
1710
|
</View>
|
|
1711
1711
|
</View>
|
|
1712
1712
|
</View>
|
|
1713
|
-
<Modal
|
|
1714
|
-
hardwareAccelerated={false}
|
|
1715
|
-
onRequestClose={[Function]}
|
|
1716
|
-
transparent={true}
|
|
1717
|
-
visible={false}
|
|
1718
|
-
/>
|
|
1719
1713
|
<View
|
|
1720
1714
|
pointerEvents="box-none"
|
|
1721
1715
|
position="bottom"
|
|
@@ -2276,7 +2270,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
2276
2270
|
onScrollEndDrag={[Function]}
|
|
2277
2271
|
onScrollToIndexFailed={[Function]}
|
|
2278
2272
|
renderItem={[Function]}
|
|
2279
|
-
scrollEventThrottle={
|
|
2273
|
+
scrollEventThrottle={0.0001}
|
|
2280
2274
|
stickyHeaderIndices={
|
|
2281
2275
|
[
|
|
2282
2276
|
0,
|
|
@@ -3613,12 +3607,6 @@ exports[`rendering renders correctly when input is loading 1`] = `
|
|
|
3613
3607
|
</View>
|
|
3614
3608
|
</View>
|
|
3615
3609
|
</View>
|
|
3616
|
-
<Modal
|
|
3617
|
-
hardwareAccelerated={false}
|
|
3618
|
-
onRequestClose={[Function]}
|
|
3619
|
-
transparent={true}
|
|
3620
|
-
visible={false}
|
|
3621
|
-
/>
|
|
3622
3610
|
<View
|
|
3623
3611
|
pointerEvents="box-none"
|
|
3624
3612
|
position="bottom"
|
|
@@ -4167,7 +4155,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
4167
4155
|
onScrollEndDrag={[Function]}
|
|
4168
4156
|
onScrollToIndexFailed={[Function]}
|
|
4169
4157
|
renderItem={[Function]}
|
|
4170
|
-
scrollEventThrottle={
|
|
4158
|
+
scrollEventThrottle={0.0001}
|
|
4171
4159
|
stickyHeaderIndices={
|
|
4172
4160
|
[
|
|
4173
4161
|
0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
3
3
|
import PagerView from 'react-native-pager-view';
|
|
4
|
-
import { TabContainer
|
|
4
|
+
import { TabContainer } from './StyledScrollableTabs';
|
|
5
5
|
import type { TabsProps } from '.';
|
|
6
6
|
import SceneView from './SceneView';
|
|
7
7
|
import ScrollableTabHeader from './ScrollableTabsHeader/ScrollableTabsHeader';
|
|
@@ -68,7 +68,8 @@ const ScrollableTab = ({
|
|
|
68
68
|
testID={componentTestID ? `${componentTestID}-tab-bar` : undefined}
|
|
69
69
|
variant={variant}
|
|
70
70
|
/>
|
|
71
|
-
<
|
|
71
|
+
<PagerView
|
|
72
|
+
useNext
|
|
72
73
|
initialPage={selectedTabIndex}
|
|
73
74
|
ref={pagerViewRef}
|
|
74
75
|
onPageScrollStateChanged={(e) => {
|
|
@@ -89,6 +90,7 @@ const ScrollableTab = ({
|
|
|
89
90
|
}
|
|
90
91
|
}}
|
|
91
92
|
scrollEnabled={swipeEnabled}
|
|
93
|
+
style={{ flex: 1 }}
|
|
92
94
|
>
|
|
93
95
|
{tabs.map((tab, index) => {
|
|
94
96
|
const { key, component, testID } = tab;
|
|
@@ -107,7 +109,7 @@ const ScrollableTab = ({
|
|
|
107
109
|
</ScreenContext.Provider>
|
|
108
110
|
);
|
|
109
111
|
})}
|
|
110
|
-
</
|
|
112
|
+
</PagerView>
|
|
111
113
|
</TabContainer>
|
|
112
114
|
</TabContext.Provider>
|
|
113
115
|
);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Animated, StyleSheet, View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
|
-
import PagerView from 'react-native-pager-view';
|
|
4
3
|
|
|
5
4
|
const TabScreen = styled(View)({
|
|
6
5
|
flex: 1,
|
|
@@ -11,10 +10,6 @@ const TabContainer = styled(View)({
|
|
|
11
10
|
overflow: 'hidden',
|
|
12
11
|
});
|
|
13
12
|
|
|
14
|
-
const ContentWrapper = styled(PagerView)({
|
|
15
|
-
flex: 1,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
13
|
const HeaderTabWrapper = styled(View)<{
|
|
19
14
|
themeInsets: { top: number; right: number; bottom: number; left: number };
|
|
20
15
|
}>(({ themeInsets }) => ({
|
|
@@ -64,7 +59,6 @@ export {
|
|
|
64
59
|
TabScreen,
|
|
65
60
|
TabContainer,
|
|
66
61
|
HeaderTabWrapper,
|
|
67
|
-
ContentWrapper,
|
|
68
62
|
HeaderTabItemOutlineWrapper,
|
|
69
63
|
HeaderTabItemOutline,
|
|
70
64
|
HeaderTabItemWrapper,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { Animated, View } from 'react-native';
|
|
3
|
-
import PagerView from 'react-native-pager-view';
|
|
4
|
-
|
|
5
|
-
const AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
|
|
6
3
|
|
|
7
4
|
const TabContainer = styled(View)({
|
|
8
5
|
flex: 1,
|
|
@@ -27,10 +24,6 @@ const HeaderTabItem = styled(View)(({ theme }) => ({
|
|
|
27
24
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding,
|
|
28
25
|
}));
|
|
29
26
|
|
|
30
|
-
const ContentWrapper = styled(AnimatedPagerView)({
|
|
31
|
-
flex: 1,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
27
|
const TabScreen = styled(View)({
|
|
35
28
|
flex: 1,
|
|
36
29
|
});
|
|
@@ -55,7 +48,6 @@ export {
|
|
|
55
48
|
HeaderTabWrapper,
|
|
56
49
|
HeaderTab,
|
|
57
50
|
HeaderTabItem,
|
|
58
|
-
ContentWrapper,
|
|
59
51
|
TabScreen,
|
|
60
52
|
StyledIndicator,
|
|
61
53
|
StyledBadgeWrapper,
|