Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

fix: PagerPan not trigger onIndexChange when disable animation #632

Merged
merged 1 commit into from Oct 30, 2018

Conversation

teabyii
Copy link
Contributor

@teabyii teabyii commented Oct 30, 2018

Motivation

PagerPan doesn't trigger props.onIndexChange when animationEnabled={false}. without Animated.parallel and it's finished callback, PagerPan doesn't call props.jumpTo to make it all right.

Test plan

Use PagerPan and set animationEnabled={false}, should trigger props.onIndexChange correctly.

@satya164 satya164 merged commit 0269389 into satya164:master Oct 30, 2018
FRizzonelli added a commit to FRizzonelli/react-native-tab-view that referenced this pull request Dec 19, 2018
* docs: fix README renderScene code example (satya164#607)

* feat: add RTL support in PagerAndroid

* chore: release 1.2.0

* chore: use release-it for automated release

* fix: fix PagerPan not triggering onIndexChange when animation is disabled (satya164#632)

`PagerPan` doesn't trigger `props.onIndexChange` when `animationEnabled={false}`. without `Animated.parallel` and it's finished callback, `PagerPan` doesn't call `props.jumpTo` to make it all right.

### Test plan

Use `PagerPan` and set `animationEnabled={false}`, should trigger `props.onIndexChange` correctly.

* feat: delay rendering of unfocused tabs for better startup perf

* chore: release 1.3.0

* docs: fix example in README

* fix: remove unused code which causes a flow error (satya164#641)

There was a flow error. This fixes it.
```
Error ---------------------------------------------------- ../../node_modules/react-native-tab-view/src/TabView.js:121:8
Property `delayRenderOfNonFocusedTabs` is missing in `State` [1].
   ../../node_modules/react-native-tab-view/src/TabView.js:121:8
   121|       !this.state.delayRenderOfNonFocusedTabs ||
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
   ../../node_modules/react-native-tab-view/src/TabView.js:41:70
    41| export default class TabView<T: *> extends React.Component<Props<T>, State> {
                                                                             ^^^^^ [1]
```

* docs: update README

* chore: release 1.3.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants