Git Product home page Git Product logo

Comments (3)

foxcode7 avatar foxcode7 commented on August 11, 2024

in sourcecode ViewPager.js
getInitialState() { return { currentPage: this.props.currentPage, viewWidth: 0, scrollValue: new Animated.Value(0) }; },
but there is a bug. when i change page from right,it will change twice.

from react-native-viewpager.

 avatar commented on August 11, 2024

Thanks for the idea.

But I am not sure if that is the Solution for my Problem.

I would like to have the Viewpager as it is. Then I would like to load the app an see the View Pager with all the Data. For the first 'Image' in the Viewpager I would like to have a Text Component at the Top saying " 1 / 5", then I would like to swipe to the right to get the next Image Page in the Viewpager, if that Image is shown the Text Component should show "2 / 5" and so on.

I tried your Idea, but instead of showing me the first Image, I didn't see anything.

Any Idea?

from react-native-viewpager.

parameshwar-ande avatar parameshwar-ande commented on August 11, 2024

Hi,

I'm having the same problem , not able to get current page. viewPager.getCurrentPage() always giving me zero. @alexanderniebuhr did you find any solution for your problem, if so can you please share the solution.
Thanks in advance.

from react-native-viewpager.

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.