mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
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  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…
x
Reference in New Issue
Block a user