Support active sheet mechanism in Sandy

Summary:
This diffs adds support for the activeSheets mechanism in Sandy. It should be removed in the future (see T78696648) since open a dialog and keeping dialog state locally results in much more straight forward code, but supporting this for now makes sure that old flows are still supported.

With this change the plugin selection during a Flipper export for example wouldn't become visible

Reviewed By: cekkaewnumchai

Differential Revision: D24620074

fbshipit-source-id: f0558f5738e86a84a5cd0b9d574a3cfd0a3bf424
This commit is contained in:
Michel Weststrate
2020-10-30 04:20:00 -07:00
committed by Facebook GitHub Bot
parent ef7d4ea487
commit 9deed974be
5 changed files with 105 additions and 85 deletions

View File

@@ -8,7 +8,6 @@
*/
import {KeyboardActions} from './MenuBar';
import {App} from './App';
import {Logger} from './fb-interfaces/Logger';
import Client from './Client';
import {Store} from './reducers/index';
@@ -162,7 +161,6 @@ export abstract class FlipperBasePlugin<
reducers: {
[actionName: string]: (state: State, actionData: any) => Partial<State>;
} = {};
app: App | null = null;
onKeyboardAction: ((action: string) => void) | undefined;
toJSON() {