diff --git a/desktop/plugins/public/rn-tic-tac-toe/index.tsx b/desktop/plugins/public/rn-tic-tac-toe/index.tsx index cb54a8550..e7359d935 100644 --- a/desktop/plugins/public/rn-tic-tac-toe/index.tsx +++ b/desktop/plugins/public/rn-tic-tac-toe/index.tsx @@ -18,6 +18,7 @@ import { styled, theme, Layout, + FlipperPluginInstance, } from 'flipper-plugin'; type Player = ' ' | 'X' | 'O'; @@ -120,6 +121,14 @@ export const plugin = (client: PluginClient) => { }; }; +export const API = (pluginInstance: FlipperPluginInstance) => { + return { + makeMove: pluginInstance.makeMove, + reset: pluginInstance.reset, + state: pluginInstance.state, + }; +}; + const desktopPlayer = 'O'; export const Component = () => { diff --git a/desktop/plugins/public/rn-tic-tac-toe/package.json b/desktop/plugins/public/rn-tic-tac-toe/package.json index 9ca950a05..ef13ffe77 100644 --- a/desktop/plugins/public/rn-tic-tac-toe/package.json +++ b/desktop/plugins/public/rn-tic-tac-toe/package.json @@ -5,6 +5,7 @@ "version": "0.0.0", "main": "dist/bundle.js", "flipperBundlerEntry": "index.tsx", + "headless": true, "license": "MIT", "keywords": [ "flipper-plugin"