Closed jzxchiang1 closed 2 years ago
Plenty of bugs in index.d.ts for 0.4.1. Note, I'm using a custom header.
index.d.ts
foreground
ReactElement
() => ReactElement
decelerationRate
headerSize
scrollEvent
Consider checking out new v1.0.x release candidate, with fully rewritten API in TypeScript
yarn add react-native-sticky-parallax-header@rc
Plenty of bugs in
index.d.ts
for 0.4.1. Note, I'm using a custom header.foreground
should be aReactElement
, not a component such as() => ReactElement
decelerationRate
should be optionalheaderSize
andscrollEvent
should be required (otherwise, it throws undefined is not a function)