Summary: * Removed Flow compilation step * Removed all `flow` annotations * Removed all FlowFixMe's * Removed flow typings for Flipper * Left flow transpilation (stripping) in babel, in case there is any external user using Flow in his plugin * Left `eslint-plugin-flowtype` dependencies, as `eslint-config-fbjs` requires it Reviewed By: passy Differential Revision: D24755545 fbshipit-source-id: 9c0a7910657fd1cba88294e041bf2bfdf7b565bf
flipper-sdk-api
SDK to build Flipper clients for JS based apps
Installation
yarn add flipper-client-sdk
Usage
Example
class SeaMammalPlugin extends AbsctractFlipperPlugin {
getId(): string {
return 'sea-mammals';
}
runInBackground(): boolean {
return true;
}
newRow(row: {id: string, url: string, title: string}) {
this.connection?.send("newRow", row)
}
}
const flipperClient = newWebviewClient();
cosnt plugin = new SeaMammalPlugin();
flipperClient.addPlugin();
flipperClient.start('Example JS App');
plugin.newRow({id: '1', title: 'Dolphin', url: 'example.com'})