Dylan
Dylan
I still want to have a promise, using `onTransitionEnd` may deal with other situations.
I have the same issue. ``` "react-native": "^0.66.4", "react-native-web": "^0.17.5", "react-native-tab-view": "3.1.1", ``` https://user-images.githubusercontent.com/18309525/156334205-8dccbcb7-5859-4c2d-9272-c95caf401990.mov
I've tried moving `onIndexChangeRef.current(index)` out of the animation with good results, but I don't think it's a good way... ```diff diff --git a/src/PanResponderAdapter.tsx b/src/PanResponderAdapter.tsx index 3d1964a..3c2b13e 100644 --- a/src/PanResponderAdapter.tsx +++...
does this problem still exist?
使用 `Promise.all`: ```javascript function asyncAdd(a, b, callback) { setTimeout(function () { callback(null, a + b); }, 1000); } function promiseAdd(a, b) { return new Promise((resolve) => { asyncAdd(a, b, (_,...
```javascript Promise.myRace = (promises) => { const _promises = Array.isArray(_promises) ? _promises : [promises]; return new Promise((resolve, reject) => { _promises.forEach((promise) => { Promise.resolve(promise).then(resolve, reject); }); }); }; ```