File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,11 @@ function Index() {
6161 < Carousel
6262 width = { layout ?. width ?? PAGE_WIDTH }
6363 height = { 30 }
64- style = { {
65- width : 200 ,
66- } }
64+ style = { [
65+ {
66+ width : 200 ,
67+ } ,
68+ ] }
6769 snapEnabled = { false }
6870 pagingEnabled = { false }
6971 loop
Original file line number Diff line number Diff line change 1- import type { ViewStyle } from 'react-native' ;
1+ import type { StyleProp , ViewStyle } from 'react-native' ;
22import type { PanGestureHandlerProps } from 'react-native-gesture-handler' ;
33import type {
44 AnimatedStyleProp ,
@@ -104,7 +104,7 @@ export type TCarouselProps<T = any> = {
104104 /**
105105 * Carousel container style
106106 */
107- style ?: ViewStyle ;
107+ style ?: StyleProp < ViewStyle > ;
108108 /**
109109 * PanGestureHandler props
110110 */
You can’t perform that action at this time.
0 commit comments