Giter Club home page Giter Club logo

Comments (9)

leecade avatar leecade commented on July 20, 2024

Cool idea @lelandrichardson !

slider should be supports, Would you like show me some UI pics, I will design this feature later.

from react-native-swiper.

wootwoot1234 avatar wootwoot1234 commented on July 20, 2024

+1

from react-native-swiper.

vtam311 avatar vtam311 commented on July 20, 2024

+1

from react-native-swiper.

lrettig avatar lrettig commented on July 20, 2024

+1

from react-native-swiper.

allanjsx avatar allanjsx commented on July 20, 2024

+1 It will be nice if code can control which page to show, and get callback when a page is shown.

from react-native-swiper.

williambout avatar williambout commented on July 20, 2024

+1

from react-native-swiper.

taniald avatar taniald commented on July 20, 2024

+1

from react-native-swiper.

ammichael avatar ammichael commented on July 20, 2024

+1

from react-native-swiper.

fogg4444 avatar fogg4444 commented on July 20, 2024

There's a bit of code in there I have a question about. Looks like this around line 500:

renderScrollView(pages) {
    // console.log('Render scroll view: ', pages);
     // if (Platform.OS === 'ios')
         return (
            <ScrollView ref="scrollView"
             {...this.props}
                       contentContainerStyle={[styles.wrapper, this.props.style]}
                       contentOffset={this.state.offset}
                       onScrollBeginDrag={this.onScrollBegin}
                       onScrollEndDrag={()=>this.setState({isScrolling:false})}
                       onMomentumScrollEnd={this.onScrollEnd}>
             {pages}
            </ScrollView>
         );
      // return (
      //    <ViewPagerAndroid ref="scrollView"
      //     {...this.props}
      //       initialPage={this.state.index}
      //       onPageSelected={this.onScrollEnd}
      //       style={{flex: 1}}>
      //       {pages}
      //    </ViewPagerAndroid>
      // );
  }

I've commented out the <ViewPagerAndroid> component and it's working fine on Genymotion android simulator. I guess ScrollView is cross platform now? My scrolling solution is about to be working with ScrollView. I haven't looked into implementing it with ViewPager as this now seems redundant. Opinions?

from react-native-swiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.