Bloks, support NT minification map
Summary: There were a small number of styles / attributes that were missing, this addresses this. Similar to the bloks minification map there are some special hardcoded reserved ids, if that doesnt work then you can look into a special place for each style I also refactored the transform metadata method as it was getting very nested and hard to understand. Reviewed By: aigoncharov Differential Revision: D46799392 fbshipit-source-id: 8de8a2740f45ddb23a1bc9abb7bb36f969cf1fbb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
165a989cc6
commit
5ce2c984a9
@@ -7,9 +7,10 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import {DeviceOS} from 'flipper-plugin';
|
||||||
import {Id, Metadata, StreamInterceptor, UINode} from '../types';
|
import {Id, Metadata, StreamInterceptor, UINode} from '../types';
|
||||||
|
|
||||||
export function getStreamInterceptor(): StreamInterceptor {
|
export function getStreamInterceptor(_: DeviceOS): StreamInterceptor {
|
||||||
return new NoOpStreamInterceptor();
|
return new NoOpStreamInterceptor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export function plugin(client: PluginClient<Events>) {
|
|||||||
const rootId = createState<Id | undefined>(undefined);
|
const rootId = createState<Id | undefined>(undefined);
|
||||||
|
|
||||||
const metadata = createState<Map<MetadataId, Metadata>>(new Map());
|
const metadata = createState<Map<MetadataId, Metadata>>(new Map());
|
||||||
const streamInterceptor = getStreamInterceptor();
|
const streamInterceptor = getStreamInterceptor(client.device.os);
|
||||||
|
|
||||||
let lastFrameTime = 0;
|
let lastFrameTime = 0;
|
||||||
const os = client.device.os;
|
const os = client.device.os;
|
||||||
|
|||||||
Reference in New Issue
Block a user