2019-10-30 15:43:57 +00:00
|
|
|
import { LayoutAnimation } from 'react-native';
|
2019-09-19 13:32:24 +00:00
|
|
|
|
|
|
|
import debounce from './debounce';
|
|
|
|
import { isIOS } from './deviceInfo';
|
|
|
|
|
|
|
|
export const animateNextTransition = debounce(() => {
|
|
|
|
if (isIOS) {
|
2020-03-02 20:12:41 +00:00
|
|
|
LayoutAnimation.configureNext({
|
|
|
|
duration: 200,
|
|
|
|
create: {
|
|
|
|
type: LayoutAnimation.Types.easeInEaseOut,
|
|
|
|
property: LayoutAnimation.Properties.opacity
|
|
|
|
},
|
|
|
|
update: {
|
|
|
|
type: LayoutAnimation.Types.easeInEaseOut
|
|
|
|
},
|
|
|
|
delete: {
|
|
|
|
type: LayoutAnimation.Types.easeInEaseOut,
|
|
|
|
property: LayoutAnimation.Properties.opacity
|
|
|
|
}
|
|
|
|
});
|
2019-09-19 13:32:24 +00:00
|
|
|
}
|
|
|
|
}, 200, true);
|