Press key
press_keySimulate hardware key presses in a React Native app: navigate back, return home, or submit a text field via its onSubmitEditing handler without needing the OS keyboard.
Instructions
Press a hardware key. "back" goes up one screen — via "js" (tried first by default) calls the navigation container's own goBack() with no touch, via "os" uses the hardware key (Android) or an edge swipe (iOS). "home" is OS-only. "enter" submits a text field by firing its own onSubmitEditing, the only route to a submit handler that does not need the OS keyboard — pass into to name the field when more than one is on screen and none holds focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| via | No | ||
| into | No | ||
| device | No |