Comments (3)
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.
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.
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)
- 设置了viewpager的高度后,轮播图的点还是掉在最下面
- React.PropTypes changed to prop-types library since React v15.5
- 为什么我的页面渲染不出来。。。 HOT 1
- Mixed views from different pages HOT 1
- undefined is note an object(evaluating 'React.propTypes.func') HOT 12
- 一张或者两张图片,切换就出问题了,会闪白屏
- 崩溃了 HOT 1
- 轮播图每张的轮播时间 || 轮播图的时间间隔
- How can we add forward arrow and backward arrow to swipe the viewpager
- Cannot read property 'func' of undefined HOT 3
- 【BUGS】数据源 第一次设定之后就不能刷新了吗? HOT 2
- The current indicator icon is on the top of indicators, I see the code, maybe your curDot style should replace margin with marginLeft and marginRight. HOT 1
- TypeError:undefined is not an object(evaluating 'new _reactNativeViewpage2.default.DataSoure') HOT 5
- Bug, when auto-rotating, causes InputText to lose focus. HOT 1
- Go to Next and Previous Page By Click
- 不能用 各种报错
- 不能用的可以换成 react native swiper
- After updating react-native to 0.61.0 , this library is not working. HOT 2
- how to support RTL?
- PanResponder vs ViewPager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-viewpager.