(props: any)
| 26 | viewPager = React.createRef<PagerView>(); |
| 27 | |
| 28 | constructor(props: any) { |
| 29 | super(props); |
| 30 | |
| 31 | const pages = []; |
| 32 | for (let i = 0; i < PAGES; i++) { |
| 33 | pages.push(createPage(i)); |
| 34 | } |
| 35 | |
| 36 | this.state = { |
| 37 | page: 0, |
| 38 | animationsAreEnabled: true, |
| 39 | scrollEnabled: true, |
| 40 | progress: { |
| 41 | position: 0, |
| 42 | offset: 0, |
| 43 | }, |
| 44 | pages: pages, |
| 45 | scrollState: 'idle', |
| 46 | dotsVisible: false, |
| 47 | }; |
| 48 | } |
| 49 | |
| 50 | onPageSelected = (e: any) => { |
| 51 | this.setState({ page: e.nativeEvent.position }); |
nothing calls this directly
no test coverage detected