mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-21 00:18:01 +08:00
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:
committed by
Facebook Github Bot 3
parent
9b9cc6b543
commit
235b16d932
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user