react-native-pagination icon indicating copy to clipboard operation
react-native-pagination copied to clipboard

Modal not working properly after adding pagination

Open anniewey opened this issue 6 years ago • 1 comments

@garrettmac Any idea why the modal reopen and got stuck after I set visible = false? Tried the same flow without adding pagination and it works properly.

Flow:

  1. Render pagination and modal
  2. Open modal
  3. Close modal
  4. *Modal reopen and screen freeze if pagination component presents

anniewey avatar Dec 19 '18 05:12 anniewey

Update:

Seems like the culprit is animation conflict between Modal and Pagination component. After remove LayoutAnimation.configureNext(dotAnimation); in ./react-native-pagination/index.js, Modal is working properly.

@garrettmac PR is submitted to modify the animation props to optional, do make your review. Thanks.

anniewey avatar Dec 19 '18 08:12 anniewey