From 72880d3f3a808e7e34be9190cb096cd90f4f69c4 Mon Sep 17 00:00:00 2001 From: Vamshi krishna Date: Wed, 20 May 2020 03:31:21 -0700 Subject: [PATCH] wording mistake in plugin docs (#1164) Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1164 Reviewed By: mweststrate Differential Revision: D21613194 Pulled By: passy fbshipit-source-id: 787232a5edc6a0dcd39280c8d1587b07f24de68e --- docs/tutorial/react-native.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/react-native.mdx b/docs/tutorial/react-native.mdx index bc5638d8c..775cdea44 100644 --- a/docs/tutorial/react-native.mdx +++ b/docs/tutorial/react-native.mdx @@ -12,7 +12,7 @@ This tutorial requires React Native 0.62 or higher. Once you have connected Flipper to a React Native application, writing your own Flipper plugin can be done without reaching into the native world. -To expose Flipper to the JavaScript world, the React Native Native Module `react-native-flipper` needs to be installed in the hosting application by running `yarn add react-native-flipper` and `cd ios && pod install`. If you are creating develop a plugin that is distributed as NPM package, make sure to add this to the installation instruction of your package as well! +To expose Flipper to the JavaScript world, the React Native Native Module `react-native-flipper` needs to be installed in the hosting application by running `yarn add react-native-flipper` and `cd ios && pod install`. If you are developing a plugin that is distributed as NPM package, make sure to add this to the installation instruction of your package as well! Registering a new plugin is done by importing `addPlugin` from `"react-native-flipper"` and providing it an object that at least implements the method `getId` (the plugin id that should be used in the desktop plugin as well to make the connection) and two event handlers for the `onConnect` and `onDisconnect` events.