Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3373884
D8426.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
789 B
Referenced Files
None
Subscribers
None
D8426.diff
View Options
diff --git a/native/dev-menu.js b/native/dev-menu.js
--- a/native/dev-menu.js
+++ b/native/dev-menu.js
@@ -6,6 +6,7 @@
import { getMessageForException } from 'lib/utils/errors.js';
import { filesystemMediaCache } from './media/media-cache.js';
+import { wipeAndExit } from './utils/crash-utils.js';
// see https://docs.expo.dev/develop/development-builds/development-workflows/#extending-the-dev-menu
// for details on extending the dev menu
@@ -22,6 +23,16 @@
}
},
},
+ {
+ name: 'Wipe state and kill app',
+ callback: async () => {
+ try {
+ await wipeAndExit();
+ } catch (e) {
+ Alert.alert('Wipe failed', getMessageForException(e));
+ }
+ },
+ },
];
registerDevMenuItems(devMenuItems);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 12:26 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590416
Default Alt Text
D8426.diff (789 B)
Attached To
Mode
D8426: [dev-menu] Add Wipe Redux button to Expo dev menu
Attached
Detach File
Event Timeline
Log In to Comment