@momo-kits/carousel 0.111.1-rc.7 → 0.112.1-beta.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/index.tsx +1 -0
- package/package.json +20 -20
- package/types.ts +2 -1
package/index.tsx
CHANGED
|
@@ -821,6 +821,7 @@ class Carousel extends React.PureComponent<CarouselProps, CarouselState> {
|
|
|
821
821
|
onScroll={this._onScrollHandler}
|
|
822
822
|
onTouchStart={this._onTouchStart}
|
|
823
823
|
onTouchEnd={this._onTouchEnd}
|
|
824
|
+
accessibilityLabel={this.props.accessibilityLabel}
|
|
824
825
|
/>
|
|
825
826
|
);
|
|
826
827
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
"name": "@momo-kits/carousel",
|
|
3
|
+
"version": "0.112.1-beta.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "index.tsx",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@momo-kits/foundation": "latest",
|
|
8
|
+
"react": "16.9.0",
|
|
9
|
+
"react-native": ">=0.55",
|
|
10
|
+
"prop-types": "^15.7.2"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@momo-platform/versions": "4.1.11"
|
|
14
|
+
},
|
|
15
|
+
"license": "MoMo",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"moment": "^2.24.0"
|
|
21
|
+
}
|
|
22
22
|
}
|
package/types.ts
CHANGED
|
@@ -42,7 +42,8 @@ export type CarouselProps = {
|
|
|
42
42
|
visibleItem?: number;
|
|
43
43
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
44
44
|
full?: boolean;
|
|
45
|
-
snapToInterval?: number | Animated.Value | Animated.AnimatedInterpolation | undefined
|
|
45
|
+
snapToInterval?: number | Animated.Value | Animated.AnimatedInterpolation | undefined;
|
|
46
|
+
accessibilityLabel?: string;
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
export type CarouselRef = {
|