Page MenuHomePhabricator

D8426.diff
No OneTemporary

D8426.diff

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

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)

Event Timeline