pub struct LayoutAnimation {
pub create: Option<LayoutTransition>,
pub update: Option<LayoutTransition>,
pub delete: Option<LayoutTransition>,
}Expand description
Animates the layout changes of the next commit
(LayoutAnimation.configureNext).
Fields§
§create: Option<LayoutTransition>Views inserted by the commit.
update: Option<LayoutTransition>Views whose frame changes.
delete: Option<LayoutTransition>Views removed by the commit.
Implementations§
Source§impl LayoutAnimation
impl LayoutAnimation
Sourcepub const EASE_IN_EASE_OUT: Self
pub const EASE_IN_EASE_OUT: Self
React Native’s LayoutAnimation.Presets.easeInEaseOut: 300 ms,
views fading in and out.
Sourcepub const SPRING: Self
pub const SPRING: Self
Presets.spring: frames spring (damping 0.4) over 700 ms, views
fade linearly.
Sourcepub const fn all(transition: LayoutTransition) -> Self
pub const fn all(transition: LayoutTransition) -> Self
transition for every kind of change.
Trait Implementations§
Source§impl Clone for LayoutAnimation
impl Clone for LayoutAnimation
impl Copy for LayoutAnimation
Source§impl Debug for LayoutAnimation
impl Debug for LayoutAnimation
Source§impl Default for LayoutAnimation
impl Default for LayoutAnimation
Source§impl HostValue for LayoutAnimation
LayoutAnimation.configureNext(config): { duration, create, update, delete }, each phase { type, property, duration, delay, springDamping, stiffness, damping, mass, bezier } (without one, that kind of change is
not animated).
impl HostValue for LayoutAnimation
LayoutAnimation.configureNext(config): { duration, create, update, delete }, each phase { type, property, duration, delay, springDamping, stiffness, damping, mass, bezier } (without one, that kind of change is
not animated).
Source§impl PartialEq for LayoutAnimation
impl PartialEq for LayoutAnimation
impl StructuralPartialEq for LayoutAnimation
Auto Trait Implementations§
impl Forget for LayoutAnimation
impl Freeze for LayoutAnimation
impl Move for LayoutAnimation
impl RefUnwindSafe for LayoutAnimation
impl Send for LayoutAnimation
impl Sync for LayoutAnimation
impl Unpin for LayoutAnimation
impl UnsafeUnpin for LayoutAnimation
impl UnwindSafe for LayoutAnimation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more