-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Override Default Indicator Styles #13
Comments
You can implement your own indicator similar |
I tried what you say like this; first copied DefaultViewPageIndicator to my project folders, then code like this... import ViewPager from 'react-native-viewpager';
import ViewPageIndicator from './Helpers/ViewPageIndicator';
// ...
class Welcome extends React.Component {
// ...
render() {
return (
<ViewPager
style={styles.ViewPager}
dataSource={this.state.dataSource}
renderPage={this._renderPage}
isLoop={false}
autoPlay={false}
renderPageIndicator={ViewPageIndicator}
/>
);
}
// ...
}
// etc... But i got error that says;
Am i doing it wrong? |
The
|
Thank you. This solved my problem. You should document this, otherwise people like me will never know how to do that. |
I met the same problem with you, could you let me have a look viewpagerindicator code? |
I used default indicator, just edited style. It is here on repo. |
you edit style? which style? Is viewpager style? |
Thanks !!! I solve the question.Thank you answer my question.This is the first I use github. |
No problem, have fun! |
I want to move dots upper and make them bigger. I can do it by editing, DefaultViewPageIndicator.js file under the node modules but i know it is not right way. Is there better solution for this?
The text was updated successfully, but these errors were encountered: