Expose more meta information for plugins
Summary: expose `appName`, `appId` and `device` to Sandy plugins. Will be used in next diff to migrate navigation plugin Reviewed By: cekkaewnumchai Differential Revision: D24857253 fbshipit-source-id: 03ac3d376d5d1950bcf3d78386a65ce167b517e3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9b4e7e873c
commit
1157976eef
@@ -67,6 +67,8 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
||||
return client.send('currentState', {since: 0});
|
||||
}
|
||||
|
||||
expect(client.device).not.toBeNull();
|
||||
|
||||
return {
|
||||
activateStub,
|
||||
deactivateStub,
|
||||
@@ -75,6 +77,8 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
||||
disconnectStub,
|
||||
getCurrentState,
|
||||
state,
|
||||
appId: client.appId,
|
||||
appName: client.appName,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user