computerjazz / react-native-infinite-pager

An infinitely-swipeable pager component.
MIT License
174 stars 16 forks source link

Web support #30

Closed ErionTp closed 4 months ago

ErionTp commented 4 months ago

Hello, first of all thank you for this amazing library.

Im trying to implement this in a project which is supposed to be opened even in web but i get:

Cannot access 'pageInterpolatorCube' before initialization

Kindly can you check it?

ErionTp commented 4 months ago

After investigating, the library works the same even in web. The problem seems to be in the pageInterpolators.ts. The line: export const defaultPageInterpolator = pageInterpolatorSlide; should be after the pageInterpolatorSlide function.

If you ca edit please