useScreenState() returns screen and focused-route state from the current Blank Stack.
TSX
| Field | Meaning |
|---|---|
index | Index of the current screen in the stack |
routes | Routes in the current stack |
focusedRoute | Focused route in the stack |
focusedIndex | Index of the focused route |
options | Resolved options for the focused screen |
meta | Metadata from the focused screen options |
navigation | Navigation object for the current screen |
snapTo(index) | Snap the focused screen to a configured snap-point index |