mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
fbsource deploy
Reviewed By: gabelevi, bestander Differential Revision: D3753032 fbshipit-source-id: 47aadb8a54f47c40f0133966df588d42cdbe0d80
This commit is contained in:
committed by
Facebook Github Bot 6
parent
c19339783d
commit
5a5c56c8a9
@@ -1,4 +1,11 @@
|
||||
/**
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* The examples provided by Facebook are for non-commercial testing and
|
||||
* evaluation purposes only.
|
||||
*
|
||||
@@ -58,7 +65,10 @@ var SwipeableListViewSimpleExample = React.createClass({
|
||||
<SwipeableListView
|
||||
dataSource={this.state.dataSource}
|
||||
maxSwipeDistance={100}
|
||||
renderQuickActions={(rowData: Object, sectionID: string, rowID: string) => {
|
||||
renderQuickActions={
|
||||
/* $FlowFixMe(>=0.31.0) */
|
||||
(rowData: Object, sectionID: string, rowID: string) => {
|
||||
/* $FlowFixMe(>=0.31.0) */
|
||||
return (<View style={styles.actionsContainer}>
|
||||
<TouchableHighlight onPress={() => {
|
||||
Alert.alert('Tips', 'You could do something with this row: ' + rowData.text);
|
||||
|
||||
Reference in New Issue
Block a user