2019-10-30 15:43:57 +00:00
|
|
|
import { LayoutAnimation } from 'react-native';
|
2019-09-19 13:32:24 +00:00
|
|
|
|
2022-06-06 14:17:51 +00:00
|
|
|
import { debounce } from '.';
|
2019-09-19 13:32:24 +00:00
|
|
|
import { isIOS } from './deviceInfo';
|
|
|
|
|
2021-09-13 20:41:05 +00:00
|
|
|
export const animateNextTransition = debounce(
|
|
|
|
() => {
|
|
|
|
if (isIOS) {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
200,
|
|
|
|
true
|
|
|
|
);
|