zbtang / React-Native-ViewPager

ViewPager and Indicator component for react-native on both android and ios.
950 stars 276 forks source link

Typings for IndicatorViewPager Props missing events #173

Open martin-braun opened 5 years ago

martin-braun commented 5 years ago

This works:

<ViewPager onPageSelected={this.onPageSelected.bind(this)} ... />

This not:

<IndicatorViewPager onPageSelected={this.onPageSelected.bind(this)} ... />

It complains that onPageSelected is not a prop on IndicatorViewPager, although it clearly is and would uses it to pass the event up from this to this.

Apparently, the typings aren't complete.