Skip to content
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 use methods? #163

Closed
dlwlrma00 opened this issue Jan 23, 2020 · 1 comment
Closed

How to use methods? #163

dlwlrma00 opened this issue Jan 23, 2020 · 1 comment

Comments

@dlwlrma00
Copy link

how can i use methods?

@Jacse
Copy link
Owner

Jacse commented Apr 1, 2020

You can use a ref like so:

 <AppIntroSlider
                            ref={(ref) => this.slider = ref}
                            slides={this.state.slidees}
                            renderItem={this._renderItem}
</AppIntroSlider>

Afterwards you can call fx this.slider.goToSlide from within your component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants