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:
Luke De Feo
2023-06-19 05:06:52 -07:00
committed by Facebook GitHub Bot
parent 165a989cc6
commit 5ce2c984a9
2 changed files with 3 additions and 2 deletions

View File

@@ -7,9 +7,10 @@
* @format
*/
import {DeviceOS} from 'flipper-plugin';
import {Id, Metadata, StreamInterceptor, UINode} from '../types';
export function getStreamInterceptor(): StreamInterceptor {
export function getStreamInterceptor(_: DeviceOS): StreamInterceptor {
return new NoOpStreamInterceptor();
}

View File

@@ -61,7 +61,7 @@ export function plugin(client: PluginClient<Events>) {
const rootId = createState<Id | undefined>(undefined);
const metadata = createState<Map<MetadataId, Metadata>>(new Map());
const streamInterceptor = getStreamInterceptor();
const streamInterceptor = getStreamInterceptor(client.device.os);
let lastFrameTime = 0;
const os = client.device.os;