useScreenAnimation() returns a Reanimated derived value with the same interpolation props passed to screenStyleInterpolator.
TSX
Target another transition scope with depth:
TSX
depth: 0 resolves the current transition. Negative values resolve ancestors. Positive values resolve descendants.
Non-current targets can return null, so check animation.value before reading it.
Legacy string targets such as "self", "parent", and "root" still work, but new code should use { depth }.