MCPcopy
hub / github.com/pmndrs/react-spring / HostConfig

Interface HostConfig

packages/animated/src/createHost.ts:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { AnimatedObject } from './AnimatedObject'
6
7export interface HostConfig {
8 /** Provide custom logic for native updates */
9 applyAnimatedValues: (node: any, props: Lookup) => boolean | void
10 /** Wrap the `style` prop with an animated node */
11 createAnimatedStyle: (style: Lookup) => Animated
12 /** Intercept props before they're passed to an animated component */
13 getComponentProps: (props: Lookup) => typeof props
14}
15
16// A stub type that gets replaced by @react-spring/web and others.
17type WithAnimated = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…