Skip to content

Conversation

@kostyaVyrodov
Copy link

@kostyaVyrodov kostyaVyrodov commented Sep 21, 2017

Is it a bugfix?

Describe what you've done:

  • I moved code that gets width and height to the initState() function

Steps to reproduce the issue (iOS):

Precondition:
<Swiper index={this.state.selectedPageIndex} onIndexChanged={(index) => this.setState({ selectedPageIndex: index })}> <SomeView/> </Swiper>

  • Add function to handle onIndexChanged
  • Pass updatedIndex

Steps:

  • Rotate device
  • Swipe

@arribbar
Copy link
Collaborator

Thanks @kostyaVyrodov

@arribbar arribbar merged commit 0dbe73b into leecade:master Sep 28, 2017
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

Successfully merging this pull request may close these issues.

Landscape mode

2 participants