n4kz / react-native-pages

Easy to use page view component
Other
376 stars 83 forks source link

Looping? #14

Open deehuey opened 6 years ago

deehuey commented 6 years ago

I don't see any options for looping the pages. (4 -> 1 -> 2 -> 3 -> 4 -> 1...ad infinitum) Is this a possible feature? Here's hoping πŸ‘

Fantastic work on this library, I tried 5 others and this one was the easiest drop-in and provided most flexibility!

πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯ πŸ”₯

πŸ™ƒ Thanks-Dan

n4kz commented 6 years ago

Thanks for feature request, no quick solution here. I'll try to find one for next major release.

AlertColby commented 6 years ago

I encountered the error that unsupported top level event type "topScroll" dispatched when I added Pages to my Tabnavigator. the Pages of use ,

render() {
        return (
            <View style={ styles.container } >
                <View style={ styles.title } >
                  <Text style={ styles.signIn } >签到</Text>
                  <Text style={{borderStyle: 'solid'}} >ι¦–ι‘΅</Text>
                  <View style={  styles.titleRight } >
                    <Text style={ styles.scan} >扫一扫</Text>
                    <Text style={ styles.message } >梈息</Text>
                  </View>
                </View>
                <View style={ styles.line } />
                <View style={ styles.viewpagerWidthHeight} >
                <Pages
                  onScrollEnd = {this._callbackPagesScrollEnd}
                  >
                    {this._renderViewPager(this.IMGS)}
                  </Pages>
                </View>
            </View>

        );
    }

I don't know why 。 Looking forward to your answer,Thanks.

n4kz commented 6 years ago

@AlertColby thank you for question, topScroll crash is related to facebook/react-native#16522 and probably will be fixed in next major RN release. However previous releases should not be affected and you can consider temporary downgrade to 0.49.x or upgrade to rc version as possible solutions.

DavoCg commented 6 years ago

Anyone have a solution for the looping ? this library is really nice for the Animated progress (versus react-native-swiper) but I really think this is an important missing feature :(