@webority/mobile-ui 0.161.0 → 0.164.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/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +4 -4
- package/dist/canvas-kit/kit.js +7 -7
- package/dist/canvas-kit/manifest.json +6 -1
- package/dist/canvas-kit/release.json +6 -6
- package/ios/PdfRasterizer.mm +3 -3
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -1
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.js +1 -1
- package/lib/commonjs/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/commonjs/utils/warnUnknownProps.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -1
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/TagInput/TagInput.js +1 -1
- package/lib/module/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/module/utils/warnUnknownProps.js +1 -1
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +13 -13
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +10 -10
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +1 -1
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +1 -1
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -1
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +2 -2
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +2 -2
- package/lib/typescript/commonjs/components/RichTextEditor/markdownActions.d.ts +3 -3
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/typescript/commonjs/components/Select/Select.d.ts +6 -6
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +3 -3
- package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +3 -3
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +6 -6
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +2 -2
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +5 -5
- package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +2 -2
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +1 -1
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +8 -8
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +4 -4
- package/lib/typescript/commonjs/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/commonjs/theme/animatedValue.d.ts +4 -4
- package/lib/typescript/commonjs/utils/feedback.d.ts +3 -3
- package/lib/typescript/commonjs/utils/warnUnknownProps.d.ts +2 -2
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +13 -13
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +10 -10
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
- package/lib/typescript/module/components/FormField/FormField.d.ts +1 -1
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +1 -1
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/module/components/Input/Input.d.ts +2 -2
- package/lib/typescript/module/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +4 -4
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -1
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +1 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +2 -2
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +2 -2
- package/lib/typescript/module/components/RichTextEditor/markdownActions.d.ts +3 -3
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/typescript/module/components/Select/Select.d.ts +6 -6
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +3 -3
- package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +3 -3
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +6 -6
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +2 -2
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +5 -5
- package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +2 -2
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +1 -1
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +8 -8
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +4 -4
- package/lib/typescript/module/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/module/theme/animatedValue.d.ts +4 -4
- package/lib/typescript/module/utils/feedback.d.ts +3 -3
- package/lib/typescript/module/utils/warnUnknownProps.d.ts +2 -2
- package/package.json +7 -7
- package/src/specs/NativePdfRasterizer.ts +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PickerTrigger
|
|
2
|
+
* PickerTrigger: the tappable input field that opens a modal picker.
|
|
3
3
|
*
|
|
4
4
|
* Standalone read-only field built on FieldBase, used by DatePicker,
|
|
5
5
|
* TimePicker and DateRangePicker (and any consumer-built picker) to render
|
|
6
6
|
* the closed-state row that matches Input / Select pixel-for-pixel.
|
|
7
7
|
*
|
|
8
|
-
* The component is purely visual + interactive
|
|
8
|
+
* The component is purely visual + interactive; it does not own picker
|
|
9
9
|
* state. Consumers either:
|
|
10
10
|
* - Use the built-in trigger mode on a picker, which composes this
|
|
11
11
|
* internally and manages its own open/close.
|
|
@@ -44,7 +44,7 @@ export interface PickerTriggerProps {
|
|
|
44
44
|
* `theme.settings.components.field.requiredMarker` (default `'*'`).
|
|
45
45
|
*/
|
|
46
46
|
required?: boolean | undefined;
|
|
47
|
-
/** Tap handler
|
|
47
|
+
/** Tap handler: typically opens the modal picker. */
|
|
48
48
|
onPress: () => void;
|
|
49
49
|
/** Render a clear (×) affordance when `value` is non-empty. */
|
|
50
50
|
clearable?: boolean | undefined;
|
|
@@ -52,7 +52,7 @@ export interface PickerTriggerProps {
|
|
|
52
52
|
onClear?: (() => void) | undefined;
|
|
53
53
|
/** Left icon slot (e.g. calendar / clock). */
|
|
54
54
|
leftIcon?: React.ReactNode | undefined;
|
|
55
|
-
/** Trailing slot
|
|
55
|
+
/** Trailing slot: defaults to a chevron when unset. Pass `null` to suppress. */
|
|
56
56
|
trailing?: React.ReactNode | undefined;
|
|
57
57
|
disabled?: boolean | undefined;
|
|
58
58
|
size?: PickerTriggerSize | undefined;
|
|
@@ -7,7 +7,7 @@ export interface ProgressBarLabels {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const DEFAULT_PROGRESS_BAR_LABELS: Readonly<ProgressBarLabels>;
|
|
9
9
|
export interface ProgressBarSegment {
|
|
10
|
-
/** Fraction of the full track (0
|
|
10
|
+
/** Fraction of the full track (0-1). */
|
|
11
11
|
value: number;
|
|
12
12
|
/** Explicit colour; falls back to `tone`. */
|
|
13
13
|
color?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* RadioDot
|
|
2
|
+
* RadioDot: the bare animated radio indicator (ring + spring-scaled dot).
|
|
3
3
|
*
|
|
4
4
|
* Extracted from Radio so custom option templates (ChoiceGroup `renderOption`,
|
|
5
5
|
* bespoke cards) can embed the standard indicator without rebuilding the
|
|
6
|
-
* animation or the disabled/selected colour rules. Purely visual
|
|
6
|
+
* animation or the disabled/selected colour rules. Purely visual: no press
|
|
7
7
|
* handling, no a11y role; the parent control owns those.
|
|
8
8
|
*/
|
|
9
9
|
import type React from "react";
|
|
@@ -26,7 +26,7 @@ export interface RepeaterRenderArgs<T> {
|
|
|
26
26
|
export interface RepeaterProps<T> {
|
|
27
27
|
value: ReadonlyArray<T>;
|
|
28
28
|
onChange: (next: T[]) => void;
|
|
29
|
-
/** Builds a blank row. Called on add
|
|
29
|
+
/** Builds a blank row. Called on add; must return a NEW object each time. */
|
|
30
30
|
createRow: () => T;
|
|
31
31
|
renderRow: (args: RepeaterRenderArgs<T>) => React.ReactNode;
|
|
32
32
|
/** Copy for the add button, the empty text, the per-row heading (`labels.row`) and the remove button. */
|
|
@@ -57,7 +57,7 @@ export interface RepeaterProps<T> {
|
|
|
57
57
|
testID?: string | undefined;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Add / remove / edit a list of form rows
|
|
60
|
+
* Add / remove / edit a list of form rows: line items, phone numbers,
|
|
61
61
|
* addresses. Owns the array mechanics (immutably) so each screen stops
|
|
62
62
|
* re-deriving splice/map logic, and keeps the min/max rules in one place where
|
|
63
63
|
* they can't disagree between the add button and the remove button.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The text transforms behind the editor's toolbar, kept out of the component so
|
|
3
|
-
* the behaviour people actually notice
|
|
4
|
-
* caret lands when nothing is selected
|
|
3
|
+
* the behaviour people actually notice (toggling bold OFF again, and where the
|
|
4
|
+
* caret lands when nothing is selected) can be tested as data, with no
|
|
5
5
|
* rendering involved.
|
|
6
6
|
*
|
|
7
7
|
* The output targets our own `<Markdown>` renderer, so the vocabulary is the
|
|
@@ -28,7 +28,7 @@ export declare const normalizeSelection: (selection: EditorSelection, length: nu
|
|
|
28
28
|
*
|
|
29
29
|
* Wrapping applies to the selection; with nothing selected the markers are
|
|
30
30
|
* inserted and the caret lands between them. Applying an action to text that
|
|
31
|
-
* already carries it removes it instead of stacking a second copy
|
|
31
|
+
* already carries it removes it instead of stacking a second copy, which is
|
|
32
32
|
* the half people notice immediately when it is missing.
|
|
33
33
|
*/
|
|
34
34
|
export declare const applyMarkdownAction: (state: EditorState, action: MarkdownAction) => EditorState;
|
|
@@ -28,7 +28,7 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
|
|
|
28
28
|
/** How the label sits. Default `'top'`, the field family's static label; `'float'` rises on focus / value. */
|
|
29
29
|
labelMode?: SearchBarLabelMode | undefined;
|
|
30
30
|
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
31
|
-
/** Current value. Optional / nullable
|
|
31
|
+
/** Current value. Optional / nullable; treated as empty string when undefined or null. */
|
|
32
32
|
value?: string | null | undefined;
|
|
33
33
|
onChangeText: (text: string) => void;
|
|
34
34
|
onSubmit?: ((text: string) => void) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Select
|
|
2
|
+
* Select: single + multi select with bottom-sheet picker.
|
|
3
3
|
*
|
|
4
4
|
* The trigger is a FieldBase row; the picker itself is the shared OptionSheet
|
|
5
5
|
* primitive (also behind InlineSelect), so the sheet look + behaviour never
|
|
@@ -30,7 +30,7 @@ export declare const DEFAULT_SELECT_LABELS: SelectLabels;
|
|
|
30
30
|
interface BaseSelectProps<T = SelectOption> {
|
|
31
31
|
/**
|
|
32
32
|
* Options to render. Default shape is `SelectOption` (`{ label, value, ... }`)
|
|
33
|
-
*
|
|
33
|
+
* For that shape, no accessors are needed. To use a different option shape
|
|
34
34
|
* (e.g. `{ id, name }` from a domain model), pass `getOptionLabel` /
|
|
35
35
|
* `getOptionValue` (and optionally `isOptionDisabled`/`getOptionDescription`/
|
|
36
36
|
* `getOptionIcon`) so Select can read it without per-call-site mapping.
|
|
@@ -73,7 +73,7 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
73
73
|
help?: React.ReactNode | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* Heading shown at the top of the options bottom-sheet. Independent of
|
|
76
|
-
* `label` (the field label above the trigger)
|
|
76
|
+
* `label` (the field label above the trigger). Omit it for a sheet with no
|
|
77
77
|
* heading. Falls back to `label`/`placeholder` only for the sheet's a11y name.
|
|
78
78
|
*/
|
|
79
79
|
title?: string | undefined;
|
|
@@ -119,7 +119,7 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
119
119
|
*/
|
|
120
120
|
leftIcon?: SlotIcon | undefined;
|
|
121
121
|
/**
|
|
122
|
-
* Replaces the built-in arrow on the right of the trigger. Rendered static
|
|
122
|
+
* Replaces the built-in arrow on the right of the trigger. Rendered static;
|
|
123
123
|
* the default chevron's rotate-on-open is dropped, so pass an already-animated
|
|
124
124
|
* node if you want motion. Mirrors Input's `rightIcon`, same contract as `leftIcon`.
|
|
125
125
|
*/
|
|
@@ -138,11 +138,11 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
138
138
|
textStyle?: StyleProp<TextStyle> | undefined;
|
|
139
139
|
/** Style for every option row in the sheet (padding, background, …). */
|
|
140
140
|
optionStyle?: StyleProp<ViewStyle> | undefined;
|
|
141
|
-
/** Extra style for the selected option row
|
|
141
|
+
/** Extra style for the selected option row: it wins over `optionStyle` and the default selected fill. */
|
|
142
142
|
selectedOptionStyle?: StyleProp<ViewStyle> | undefined;
|
|
143
143
|
/** Style for every option's label text in the sheet. */
|
|
144
144
|
optionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
145
|
-
/** Extra style for the selected option's label text
|
|
145
|
+
/** Extra style for the selected option's label text: it wins over `optionTextStyle` and the default selected colour. */
|
|
146
146
|
selectedOptionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
147
147
|
testID?: string | undefined;
|
|
148
148
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Skeleton
|
|
2
|
+
* Skeleton: the leaf placeholder primitive.
|
|
3
3
|
*
|
|
4
4
|
* Every Skeleton on screen reads the shared shimmer/pulse clock from
|
|
5
5
|
* `SkeletonProvider` (see SkeletonClock.tsx). One native-driver loop per
|
|
@@ -46,8 +46,8 @@ export interface SkeletonProps {
|
|
|
46
46
|
* dimensions/radius. Override individual values via `width`, `height`,
|
|
47
47
|
* `radius` as needed.
|
|
48
48
|
* - `'rect'`: default, sharp corners.
|
|
49
|
-
* - `'rounded'`: `theme.radius.md` corners
|
|
50
|
-
* - `'circle'`: 50% radius
|
|
49
|
+
* - `'rounded'`: `theme.radius.md` corners, for cards / buttons.
|
|
50
|
+
* - `'circle'`: 50% radius, for avatars / icons (provide `width` = `height`).
|
|
51
51
|
* - `'text'`: small radius + roughly text-line height. `height` becomes
|
|
52
52
|
* `1.15× fontSize` if a `fontSize` would have been passed.
|
|
53
53
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SkeletonClock
|
|
2
|
+
* SkeletonClock: single shared animation tick for every <Skeleton> on screen.
|
|
3
3
|
*
|
|
4
4
|
* Why this exists: previously every Skeleton primitive ran its own
|
|
5
5
|
* `Animated.loop` on its own `Animated.Value`. A list of 20 placeholders =
|
|
@@ -35,7 +35,7 @@ export interface SkeletonClockValue {
|
|
|
35
35
|
export interface SkeletonClockProviderProps {
|
|
36
36
|
/** Drives the shimmer band's speed. */
|
|
37
37
|
speed: SkeletonSpeed;
|
|
38
|
-
/** Pause the clock entirely
|
|
38
|
+
/** Pause the clock entirely (e.g., when reduced-motion is on). */
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Default variant flag. Both loops always run regardless (it's cheap),
|
|
@@ -54,7 +54,7 @@ export declare const SkeletonClockProvider: React.FC<SkeletonClockProviderProps>
|
|
|
54
54
|
/**
|
|
55
55
|
* Read the active clock. Returns a fallback "always-still" clock when no
|
|
56
56
|
* provider is mounted, so the primitives still render (statically) outside
|
|
57
|
-
* one
|
|
57
|
+
* one, which keeps demo/storybook usage friction-free.
|
|
58
58
|
*/
|
|
59
59
|
export declare const useSkeletonClock: () => SkeletonClockValue;
|
|
60
60
|
//# sourceMappingURL=SkeletonClock.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SkeletonContent
|
|
2
|
+
* SkeletonContent: show placeholder shapes while data is loading, then
|
|
3
3
|
* cross-fade to the real children once it arrives.
|
|
4
4
|
*
|
|
5
5
|
* Three usage patterns, listed in order of preference:
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* </SkeletonContent>
|
|
12
12
|
*
|
|
13
13
|
* Renders `placeholder` verbatim while loading and `children` once loaded.
|
|
14
|
-
* Most precise and predictable
|
|
14
|
+
* Most precise and predictable. What you write is exactly what shimmers.
|
|
15
15
|
* Prefer this for any non-trivial layout.
|
|
16
16
|
*
|
|
17
17
|
* 2. **Self-describing components inside an auto-walked tree**:
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
* </View>
|
|
38
38
|
* </SkeletonContent>
|
|
39
39
|
*
|
|
40
|
-
* Same walker as (2)
|
|
40
|
+
* Same walker as (2): the Text/Image/View introspection handles
|
|
41
41
|
* primitive trees that mirror the loaded layout.
|
|
42
42
|
*
|
|
43
43
|
* Cross-fade: when `loading` flips from true to false, real children fade in
|
|
44
|
-
* over `fadeDuration` ms. The first render is guarded
|
|
44
|
+
* over `fadeDuration` ms. The first render is guarded; content that was
|
|
45
45
|
* never in a loading state does NOT fade on mount, only the actual
|
|
46
46
|
* loading→loaded transition does. Matches Chakra UI's `isLoaded` feel.
|
|
47
47
|
*/
|
|
@@ -66,7 +66,7 @@ export interface SkeletonContentProps {
|
|
|
66
66
|
/**
|
|
67
67
|
* Explicit placeholder JSX. When provided, the walker is bypassed entirely
|
|
68
68
|
* and `placeholder` is rendered verbatim while `loading` is true. This is
|
|
69
|
-
* the recommended path for any non-trivial layout
|
|
69
|
+
* the recommended path for any non-trivial layout; most precise and most
|
|
70
70
|
* predictable. Combine with `count` to repeat the shape.
|
|
71
71
|
*/
|
|
72
72
|
placeholder?: ReactNode | undefined;
|
|
@@ -82,7 +82,7 @@ export interface SkeletonContentProps {
|
|
|
82
82
|
/**
|
|
83
83
|
* Colour override forwarded to every walker-produced `<Skeleton>`. Either
|
|
84
84
|
* or both keys can be set; missing keys fall back to provider defaults /
|
|
85
|
-
* theme. Has no effect when `placeholder` is provided
|
|
85
|
+
* theme. Has no effect when `placeholder` is provided; author colours
|
|
86
86
|
* directly on the placeholder JSX instead.
|
|
87
87
|
*/
|
|
88
88
|
colors?: SkeletonColors | undefined;
|
|
@@ -16,7 +16,7 @@ export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, "da
|
|
|
16
16
|
renderPlaceholder?: ((index: number) => ReactNode) | undefined;
|
|
17
17
|
/** How many placeholder rows to render while loading. Default: 3. */
|
|
18
18
|
placeholderCount?: number | undefined;
|
|
19
|
-
/** Animation style
|
|
19
|
+
/** Animation style: same as Skeleton. */
|
|
20
20
|
variant?: SkeletonVariant | undefined;
|
|
21
21
|
/** Colour override forwarded to the placeholder skeletons. */
|
|
22
22
|
colors?: SkeletonColors | undefined;
|
|
@@ -35,7 +35,7 @@ export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, "da
|
|
|
35
35
|
*
|
|
36
36
|
* Inside a vertical ScrollView, pass `scrollEnabled={false}` and let the outer
|
|
37
37
|
* view scroll: once `loading` flips false a real VirtualizedList mounts, and RN
|
|
38
|
-
* logs a nesting error for a same-orientation list
|
|
38
|
+
* logs a nesting error for a same-orientation list, which only shows up after
|
|
39
39
|
* the data arrives, never on first render.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SkeletonProvider
|
|
2
|
+
* SkeletonProvider: app-level defaults for every <Skeleton> below it.
|
|
3
3
|
*
|
|
4
4
|
* Two responsibilities:
|
|
5
5
|
* 1. Broadcasts the default variant / speed / colors / radius /
|
|
6
6
|
* placeholderCount so consumers don't repeat them per call site.
|
|
7
7
|
* 2. Mounts the shared `SkeletonClockProvider` (see SkeletonClock.tsx) so
|
|
8
|
-
* every primitive shares a single Animated.Value
|
|
8
|
+
* every primitive shares a single Animated.Value: synchronized shimmer
|
|
9
9
|
* across the whole subtree, one native-driver loop per provider.
|
|
10
10
|
*
|
|
11
11
|
* Under the OS "Reduce Motion" preference an `'auto'` skeleton pulses instead
|
|
@@ -17,7 +17,7 @@ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from "./Skeleton"
|
|
|
17
17
|
/**
|
|
18
18
|
* Per-instance color override for a skeleton. `background` is the resting
|
|
19
19
|
* tone of the placeholder; `highlight` is the moving shimmer band (or pulse
|
|
20
|
-
* fade). Either can be omitted
|
|
20
|
+
* fade). Either can be omitted; missing keys fall back to the active theme.
|
|
21
21
|
*/
|
|
22
22
|
export interface SkeletonColors {
|
|
23
23
|
background?: string | undefined;
|
|
@@ -40,7 +40,7 @@ export interface SkeletonProviderDefaults {
|
|
|
40
40
|
/**
|
|
41
41
|
* Hard override for animation. `'auto'` (default) follows the OS
|
|
42
42
|
* "Reduce Motion" preference: shimmer when off, pulse when on. `'always'`
|
|
43
|
-
* forces shimmer regardless. `'never'` forces static
|
|
43
|
+
* forces shimmer regardless. `'never'` forces static: useful for tests or
|
|
44
44
|
* battery-sensitive screens.
|
|
45
45
|
*/
|
|
46
46
|
animation?: "auto" | "always" | "never" | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const SkeletonProvider: React.FC<SkeletonProviderProps>;
|
|
|
52
52
|
/**
|
|
53
53
|
* Read the current SkeletonProvider defaults. Returns an empty object when
|
|
54
54
|
* no provider is mounted, so the skeleton primitives still work outside of
|
|
55
|
-
* one
|
|
55
|
+
* one, but without a shared clock or theme-coordinated colors.
|
|
56
56
|
*/
|
|
57
57
|
export declare const useSkeletonDefaults: () => SkeletonProviderDefaults;
|
|
58
58
|
//# sourceMappingURL=SkeletonProvider.d.ts.map
|
|
@@ -8,8 +8,8 @@ export interface SkeletonSkipProps {
|
|
|
8
8
|
*
|
|
9
9
|
* The walker recognizes this element type and returns its children unchanged
|
|
10
10
|
* even while `loading` is true. Use it to keep a specific Text/Image/View
|
|
11
|
-
* visible inside a skeleton block
|
|
12
|
-
* decorative element that should never shimmer.
|
|
11
|
+
* visible inside a skeleton block (e.g., a brand mark, a status icon, or a
|
|
12
|
+
* decorative element that should never shimmer).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* <SkeletonContent loading>
|
|
@@ -18,7 +18,7 @@ export interface SlideToConfirmProps {
|
|
|
18
18
|
tone?: SlideToConfirmTone | undefined;
|
|
19
19
|
size?: SlideToConfirmSize | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
|
-
/** Fraction of the track (0
|
|
21
|
+
/** Fraction of the track (0-1) the handle must cross to confirm. Default 0.9. */
|
|
22
22
|
threshold?: number | undefined;
|
|
23
23
|
/** Auto-reset this many ms after confirm, or `false` to stay confirmed. Default `false`. */
|
|
24
24
|
resetAfter?: number | false | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tabs
|
|
2
|
+
* Tabs: top tabs with an animated underline, pill or segmented indicator.
|
|
3
3
|
*
|
|
4
4
|
* Layout: equal-width row by default, or horizontal-scrollable when
|
|
5
5
|
* `scrollable` is true. The active indicator (underline, pill or segmented
|
|
@@ -41,7 +41,7 @@ export interface TabItem {
|
|
|
41
41
|
key: string;
|
|
42
42
|
label: string;
|
|
43
43
|
icon?: TabItemIcon | undefined;
|
|
44
|
-
/** Optional numeric/string badge
|
|
44
|
+
/** Optional numeric/string badge, rendered inline after the label when provided. */
|
|
45
45
|
badge?: string | number | undefined;
|
|
46
46
|
disabled?: boolean | undefined;
|
|
47
47
|
}
|
|
@@ -34,7 +34,7 @@ export interface TagInputProps {
|
|
|
34
34
|
testID?: string | undefined;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Chips as input
|
|
37
|
+
* Chips as input: the "type a value, press enter, it becomes a tag" field.
|
|
38
38
|
* Chip renders a tag and Input takes text, but nothing joined them, so consumers
|
|
39
39
|
* built this by hand each time (and each one disagreed about backspace).
|
|
40
40
|
*/
|
|
@@ -4,13 +4,13 @@ import type { StyleProp, ViewStyle } from "react-native";
|
|
|
4
4
|
* The status vocabulary is shared with the web library's AppTimeline so a
|
|
5
5
|
* sign-off history reads identically on both surfaces.
|
|
6
6
|
*
|
|
7
|
-
* upcoming
|
|
8
|
-
* current
|
|
9
|
-
* done
|
|
10
|
-
* onHold
|
|
11
|
-
* rejected
|
|
12
|
-
* cancelled
|
|
13
|
-
* skipped
|
|
7
|
+
* upcoming: not started yet (muted disc)
|
|
8
|
+
* current: in progress now (warning)
|
|
9
|
+
* done: completed (success)
|
|
10
|
+
* onHold: blocked / waiting (info)
|
|
11
|
+
* rejected: declined / failed (danger)
|
|
12
|
+
* cancelled: aborted (muted)
|
|
13
|
+
* skipped: intentionally bypassed (muted)
|
|
14
14
|
*
|
|
15
15
|
* Every dot sits inside a soft halo of its own colour (the accent at 16
|
|
16
16
|
* percent), the web timeline's glow. The halo is a layout wrapper, not a
|
|
@@ -24,7 +24,7 @@ export type TimelineOrientation = "vertical" | "horizontal";
|
|
|
24
24
|
export interface TimelineItem {
|
|
25
25
|
title: string;
|
|
26
26
|
description?: string | undefined;
|
|
27
|
-
/** Rendered under the title
|
|
27
|
+
/** Rendered under the title: a timestamp, an actor, a metadata line. */
|
|
28
28
|
meta?: string | undefined;
|
|
29
29
|
/** `progress` variant: drives the dot colour. Defaults to 'done' in a feed. */
|
|
30
30
|
status?: TimelineStatus | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ZoomableImage
|
|
2
|
+
* ZoomableImage: a standalone pinch-to-zoom / pan / double-tap-to-zoom
|
|
3
3
|
* wrapper for a single piece of content (typically one `<Image>`).
|
|
4
4
|
*
|
|
5
5
|
* Reuses the same Reanimated 3 gesture composition `ImageGallery`'s internal
|
|
6
6
|
* lightbox slide uses (pinch clamped and rubber-banded at its limits, pan
|
|
7
7
|
* gated to only engage once zoomed in, double-tap toggling between baseline
|
|
8
8
|
* and `doubleTapScale`), stripped of the carousel-slide concerns that
|
|
9
|
-
* component needs and this one does not
|
|
9
|
+
* component needs and this one does not; there is no `index`/`total`/
|
|
10
10
|
* `active` because a standalone image is always the one being viewed.
|
|
11
11
|
*
|
|
12
12
|
* USAGE:
|
|
@@ -25,11 +25,11 @@ import type React from "react";
|
|
|
25
25
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
26
26
|
import type { HapticType } from "../../utils";
|
|
27
27
|
export interface ZoomableImageProps {
|
|
28
|
-
/** The content to pinch-zoom, pan, and double-tap-zoom
|
|
28
|
+
/** The content to pinch-zoom, pan, and double-tap-zoom (typically a single `<Image>`). */
|
|
29
29
|
children: React.ReactNode;
|
|
30
30
|
/** Upper bound on pinch and double-tap zoom. Default 4. */
|
|
31
31
|
maxScale?: number | undefined;
|
|
32
|
-
/** Lower bound on pinch zoom
|
|
32
|
+
/** Lower bound on pinch zoom: the resting scale a pinch springs back to. Default 1. */
|
|
33
33
|
minScale?: number | undefined;
|
|
34
34
|
/** Scale a double tap zooms to; a second double tap returns to baseline. Default 2. */
|
|
35
35
|
doubleTapScale?: number | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TurboModule } from "react-native";
|
|
2
2
|
export interface PdfDocumentInfo {
|
|
3
|
-
/** Opaque handle for every subsequent call (getPageInfo/renderPage/close)
|
|
3
|
+
/** Opaque handle for every subsequent call (getPageInfo/renderPage/close). NOT the file path. */
|
|
4
4
|
handle: string;
|
|
5
5
|
pageCount: number;
|
|
6
|
-
/** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate)
|
|
6
|
+
/** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate). A per-page size read happens in renderPage. */
|
|
7
7
|
pageWidth: number;
|
|
8
8
|
pageHeight: number;
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ export interface PdfPageInfo {
|
|
|
13
13
|
}
|
|
14
14
|
export interface Spec extends TurboModule {
|
|
15
15
|
/**
|
|
16
|
-
* Opens a LOCAL pdf file (a file:// path or bare absolute path
|
|
16
|
+
* Opens a LOCAL pdf file (a file:// path or bare absolute path; no http(s), no
|
|
17
17
|
* headers, no auth: callers download remote documents with mobile-core's
|
|
18
18
|
* `downloadFile` first). Returns a handle used by every other call. Throws
|
|
19
19
|
* (rejects) on a missing file, a corrupt PDF, or a password-protected PDF.
|
|
@@ -27,7 +27,7 @@ export interface Spec extends TurboModule {
|
|
|
27
27
|
/**
|
|
28
28
|
* Rasterizes one page to a PNG file in the cache directory and returns its
|
|
29
29
|
* absolute path. `scale` is a multiplier on the page's own point size (pass
|
|
30
|
-
* the view width / page width ratio, capped by the caller
|
|
30
|
+
* the view width / page width ratio, capped by the caller; see
|
|
31
31
|
* react-native.md's "RGBA_8888 is 4 bytes/px" guidance). Renders are
|
|
32
32
|
* serialized per handle on both platforms; call sequentially per document.
|
|
33
33
|
*/
|
|
@@ -5,14 +5,14 @@ import { Animated } from "react-native";
|
|
|
5
5
|
* RN's Fabric renderer deep-freezes prop trees on host components. If an
|
|
6
6
|
* `Animated.Value` is reachable from a `style` prop via interpolation chains
|
|
7
7
|
* (the `_parent` ref on `AnimatedInterpolation` nodes), the recursive freeze
|
|
8
|
-
* converts the value's `_animation` slot into a throwing setter
|
|
8
|
+
* converts the value's `_animation` slot into a throwing setter: the next
|
|
9
9
|
* `Animated.timing(v).start()` then crashes with
|
|
10
10
|
* "_animation: object that is meant to be immutable".
|
|
11
11
|
*
|
|
12
12
|
* Sealing the value at construction makes `Object.isSealed(v) === true`,
|
|
13
13
|
* which causes `deepFreezeAndThrowOnMutationInDev` to skip-and-return at
|
|
14
14
|
* its top guard. Existing-property mutation (`_animation`, `_value`,
|
|
15
|
-
* `_listeners`, `_tracking`) keeps working
|
|
15
|
+
* `_listeners`, `_tracking`) keeps working; seal only blocks adding NEW
|
|
16
16
|
* properties, which `Animated.Value` does only once: `_tracking` is declared
|
|
17
17
|
* as a type but never assigned in the constructor, so `stopTracking()` (run by
|
|
18
18
|
* every `timing().start()`) adds it. On a sealed value that add throws
|
|
@@ -28,7 +28,7 @@ import { Animated } from "react-native";
|
|
|
28
28
|
* NOT on web. The reasoning above ("Animated.Value doesn't add any properties
|
|
29
29
|
* post-construction") holds for React Native but not for react-native-web,
|
|
30
30
|
* whose `stopTracking()` assigns `_tracking` on an instance that never declared
|
|
31
|
-
* it
|
|
31
|
+
* it: on a sealed object that throws, and the throw happens during unmount, so
|
|
32
32
|
* it takes the whole tree down. There is no Fabric deep-freeze on web either,
|
|
33
33
|
* so the seal has nothing to protect against there.
|
|
34
34
|
*/
|
|
@@ -37,7 +37,7 @@ export declare const createAnimatedValue: (initial: number, config?: Constructor
|
|
|
37
37
|
* Set an `Animated.Value` to a target without going through JS.
|
|
38
38
|
*
|
|
39
39
|
* Once a value has been driven by the native driver, the underlying
|
|
40
|
-
* native node owns it
|
|
40
|
+
* native node owns it: calling `value.setValue(x)` from JS throws
|
|
41
41
|
* "Attempting to run JS driven animation on animated node that has been moved to native".
|
|
42
42
|
* Use this helper for any value that is *also* used in a native-driven
|
|
43
43
|
* `Animated.timing/spring`. A zero-duration native timing routes the update
|
|
@@ -3,7 +3,7 @@ import { type HapticType } from "./hapticUtils";
|
|
|
3
3
|
* What the interaction MEANT, not which vibration to play.
|
|
4
4
|
*
|
|
5
5
|
* Call sites that pick a `HapticType` directly end up disagreeing with each
|
|
6
|
-
* other
|
|
6
|
+
* other: one screen fires `impactMedium` on delete, the next fires
|
|
7
7
|
* `notificationWarning`, and the app stops speaking one language. Naming the
|
|
8
8
|
* intent moves that decision here, once.
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ export declare const hapticForIntent: (intent: FeedbackIntent) => HapticType;
|
|
|
23
23
|
export declare const feedback: {
|
|
24
24
|
/** A plain press: button, row, chip. */
|
|
25
25
|
readonly tap: () => void;
|
|
26
|
-
/** Moving between options
|
|
26
|
+
/** Moving between options: segmented control, picker wheel, tab. */
|
|
27
27
|
readonly select: () => void;
|
|
28
28
|
/** A long-press threshold being crossed. */
|
|
29
29
|
readonly longPress: () => void;
|
|
@@ -33,7 +33,7 @@ export declare const feedback: {
|
|
|
33
33
|
readonly deleted: () => void;
|
|
34
34
|
/** An undo landed. */
|
|
35
35
|
readonly restored: () => void;
|
|
36
|
-
/** A binary control turned on / off
|
|
36
|
+
/** A binary control turned on / off: switch, checkbox, favourite. */
|
|
37
37
|
readonly toggled: (on: boolean) => void;
|
|
38
38
|
/** A flow finished successfully. */
|
|
39
39
|
readonly succeeded: () => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This exists for a class of bug that nothing in a JS consumer's toolchain
|
|
5
5
|
* objects to. A component destructures the props it knows and ignores the rest,
|
|
6
|
-
* so a renamed or mistyped prop is simply dropped
|
|
6
|
+
* so a renamed or mistyped prop is simply dropped, silently, at every call
|
|
7
7
|
* site. The web library hit this three times in one day: `body` instead of
|
|
8
8
|
* `message` left nine destructive confirm dialogs with no explanatory text, and
|
|
9
9
|
* `name` instead of `icon` emptied an entire actions column across 23 call
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* who this is for. The check therefore has to be a runtime one, and it
|
|
15
15
|
* has to run where the mistake is made: the consumer's dev server.
|
|
16
16
|
*
|
|
17
|
-
* DEV ONLY
|
|
17
|
+
* DEV ONLY: the `__DEV__` guard means it costs a release build nothing.
|
|
18
18
|
*/
|
|
19
19
|
export declare const warnUnknownProps: (componentName: string, rest: Record<string, unknown> | undefined) => void;
|
|
20
20
|
//# sourceMappingURL=warnUnknownProps.d.ts.map
|
|
@@ -27,7 +27,7 @@ export interface AutocompleteProps<T = string> {
|
|
|
27
27
|
minChars?: number | undefined;
|
|
28
28
|
/** Cap the number of suggestions shown. Default 8. */
|
|
29
29
|
maxResults?: number | undefined;
|
|
30
|
-
/** Show a loading spinner in the dropdown
|
|
30
|
+
/** Show a loading spinner in the dropdown, e.g. while fetching remote results. */
|
|
31
31
|
loading?: boolean | undefined;
|
|
32
32
|
/** `'client'` filters `options` locally; `'none'` shows them as-is (for server-side search). Default `'client'`. */
|
|
33
33
|
filterMode?: "client" | "none" | undefined;
|
|
@@ -63,7 +63,7 @@ export interface AvatarProps {
|
|
|
63
63
|
/**
|
|
64
64
|
* Custom component used to render the image instead of the built-in `<Image>`.
|
|
65
65
|
* Receives {@link AvatarImageProps}. Use this when `source` points at a secured
|
|
66
|
-
* endpoint that needs auth headers / token refresh / caching
|
|
66
|
+
* endpoint that needs auth headers / token refresh / caching: plug in the
|
|
67
67
|
* app's authenticated image loader. On error it should call `onError`, which
|
|
68
68
|
* triggers the initials fallback. When omitted, expo-image's `<Image>` is used.
|
|
69
69
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* BottomSheet
|
|
2
|
+
* BottomSheet: Reanimated 3 + Gesture Handler 3 implementation.
|
|
3
3
|
*
|
|
4
4
|
* A polished, theme-aware bottom sheet with multi-snap-point support,
|
|
5
5
|
* UI-thread driven pan gestures, and native-driver spring animations.
|
|
@@ -152,7 +152,7 @@ export interface BottomSheetProps {
|
|
|
152
152
|
/**
|
|
153
153
|
* Sticky region pinned to the bottom of the sheet, above the safe-area
|
|
154
154
|
* inset. Does not scroll with `children`, and rides up with the keyboard
|
|
155
|
-
* when `keyboardBehavior='shift'` (no extra wiring needed
|
|
155
|
+
* when `keyboardBehavior='shift'` (no extra wiring needed; the whole sheet
|
|
156
156
|
* shifts). Typical use: action button rows.
|
|
157
157
|
*/
|
|
158
158
|
footer?: React.ReactNode | undefined;
|
|
@@ -166,14 +166,14 @@ export interface BottomSheetProps {
|
|
|
166
166
|
testID?: string | undefined;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* State + actions exposed to anything rendered inside a `<BottomSheet
|
|
169
|
+
* State + actions exposed to anything rendered inside a `<BottomSheet>`,
|
|
170
170
|
* including the `header` and `footer` slots. Read via `useBottomSheet()`.
|
|
171
171
|
*
|
|
172
172
|
* `snapIndex` is the JS-thread mirror of the current snap point. -1 means the
|
|
173
173
|
* sheet is closed (mid-close-animation included). Use it to drive footer
|
|
174
174
|
* button enable state, conditional headers, etc. If you need per-frame
|
|
175
175
|
* progress (e.g. fade a header in as the sheet expands), reach for the
|
|
176
|
-
* animated value via a future enhancement
|
|
176
|
+
* animated value via a future enhancement, not exposed today to keep the
|
|
177
177
|
* surface minimal.
|
|
178
178
|
*/
|
|
179
179
|
export interface BottomSheetContextValue {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Carousel
|
|
2
|
+
* Carousel: generic horizontal carousel with pagination, auto-play, and looping.
|
|
3
3
|
*
|
|
4
4
|
* Backed by a virtualized FlatList for memory efficiency. Dot and bar
|
|
5
5
|
* pagination track the scroll gesture through `Animated.event`.
|