@hero-design/rn 8.63.1-alpha.0 → 8.63.2-alpha.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.
- package/CHANGELOG.md +5 -11
- package/es/index.js +943 -898
- package/lib/index.js +943 -898
- package/package.json +21 -21
- 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/Error/index.tsx +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- 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/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/Error/index.d.ts +2 -2
- 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/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
- package/.turbo/turbo-build.log +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.63.
|
|
3
|
+
"version": "8.63.2-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/primitives-core": "11.0.0",
|
|
24
24
|
"@emotion/react": "^11.9.3",
|
|
25
|
-
"@hero-design/colors": "
|
|
26
|
-
"date-fns": "^2.
|
|
25
|
+
"@hero-design/colors": "8.42.5",
|
|
26
|
+
"date-fns": "^2.16.1",
|
|
27
27
|
"hero-editor": "^1.9.21",
|
|
28
28
|
"nanoid": "^4.0.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@hero-design/react-native-month-year-picker": "^8.42.
|
|
32
|
-
"@react-native-community/datetimepicker": "^3.5.2 || ^7.
|
|
33
|
-
"@react-native-community/slider": "4.
|
|
31
|
+
"@hero-design/react-native-month-year-picker": "^8.42.9",
|
|
32
|
+
"@react-native-community/datetimepicker": "^3.5.2 || ^7.6.1",
|
|
33
|
+
"@react-native-community/slider": "^4.5.1",
|
|
34
34
|
"react": "18.2.0",
|
|
35
|
-
"react-native": "^0.
|
|
36
|
-
"react-native-gesture-handler": "^
|
|
37
|
-
"react-native-linear-gradient": "^2.
|
|
38
|
-
"react-native-pager-view": "^
|
|
39
|
-
"react-native-safe-area-context": "^
|
|
35
|
+
"react-native": "^0.73.8",
|
|
36
|
+
"react-native-gesture-handler": "^2.15.0",
|
|
37
|
+
"react-native-linear-gradient": "^2.8.3",
|
|
38
|
+
"react-native-pager-view": "^6.2.1",
|
|
39
|
+
"react-native-safe-area-context": "^4.7.0",
|
|
40
40
|
"react-native-vector-icons": "^9.1.0",
|
|
41
|
-
"react-native-webview": "^
|
|
41
|
+
"react-native-webview": "^13.10.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.20.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@babel/runtime": "^7.20.0",
|
|
49
49
|
"@emotion/jest": "^11.11.0",
|
|
50
50
|
"@hero-design/eslint-plugin": "9.0.0",
|
|
51
|
-
"@hero-design/react-native-month-year-picker": "^8.42.
|
|
52
|
-
"@react-native-community/datetimepicker": "7.
|
|
53
|
-
"@react-native-community/slider": "4.
|
|
51
|
+
"@hero-design/react-native-month-year-picker": "^8.42.9",
|
|
52
|
+
"@react-native-community/datetimepicker": "7.6.1",
|
|
53
|
+
"@react-native-community/slider": "^4.5.1",
|
|
54
54
|
"@rollup/plugin-babel": "^5.3.1",
|
|
55
55
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
56
56
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"prettier-config-hd": "8.42.4",
|
|
76
76
|
"react": "18.2.0",
|
|
77
77
|
"react-dom": "^18.2.0",
|
|
78
|
-
"react-native": "0.
|
|
79
|
-
"react-native-gesture-handler": "
|
|
80
|
-
"react-native-linear-gradient": "
|
|
81
|
-
"react-native-pager-view": "^
|
|
82
|
-
"react-native-safe-area-context": "^
|
|
78
|
+
"react-native": "0.73.8",
|
|
79
|
+
"react-native-gesture-handler": "^2.15.0",
|
|
80
|
+
"react-native-linear-gradient": "2.8.3",
|
|
81
|
+
"react-native-pager-view": "^6.2.1",
|
|
82
|
+
"react-native-safe-area-context": "^4.7.0",
|
|
83
83
|
"react-native-vector-icons": "^9.1.0",
|
|
84
|
-
"react-native-webview": "
|
|
84
|
+
"react-native-webview": "13.10.3",
|
|
85
85
|
"react-test-renderer": "18.2.0",
|
|
86
86
|
"rollup": "^2.68.0",
|
|
87
87
|
"rollup-plugin-copy": "^3.4.0",
|
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"
|
|
@@ -159,7 +159,7 @@ const ErrorPage = ({
|
|
|
159
159
|
* @param {ErrorProps}
|
|
160
160
|
* @return {*} {ReactElement}
|
|
161
161
|
*/
|
|
162
|
-
const
|
|
162
|
+
const ErrorComponent = ({
|
|
163
163
|
visible = true,
|
|
164
164
|
variant = 'in-page',
|
|
165
165
|
title,
|
|
@@ -257,4 +257,4 @@ const Error = ({
|
|
|
257
257
|
);
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
export default
|
|
260
|
+
export default ErrorComponent;
|
|
@@ -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"
|
|
@@ -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={false}
|
|
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,
|
|
@@ -204,7 +204,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
204
204
|
onScrollToIndexFailed={[Function]}
|
|
205
205
|
removeClippedSubviews={false}
|
|
206
206
|
renderItem={[Function]}
|
|
207
|
-
scrollEventThrottle={
|
|
207
|
+
scrollEventThrottle={0.0001}
|
|
208
208
|
showsHorizontalScrollIndicator={false}
|
|
209
209
|
stickyHeaderIndices={[]}
|
|
210
210
|
style={
|
|
@@ -745,12 +745,13 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
745
745
|
</View>
|
|
746
746
|
</RCTScrollView>
|
|
747
747
|
</View>
|
|
748
|
-
<
|
|
748
|
+
<LEGACY_RNCViewPager
|
|
749
749
|
layoutDirection="ltr"
|
|
750
750
|
onMoveShouldSetResponderCapture={[Function]}
|
|
751
751
|
onPageScroll={[Function]}
|
|
752
752
|
onPageScrollStateChanged={[Function]}
|
|
753
753
|
onPageSelected={[Function]}
|
|
754
|
+
useLegacy={true}
|
|
754
755
|
>
|
|
755
756
|
<View
|
|
756
757
|
collapsable={false}
|
|
@@ -894,7 +895,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
894
895
|
}
|
|
895
896
|
/>
|
|
896
897
|
</View>
|
|
897
|
-
</
|
|
898
|
+
</LEGACY_RNCViewPager>
|
|
898
899
|
</View>
|
|
899
900
|
</RNCSafeAreaProvider>
|
|
900
901
|
<View
|
|
@@ -1124,7 +1125,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1124
1125
|
onScrollToIndexFailed={[Function]}
|
|
1125
1126
|
removeClippedSubviews={false}
|
|
1126
1127
|
renderItem={[Function]}
|
|
1127
|
-
scrollEventThrottle={
|
|
1128
|
+
scrollEventThrottle={0.0001}
|
|
1128
1129
|
showsHorizontalScrollIndicator={false}
|
|
1129
1130
|
stickyHeaderIndices={[]}
|
|
1130
1131
|
style={
|
|
@@ -1665,12 +1666,13 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1665
1666
|
</View>
|
|
1666
1667
|
</RCTScrollView>
|
|
1667
1668
|
</View>
|
|
1668
|
-
<
|
|
1669
|
+
<LEGACY_RNCViewPager
|
|
1669
1670
|
layoutDirection="ltr"
|
|
1670
1671
|
onMoveShouldSetResponderCapture={[Function]}
|
|
1671
1672
|
onPageScroll={[Function]}
|
|
1672
1673
|
onPageScrollStateChanged={[Function]}
|
|
1673
1674
|
onPageSelected={[Function]}
|
|
1675
|
+
useLegacy={true}
|
|
1674
1676
|
>
|
|
1675
1677
|
<View
|
|
1676
1678
|
collapsable={false}
|
|
@@ -1814,7 +1816,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1814
1816
|
}
|
|
1815
1817
|
/>
|
|
1816
1818
|
</View>
|
|
1817
|
-
</
|
|
1819
|
+
</LEGACY_RNCViewPager>
|
|
1818
1820
|
</View>
|
|
1819
1821
|
</RNCSafeAreaProvider>
|
|
1820
1822
|
<View
|
|
@@ -2044,7 +2046,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2044
2046
|
onScrollToIndexFailed={[Function]}
|
|
2045
2047
|
removeClippedSubviews={false}
|
|
2046
2048
|
renderItem={[Function]}
|
|
2047
|
-
scrollEventThrottle={
|
|
2049
|
+
scrollEventThrottle={0.0001}
|
|
2048
2050
|
showsHorizontalScrollIndicator={false}
|
|
2049
2051
|
stickyHeaderIndices={[]}
|
|
2050
2052
|
style={
|
|
@@ -2585,12 +2587,13 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2585
2587
|
</View>
|
|
2586
2588
|
</RCTScrollView>
|
|
2587
2589
|
</View>
|
|
2588
|
-
<
|
|
2590
|
+
<LEGACY_RNCViewPager
|
|
2589
2591
|
layoutDirection="ltr"
|
|
2590
2592
|
onMoveShouldSetResponderCapture={[Function]}
|
|
2591
2593
|
onPageScroll={[Function]}
|
|
2592
2594
|
onPageScrollStateChanged={[Function]}
|
|
2593
2595
|
onPageSelected={[Function]}
|
|
2596
|
+
useLegacy={true}
|
|
2594
2597
|
>
|
|
2595
2598
|
<View
|
|
2596
2599
|
collapsable={false}
|
|
@@ -2734,7 +2737,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2734
2737
|
}
|
|
2735
2738
|
/>
|
|
2736
2739
|
</View>
|
|
2737
|
-
</
|
|
2740
|
+
</LEGACY_RNCViewPager>
|
|
2738
2741
|
</View>
|
|
2739
2742
|
</RNCSafeAreaProvider>
|
|
2740
2743
|
<View
|
|
@@ -99,7 +99,7 @@ exports[`ScrollableTabsHeader highlighted variant renders correctly 1`] = `
|
|
|
99
99
|
onScrollToIndexFailed={[Function]}
|
|
100
100
|
removeClippedSubviews={false}
|
|
101
101
|
renderItem={[Function]}
|
|
102
|
-
scrollEventThrottle={
|
|
102
|
+
scrollEventThrottle={0.0001}
|
|
103
103
|
showsHorizontalScrollIndicator={false}
|
|
104
104
|
stickyHeaderIndices={[]}
|
|
105
105
|
style={
|
|
@@ -763,7 +763,7 @@ exports[`ScrollableTabsHeader underlined variant renders correctly 1`] = `
|
|
|
763
763
|
onScrollToIndexFailed={[Function]}
|
|
764
764
|
removeClippedSubviews={false}
|
|
765
765
|
renderItem={[Function]}
|
|
766
|
-
scrollEventThrottle={
|
|
766
|
+
scrollEventThrottle={0.0001}
|
|
767
767
|
showsHorizontalScrollIndicator={false}
|
|
768
768
|
stickyHeaderIndices={[]}
|
|
769
769
|
style={
|
|
@@ -489,12 +489,13 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
489
489
|
/>
|
|
490
490
|
</View>
|
|
491
491
|
</View>
|
|
492
|
-
<
|
|
492
|
+
<LEGACY_RNCViewPager
|
|
493
493
|
layoutDirection="ltr"
|
|
494
494
|
onMoveShouldSetResponderCapture={[Function]}
|
|
495
495
|
onPageScroll={[Function]}
|
|
496
496
|
onPageScrollStateChanged={[Function]}
|
|
497
497
|
onPageSelected={[Function]}
|
|
498
|
+
useLegacy={true}
|
|
498
499
|
>
|
|
499
500
|
<View
|
|
500
501
|
collapsable={false}
|
|
@@ -638,7 +639,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
638
639
|
}
|
|
639
640
|
/>
|
|
640
641
|
</View>
|
|
641
|
-
</
|
|
642
|
+
</LEGACY_RNCViewPager>
|
|
642
643
|
</View>
|
|
643
644
|
</RNCSafeAreaProvider>
|
|
644
645
|
<View
|
|
@@ -1153,12 +1154,13 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1153
1154
|
/>
|
|
1154
1155
|
</View>
|
|
1155
1156
|
</View>
|
|
1156
|
-
<
|
|
1157
|
+
<LEGACY_RNCViewPager
|
|
1157
1158
|
layoutDirection="ltr"
|
|
1158
1159
|
onMoveShouldSetResponderCapture={[Function]}
|
|
1159
1160
|
onPageScroll={[Function]}
|
|
1160
1161
|
onPageScrollStateChanged={[Function]}
|
|
1161
1162
|
onPageSelected={[Function]}
|
|
1163
|
+
useLegacy={true}
|
|
1162
1164
|
>
|
|
1163
1165
|
<View
|
|
1164
1166
|
collapsable={false}
|
|
@@ -1302,7 +1304,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1302
1304
|
}
|
|
1303
1305
|
/>
|
|
1304
1306
|
</View>
|
|
1305
|
-
</
|
|
1307
|
+
</LEGACY_RNCViewPager>
|
|
1306
1308
|
</View>
|
|
1307
1309
|
</RNCSafeAreaProvider>
|
|
1308
1310
|
<View
|
|
@@ -1817,12 +1819,13 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1817
1819
|
/>
|
|
1818
1820
|
</View>
|
|
1819
1821
|
</View>
|
|
1820
|
-
<
|
|
1822
|
+
<LEGACY_RNCViewPager
|
|
1821
1823
|
layoutDirection="ltr"
|
|
1822
1824
|
onMoveShouldSetResponderCapture={[Function]}
|
|
1823
1825
|
onPageScroll={[Function]}
|
|
1824
1826
|
onPageScrollStateChanged={[Function]}
|
|
1825
1827
|
onPageSelected={[Function]}
|
|
1828
|
+
useLegacy={true}
|
|
1826
1829
|
>
|
|
1827
1830
|
<View
|
|
1828
1831
|
collapsable={false}
|
|
@@ -1978,7 +1981,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1978
1981
|
</Text>
|
|
1979
1982
|
</View>
|
|
1980
1983
|
</View>
|
|
1981
|
-
</
|
|
1984
|
+
</LEGACY_RNCViewPager>
|
|
1982
1985
|
</View>
|
|
1983
1986
|
</RNCSafeAreaProvider>
|
|
1984
1987
|
<View
|