Diff

class Diff<T>(val previous: T?, var next: T?)

Represents a diff between two T values. It should be used when defining the ShouldUpdate callback in a ComponentSpec and may be used in OnCreateTransition to define animations based on incoming changes. A Diff holds the previous and next value for a specific Prop or State for a ComponentSpec.

Constructors

Link copied to clipboard
constructor(previous: T?, next: T?)

Properties

Link copied to clipboard
var next: T?
Link copied to clipboard
val previous: T?

Functions

Link copied to clipboard
open override fun toString(): String