@momo-kits/carousel 0.89.5 → 0.92.1-tracking.2
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 +3 -2
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
import {defaultScrollInterpolator} from './animation';
|
|
14
14
|
import {CarouselProps, CarouselRef, CarouselState, Position} from './types';
|
|
15
|
-
import {scaleSize, Spacing} from '@momo-kits/foundation';
|
|
15
|
+
import {getAccessibilityID, scaleSize, Spacing} from '@momo-kits/foundation';
|
|
16
16
|
|
|
17
17
|
const IS_ANDROID = Platform.OS === 'android';
|
|
18
18
|
const IS_IOS = Platform.OS === 'ios';
|
|
@@ -670,9 +670,10 @@ class Carousel extends React.PureComponent<
|
|
|
670
670
|
if (full) {
|
|
671
671
|
spacingStyle = {};
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
const accessibilityID = getAccessibilityID(`carousel_${index}`)
|
|
674
674
|
return (
|
|
675
675
|
<Component
|
|
676
|
+
{...accessibilityID}
|
|
676
677
|
style={[
|
|
677
678
|
mainDimension,
|
|
678
679
|
slideStyle,
|