fix player web
This commit is contained in:
@@ -22,7 +22,7 @@ const AnimatedPaginationDot = ({
|
||||
}) => {
|
||||
const animatedValue = useMemo(
|
||||
() => scrollValue || new Animated.Value(0),
|
||||
[scrollValue],
|
||||
[scrollValue]
|
||||
);
|
||||
|
||||
const { width, height } = useWindowDimensions();
|
||||
@@ -36,7 +36,10 @@ const AnimatedPaginationDot = ({
|
||||
return Math.max(width, 1);
|
||||
}, [height, itemDimension, orientation, width]);
|
||||
|
||||
const resolvedDotStyle = useMemo(() => StyleSheet.flatten(dotStyle) || {}, [dotStyle]);
|
||||
const resolvedDotStyle = useMemo(
|
||||
() => StyleSheet.flatten(dotStyle) || {},
|
||||
[dotStyle]
|
||||
);
|
||||
const defaultSize = Math.max(baseDotSize, 1);
|
||||
const baseWidth =
|
||||
typeof resolvedDotStyle?.width === "number"
|
||||
|
||||
Reference in New Issue
Block a user