Update public plugins location in docs
Summary: Updated docs after moving public plugins to "desktop/plugins/public". Additionally edited the pages related to plugins which were a bit outdated. Reviewed By: jknoxville Differential Revision: D27646670 fbshipit-source-id: 26499aff492db817156fecf20fa8358efc70ae8f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cce9483c09
commit
830e380127
@@ -257,7 +257,7 @@ Both hooks can not only be used in the root `Component`, but also in any other c
|
|||||||
So it is not necessary to grab all the data at the root, or pass down the `instance` to all child components.
|
So it is not necessary to grab all the data at the root, or pass down the `instance` to all child components.
|
||||||
|
|
||||||
Finally (`(4)`) we render the data we have. The details have been left out here, as from here it is just idiomatic React code.
|
Finally (`(4)`) we render the data we have. The details have been left out here, as from here it is just idiomatic React code.
|
||||||
The source of the other `MammalCard` component can be found [here](https://github.com/facebook/flipper/blob/master/desktop/plugins/seamammals/src/index.tsx#L113-L165).
|
The source of the other `MammalCard` component can be found [here](https://github.com/facebook/flipper/blob/master/desktop/plugins/public/seamammals/src/index.tsx#L113-L165).
|
||||||
|
|
||||||
### Unit testing the User Interface
|
### Unit testing the User Interface
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ $ npx flipper-pkg init
|
|||||||
|
|
||||||
The tool will ask you to provide "id" and "title" for your plugin. Use "sea-mammals" as "id" and "Sea Mammals" as "title". After that the tool will create two files in the directory: `package.json` and `src/index.tsx`.
|
The tool will ask you to provide "id" and "title" for your plugin. Use "sea-mammals" as "id" and "Sea Mammals" as "title". After that the tool will create two files in the directory: `package.json` and `src/index.tsx`.
|
||||||
|
|
||||||
See [package.json](https://github.com/facebook/flipper/blob/master/desktop/plugins/seamammals/package.json) for an example.
|
See [package.json](https://github.com/facebook/flipper/blob/master/desktop/plugins/public/seamammals/package.json) for an example.
|
||||||
|
|
||||||
To ensure there are no errors in the defined plugin, install packages (using `yarn install` or `npm install`) and execute script `lint` (`yarn lint` or `npm run lint`) which shows all the mismatches that should be fixed to make the plugin definition valid.
|
To ensure there are no errors in the defined plugin, install packages (using `yarn install` or `npm install`) and execute script `lint` (`yarn lint` or `npm run lint`) which shows all the mismatches that should be fixed to make the plugin definition valid.
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export default createTablePlugin<Row>({
|
|||||||
buildRow,
|
buildRow,
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
*See [index.tsx](https://github.com/facebook/flipper/blob/master/desktop/plugins/seamammals/src/index.tsx)*
|
*See [index.tsx](https://github.com/facebook/flipper/blob/master/desktop/plugins/public/seamammals/src/index.tsx)*
|
||||||
|
|
||||||
The `method` we define here corresponds to the name
|
The `method` we define here corresponds to the name
|
||||||
of the function we call on the native side to inform
|
of the function we call on the native side to inform
|
||||||
|
|||||||
@@ -51,4 +51,4 @@ The `connection` object can also be used to listen to messages coming from the D
|
|||||||
An example plugin to play a little Tic-Tac-Toe between the Flipper Desktop and a React Native app can be found inside this repository as well (run `yarn && yarn android` in `react-native/ReactNativeFlipperExample` to start the test project):
|
An example plugin to play a little Tic-Tac-Toe between the Flipper Desktop and a React Native app can be found inside this repository as well (run `yarn && yarn android` in `react-native/ReactNativeFlipperExample` to start the test project):
|
||||||
|
|
||||||
* The React Native JavaScript based plugin implementation: [FlipperTicTacToe.js](https://github.com/facebook/flipper/tree/master/react-native/ReactNativeFlipperExample/FlipperTicTacToe.js)
|
* The React Native JavaScript based plugin implementation: [FlipperTicTacToe.js](https://github.com/facebook/flipper/tree/master/react-native/ReactNativeFlipperExample/FlipperTicTacToe.js)
|
||||||
* The Flipper Desktop plugin implementation: [rn-tic-tac-toe/index.tsx](https://github.com/facebook/flipper/blob/master/desktop/plugins/rn-tic-tac-toe/index.tsx)
|
* The Flipper Desktop plugin implementation: [rn-tic-tac-toe/index.tsx](https://github.com/facebook/flipper/blob/master/desktop/plugins/public/rn-tic-tac-toe/index.tsx)
|
||||||
|
|||||||
Reference in New Issue
Block a user