Skip to main content
Version: 5.3

Rect

Where something is on screen, as reported with a tapped decoration below.

Both come from the navigator unchanged, in the platform's own coordinates relative to the reader — points on iOS, pixels on Android — so placing a React Native view over them may mean converting first.

Properties​

x​

x: number;

Distance from the reader's left edge to the rectangle's left edge.


y​

y: number;

Distance from the reader's top edge to the rectangle's top edge.


width​

width: number;

height​

height: number;