Simulate a shake gesture or open React Native dev mode
To test mobile app behavior that responds to a shake gesture, or to access the React Native developer menu in Android apps, you can simulate the appropriate action on a real mobile device. how a device responds to such runtime events.
The behavior differs by platform:
| Platform | Action | Purpose | Availability |
|---|---|---|---|
|
iOS |
Simulate a physical shake gesture |
Test app features that respond to device motion, such as entering development or test mode |
Available to all users on real devices |
|
Android |
Trigger the React Native developer menu in debuggable apps |
Debug React Native apps |
Available upon request |
To simulate a physical shake gesture or access the React Native developer menu:
-
On the device toolbar, click the Shake device (ios) or Open React Native Dev mode (Android) button
. -
When prompted for confirmation, click APPLY.