Swipeables documentation

Summary: So users can know how to use

Reviewed By: hedgerwang

Differential Revision: D3399028

fbshipit-source-id: 5ce97c5464f1975145aba1bcf4b79550394859ae
This commit is contained in:
Fred Liu
2016-06-07 11:55:38 -07:00
committed by Facebook Github Bot 9
parent 837aafde72
commit 381a0051c7
4 changed files with 43 additions and 2 deletions

View File

@@ -29,6 +29,16 @@ const View = require('View');
const MAX_QUICK_ACTIONS = 2;
/**
* A thin wrapper around standard quick action buttons that can, if the user
* chooses, be used with SwipeableListView. Sample usage is as follows, in the
* renderQuickActions callback:
*
* <SwipeableQuickActions>
* <SwipeableQuickActionButton {..props} />
* <SwipeableQuickActionButton {..props} />
* </SwipeableQuickActions>
*/
const SwipeableQuickActions = React.createClass({
propTypes: {
style: View.propTypes.style,