Wire Editor to Flipper
Summary: This diff implements the integration between a Litho Editor and Flipper. It does so by converting the Editor format to FlipperObject, and then converting it back from FlipperDynamic. This conversion works for both `State` and `Prop`. We already provide default implementations for primitive + wrapped types and String, so the functionality should match the existing one. Reviewed By: passy, Katalune Differential Revision: D22455220 fbshipit-source-id: f7f633765f3d997ce6de09d2c1277019e72c0802
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1784eb78d9
commit
10f9a48540
@@ -18,6 +18,10 @@ public class FlipperDynamic {
|
||||
mObject = object;
|
||||
}
|
||||
|
||||
public Object raw() {
|
||||
return mObject;
|
||||
}
|
||||
|
||||
public @Nullable String asString() {
|
||||
if (mObject == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user