[ Documentation ]
rnx find

rnx find

rnx find

The unified finder. A bare argument matches node text (findByText); flag forms match by testID, role, component type, or predicate. —pressable and —visible list every tappable or visible node, and —interactive-targets (alias —actions) ranks visible+pressable nodes and prints a ready-to-run rnx do tap-... command per row, so the next tap is one copy away. Use —verbose for full node JSON and —json to script.

terminal
rnx find <text>
rnx find --testid <id>
rnx find --role <role>
rnx find --type <component-type>
rnx find --pressable
rnx find --visible
rnx find --interactive-targets

Options

flagdescription
--text <text>match node text content (same as bare positional)
--testid <id>match node testID or id exactly
--role <role>match accessibilityRole
--type <type>match React component type
--pressablelist all tappable nodes
--visiblelist all visible (non-zero) nodes
--interactive-targets, --actionsranked tappable nodes, each with a ready-to-run tap command
--verbose, --dumpemit full node JSON for each result
--jsonemit structured JSON

Examples

terminal
rnx find "Sign in"
rnx find --testid loginButton
rnx find --role button
rnx find --pressable
rnx find --visible --json
rnx find --interactive-targets