mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Fix PanResponder example code
Summary: Fixes this:  Closes https://github.com/facebook/react-native/pull/1464 Reviewed By: @svcscm Differential Revision: D2471541 Pulled By: @vjeux
This commit is contained in:
committed by
facebook-github-bot-7
parent
1ab650f958
commit
118cf51522
@@ -45,7 +45,7 @@ var currentCentroidY = TouchHistoryMath.currentCentroidY;
|
||||
*
|
||||
* ```
|
||||
* componentWillMount: function() {
|
||||
* this._panGesture = PanResponder.create({
|
||||
* this._panResponder = PanResponder.create({
|
||||
* // Ask to be the responder:
|
||||
* onStartShouldSetPanResponder: (evt, gestureState) => true,
|
||||
* onStartShouldSetPanResponderCapture: (evt, gestureState) => true,
|
||||
|
||||
Reference in New Issue
Block a user