Skip to content

cdp_set_shared_value

Set a Reanimated SharedValue on a component found by testID. Walks the React fiber tree to find the component, locates the named prop (a SharedValue object), and sets .value. Useful for driving Reanimated animations in proof captures when gesture/scroll synthesis is unavailable.

NameTypeRequiredDefaultConstraintsDescription
testIDstringYestestID of the component that receives the SharedValue as a prop
propstringYesProp name containing the SharedValue (e.g. “scrollY”, “progress”)
valuenumberYesNumeric value to set on the SharedValue
cdp_set_shared_value(testID: <string>, prop: <string>, value: <number>)