Migrate to custom plugin

Summary: In this step, we want to visualize our mammals in a custom card view. For this reason, we need to replace `createTablePlugin` with a React component that extends `FlipperPlugin`.

Reviewed By: jknoxville

Differential Revision: D15183324

fbshipit-source-id: 329cdc5c6cbd7e1435538e8cdddf049d914ff221
This commit is contained in:
Daniel Büchele
2019-05-03 02:47:28 -07:00
committed by Facebook Github Bot
parent a276af9c1f
commit 5afb148ffa
2 changed files with 121 additions and 38 deletions

View File

@@ -33,9 +33,9 @@ class SeaMammalFlipperPlugin : FlipperPlugin {
connection = null
}
override fun runInBackground(): Boolean = false
override fun runInBackground(): Boolean = true
private fun newRow(row: FlipperObject) {
connection?.send("newRow", row)
}
}
}