RN: Improve <Switch> Documentation

Summary: Minor improvements to the <Switch> docblock, including adding some keywords to make it easier to find. Also, I updated documentation for the deprecated platform-specific versions of the component.

Reviewed By: jingc

Differential Revision: D3098626

fb-gh-sync-id: 86d0f1a45eb8ac1bd9e58ac4ba9c73a4a3dfa846
fbshipit-source-id: 86d0f1a45eb8ac1bd9e58ac4ba9c73a4a3dfa846
This commit is contained in:
Tim Yung
2016-03-25 15:16:43 -07:00
committed by Facebook Github Bot 3
parent 9b9cc6b543
commit 235b16d932
3 changed files with 21 additions and 8 deletions

View File

@@ -20,7 +20,9 @@ var requireNativeComponent = require('requireNativeComponent');
var SWITCH = 'switch';
/**
* Standard Android two-state toggle component
* @deprecated
*
* Use <Switch> instead for cross-platform compatibility.
*/
var SwitchAndroid = React.createClass({
mixins: [NativeMethodsMixin],