@momo-kits/template 0.81.3 → 0.81.5
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.
|
@@ -2,9 +2,9 @@ import React, {FC} from 'react';
|
|
|
2
2
|
import {Animated, TouchableOpacity} from 'react-native';
|
|
3
3
|
import Carousel from '@momo-kits/carousel';
|
|
4
4
|
import {Image, Pagination, Spacing} from '@momo-kits/foundation';
|
|
5
|
-
import {
|
|
5
|
+
import {HeaderSliderBannerProps} from './types';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const HeaderSliderBanner: FC<HeaderSliderBannerProps> = ({
|
|
8
8
|
animatedValue = new Animated.Value(0),
|
|
9
9
|
paginationBottom = 56,
|
|
10
10
|
data = [],
|
|
@@ -76,4 +76,4 @@ const HeaderBanner: FC<HeaderBannerProps> = ({
|
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
export default
|
|
79
|
+
export default HeaderSliderBanner;
|
|
@@ -3,7 +3,7 @@ import {CarouselProps} from '@momo-kits/carousel';
|
|
|
3
3
|
import {Animated} from 'react-native';
|
|
4
4
|
import AnimatedValue = Animated.AnimatedValue;
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type HeaderSliderBannerProps = {
|
|
7
7
|
animatedValue: AnimatedValue;
|
|
8
8
|
data: string[];
|
|
9
9
|
onSnapToItem: (index: number) => void;
|
package/index.tsx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import HeaderSliderBanner from './HeaderSliderBanner';
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {HeaderSliderBanner};
|