Skip to content

Commit

Permalink
Fix nits in update View API documentation
Browse files Browse the repository at this point in the history
Summary:
Ref comments in facebook#8341

Ref facebook#8203
Closes facebook#8361

Differential Revision: D3477174

Pulled By: caabernathy

fbshipit-source-id: 495011c2d370d06d355e966d6ba2c52880146183
  • Loading branch information
JoelMarcey authored and Facebook Github Bot 1 committed Jun 23, 2016
1 parent 7ee01a1 commit 678ea5b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Libraries/Components/View/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
* @providesModule View
* @flow
* @jsdoc
*/
'use strict';

Expand Down Expand Up @@ -134,15 +133,15 @@ const View = React.createClass({

propTypes: {
/**
* When true, indicates that the view is an accessibility element. By default,
* When `true`, indicates that the view is an accessibility element. By default,
* all the touchable elements are accessible.
*/
accessible: PropTypes.bool,

/**
* Overrides the text that's read by the screen reader when the user interacts
* with the element. By default, the label is constructed by traversing all the
* children and accumulating all the Text nodes separated by space.
* children and accumulating all the `Text` nodes separated by space.
*/
accessibilityLabel: PropTypes.string,

Expand Down Expand Up @@ -250,14 +249,15 @@ const View = React.createClass({
onAccessibilityTap: PropTypes.func,

/**
* When `accessible` is true, the system will invoke this function when the
* When `accessible` is `true`, the system will invoke this function when the
* user performs the magic tap gesture.
*/
onMagicTap: PropTypes.func,

/**
* Used to locate this view in end-to-end tests. NB: disables the 'layout-only
* view removal' optimization for this view!
* Used to locate this view in end-to-end tests.
*
* > This disables the 'layout-only view removal' optimization for this view!
*/
testID: PropTypes.string,

Expand Down Expand Up @@ -285,7 +285,7 @@ const View = React.createClass({
onResponderMove: PropTypes.func,

/**
* Another responser is already active and will not release it to that `View` asking to be
* Another responder is already active and will not release it to that `View` asking to be
* the responder.
*
* `View.props.onResponderReject: (event) => {}`, where `event` is a synthetic touch event as
Expand All @@ -296,7 +296,7 @@ const View = React.createClass({
/**
* Fired at the end of the touch.
*
* `View.props.onResponderRelease`: (event) => {}`, where `event` is a synthetic touch event as
* `View.props.onResponderRelease: (event) => {}`, where `event` is a synthetic touch event as
* described above.
*/
onResponderRelease: PropTypes.func,
Expand Down Expand Up @@ -381,7 +381,7 @@ const View = React.createClass({
onLayout: PropTypes.func,

/**
* Controls whether the View can be the target of touch events.
* Controls whether the `View` can be the target of touch events.
*
* - `'auto'`: The View can be the target of touch events.
* - `'none'`: The View is never the target of touch events.
Expand Down Expand Up @@ -426,7 +426,7 @@ const View = React.createClass({
* for scrolling content when there are many subviews, most of which are
* offscreen. For this property to be effective, it must be applied to a
* view that contains many subviews that extend outside its bound. The
* subviews must also have overflow: hidden, as should the containing view
* subviews must also have `overflow: hidden`, as should the containing view
* (or one of its superviews).
*/
removeClippedSubviews: PropTypes.bool,
Expand Down

0 comments on commit 678ea5b

Please sign in to comment.