useFocusedValue

@FocusedValue(Model.self): the Observable of this type that the focused view, one of its ancestors, or the focused scene publishes with focusedValue or focusedSceneValue, or null. The component re-renders when focus moves and when a property it read changes.

Declaration

React
function useFocusedValue<T extends Observable>(
  type: ObservableType<T>
): Bindable<T> | null

Parameters

  • type*ObservableType<T>

See also

More in Hooks.