Bring out prop descriptions, for Flexbox
Summary: For Flexbox API docs would like to tease out the prop descriptions. This PR makes that feasible by exposing the description for style. **Test plan (required)** 1. Temporarily modified the flexbox source doc: Libraries/StyleSheet/LayoutPropTypes.js to add a description. 2. Checked it out on local webpage: http://localhost:8079/react-native/docs/flexbox.html ![style_prop_descriptions](https://cloud.githubusercontent.com/assets/691109/16321579/866b186e-3952-11e6-823a-2d38132bd553.png) Closes https://github.com/facebook/react-native/pull/8382 Differential Revision: D3478796 Pulled By: lacker fbshipit-source-id: 49f3b7876ff1ccec9ee837921a78ee0dfb915453
This commit is contained in:
parent
34adde9e96
commit
f0c79bac31
|
@ -437,7 +437,10 @@ function renderStyle(filepath) {
|
|||
const json = docgen.parse(
|
||||
fs.readFileSync(filepath),
|
||||
docgenHelpers.findExportedObject,
|
||||
[docgen.handlers.propTypeHandler]
|
||||
[
|
||||
docgen.handlers.propTypeHandler,
|
||||
docgen.handlers.propDocBlockHandler,
|
||||
]
|
||||
);
|
||||
|
||||
// Remove deprecated transform props from docs
|
||||
|
|
Loading…
Reference in New Issue