API reference

GazeInteraction Component

Customizes how exactly one child element participates in Gaze. Use importantForInteraction to control Gaze targeting and tooltip to configure the system tooltip. When these capabilities are unavailable, the child keeps its standard React Native behavior.
import {GazeInteraction} from '@metavr/gaze-compat';

<GazeInteraction
  importantForInteraction="yes"
  tooltip={{text: 'Open settings'}}>
  <Pressable onPress={openSettings} />
</GazeInteraction>

Signature

GazeInteraction(props: GazeProps): React.ReactNode

Parameters

props: GazeProps

Returns

React.ReactNode