Feedback request
Summary: ^ Only for iOS this time. Note: passing the device OS freely to the main component as this is just temporary code that will be deleted soon. Reviewed By: antonk52 Differential Revision: D42990221 fbshipit-source-id: 41b4107caa6bf312191889af75afd28873f6eda5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
df9b0a6aa6
commit
dacc6ebb16
@@ -45,6 +45,8 @@ export function plugin(client: PluginClient<Events>) {
|
||||
const rootId = createState<Id | undefined>(undefined);
|
||||
const metadata = createState<Map<MetadataId, Metadata>>(new Map());
|
||||
|
||||
const device = client.device.os;
|
||||
|
||||
client.onMessage('init', (event) => {
|
||||
rootId.set(event.rootId);
|
||||
});
|
||||
@@ -179,6 +181,7 @@ export function plugin(client: PluginClient<Events>) {
|
||||
perfEvents,
|
||||
setPlayPause,
|
||||
queryClient,
|
||||
device,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user