Open dopey2 opened 6 years ago
I am running into the same issue. Can someone shed some light on this behavior? @dopey2, have you resolved this?
@birkanu , no I didn't solve it
Bummer, I am hoping someone can reply to this issue soon.
It's a band-aid, but you can "fix" this by extending the props interface:
declare module 'react-native-snap-carousel' {
export interface CarouselProps<T> {
maxToRenderPerBatch?: number;
}
}
https://www.typescriptlang.org/docs/handbook/declaration-merging.html
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
Hello, i have a project where i use React-Native + typescript. When I use properties maxToRenderPerBatch or initialNumToRender i have the following error when I compile my ts files into js
Also these properties doesn't exist in @types/react-native-snap-carousel/index.d.ts
Environment