I am using layoutAnimation in a function component to make it appear smoothly. It works well on IOS, but on Android, it will show an extra blue transparent background while I switch from another view to the view using layoutAnimation.
This is my code
const { UIManager } = NativeModules;
UIManager.setLayoutAnimationEnabledExperimental &&
UIManager.setLayoutAnimationEnabledExperimental(true);
const myFunction = (props) => {
...
useEffect(() => {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
}, [props.info]); // info is the component data
...
}
Does anyone meet the same issue?
Thx a lot.