After I looked at your codes deeply, it don't provide a feature to pass props to customized page indicator.
When I want to pass props to customized page, I can write as:
renderPage={(data:Object, pageID: number | string,)=>{
return (...)
}}
However, renderPageIndicator method don't any parameter.
renderPageIndicator={()=>{
return (...)
}}
In your codes, renderPage method will take arguments by using this.props.renderPage.bind(...) but renderPageIndicator don't use bind() anywhere. That's why we can't pass props through renderPageIndicator method.
After I looked at your codes deeply, it don't provide a feature to pass props to customized page indicator. When I want to pass props to customized page, I can write as:
However, renderPageIndicator method don't any parameter.
In your codes, renderPage method will take arguments by using
this.props.renderPage.bind(...)
but renderPageIndicator don't usebind()
anywhere. That's why we can't pass props through renderPageIndicator method.I think it should be implemented.