Comments (9)
The author doesn't seem to be available to update this repository, if you need that feature I made a fork available at https://www.npmjs.com/package/react-native-viewpager-enhanced
You'll be able to :
- Listen event onItemPress on PagerTabIndicator and PagerTitleIndicator
- Listen event onPageChange on PagerTabIndicator, PagerTitleIndicator and PagerDotIndicator
from react-native-viewpager.
Thanks!!
from react-native-viewpager.
@jr-k
Are you still managing your fork?
I have an addition to make, could you do a quick update?
from react-native-viewpager.
@KinanKazmi Yes I am. You can make a PR here: https://github.com/jr-k/React-Native-ViewPager
from react-native-viewpager.
@jr-k
I cant do that from where i am atm.
Maybe you could do that?
In both PagerTitleIndicator.js AND PagerTabIndicator.js you have TouchableOpacity, which is the tab that you tap to move to that specific View ( screen or page ).
Just add in its props
disabled = {this.props.disabled}
That way, the user can make the tabs disabled, when needed.
And scrolling can already be disabled by using scrollEnabled = {false}
in the props of <IndicatorViewPager>
.
from react-native-viewpager.
@KinanKazmi done
from react-native-viewpager.
@jr-k
Thanks!
from react-native-viewpager.
@KinanKazmi Don't forget to npm update, the latest version is 1.1.11
from react-native-viewpager.
@jr-k
Yup, already at it. Thanks.
from react-native-viewpager.
Related Issues (20)
- initialPage is not working.
- Is there a way to use uri instead of source in iconSource?
- How to align the selected title to center?? HOT 1
- Please add keyboardShouldPersistTap prop HOT 1
- How to control how many component initially rendering
- remove title
- How to load the page only when user selects the tab ? HOT 3
- Is it impossible to use <TouchableOpacity> in child view of ViewPager?
- Getting Warning: ViewPagerAndroid has been extracted from react-native core HOT 4
- I need items to be visible outside of the Viewpager HOT 1
- setPage shows wrong page in iOS HOT 2
- PagerTabIndicator should cache icons
- Typings for IndicatorViewPager Props missing events
- On Landscape IOS scroll possition not set
- How can I customize PageTitleIndicator title.
- viewpager android has been removed from react native HOT 21
- OnPageSelected No overload matches this call.
- ViewPagerAndroid has been extracted from react-native core and will be removed in a future release HOT 1
- ViewPagerAndroid has been removed from react native HOT 1
- TypeError: Cannot read property 'style' of undefined
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.