react-docgen icon indicating copy to clipboard operation
react-docgen copied to clipboard

Flow's @platform attribute treated as part of the description

Open asklar opened this issue 5 years ago • 0 comments

See: React Native Button.js

/**
   * TV next focus down (see documentation for the View component).
   *
   * @platform android
   */
  nextFocusDown?: ?number,

gets captured as:

"nextFocusDown": {
        "required": false,
        "flowType": {
          "name": "number",
          "nullable": true
        },
        "description": "TV next focus down (see documentation for the View component).\n\n@platform android"

asklar avatar Mar 22 '20 01:03 asklar