Database plugin - Render blob cells

Summary: As titled. The android plugin was already sending the data in blob cells as `{ type: 'blob' value: string }` (see com/facebook/flipper/plugins/databases/ObjectMapper.java?lines=213-216).

Reviewed By: jknoxville

Differential Revision: D21253129

fbshipit-source-id: 15a44c72f4030887a50faece780c89aa65f6a45b
This commit is contained in:
Dan Yang
2020-04-29 16:08:01 -07:00
committed by Facebook GitHub Bot
parent 168d06011f
commit 3e0f07ac97

View File

@@ -14,7 +14,7 @@ import React from 'react';
export type Value =
| {
type: 'string';
type: 'string' | 'blob';
value: string;
}
| {
@@ -59,6 +59,7 @@ export function renderValue(val: Value) {
{val.value.toString()}
</BooleanValue>
);
case 'blob':
case 'string':
return <NonWrappingText>{val.value}</NonWrappingText>;
case 'integer':