Update docs for new plugins

Summary: ilovedocs

Reviewed By: danielbuechele

Differential Revision: D17501537

fbshipit-source-id: 1f5d872928b5a644ee98db025ad60b038b7126a8
This commit is contained in:
Pascal Hartig
2019-09-23 06:16:28 -07:00
committed by Facebook Github Bot
parent 96d5e3ceff
commit 741fb7d292
3 changed files with 37 additions and 12 deletions

View File

@@ -20,6 +20,21 @@ client.addPlugin(new InspectorFlipperPlugin(mApplicationContext, descriptorMappi
### With Litho Support
Litho support is provided via an optional plugin.
You also need to compile in the `litho-annotations` package, as Flipper reflects
on them at runtime. So ensure to not just include them as `compileOnly` in your
gradle configuration:
```groovy
dependencies {
debugImplementation 'com.facebook.flipper:flipper-litho-plugin:0.24.0'
debugImplementation 'com.facebook.litho:litho-annotations:0.19.0'
// ...
}
```
If you want to enable Litho support in the layout inspector, you need to augment
the descriptor with Litho-specific settings and add some addition dependencies.
@@ -41,18 +56,6 @@ LithoFlipperDescriptors.add(descriptorMapping);
client.addPlugin(new InspectorFlipperPlugin(mApplicationContext, descriptorMapping));
```
You also need to compile in the `litho-annotations` package, as Flipper reflects
on them at runtime. So ensure to not just include them as `compileOnly` in your
gradle configuration:
```groovy
dependencies {
debugImplementation 'com.facebook.litho:litho-annotations:0.19.0'
// ...
}
```
### Blocking fullscreen views (Android only)
The issue is that if you have some view that occupies big part of the screen but draws nothing and its Z-position is higher than your main content, then selecting view/component through Layout Inspector doesn't work as you intended, as it will always hit that transparent view and you need to manually navigate to the view you need which is time-consuming and should not be necessary.