Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62b7920

Browse files
committed
More updates
2 parents 9649e7c + 3cff9be commit 62b7920

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

Examples/SampleApp/_flowconfig

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
# Ignore react-tools where there are overlaps, but don't ignore anything that
1111
# react-native relies on
12-
.*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js
13-
.*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js
14-
.*/node_modules/react-tools/src/browser/ui/React.js
15-
.*/node_modules/react-tools/src/core/ReactInstanceHandles.js
16-
.*/node_modules/react-tools/src/event/EventPropagators.js
12+
.*/node_modules/react-tools/src/React.js
13+
.*/node_modules/react-tools/src/renderers/shared/reconciler/ReactInstanceHandles.js
14+
.*/node_modules/react-tools/src/renderers/shared/event/EventPropagators.js
15+
.*/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
16+
.*/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js
17+
.*/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderTouchHistoryStore.js
18+
.*/node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js
19+
1720

1821
# Ignore commoner tests
1922
.*/node_modules/commoner/test/.*

Libraries/CustomComponents/ListView/ListView.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,13 @@ var ListView = React.createClass({
390390
Object.assign(props, {
391391
onScroll: this._onScroll,
392392
stickyHeaderIndices: sectionHeaderIndices,
393+
394+
// Do not pass these events downstream to ScrollView since they will be
395+
// registered in ListView's own ScrollResponder.Mixin
396+
onKeyboardWillShow: undefined,
397+
onKeyboardWillHide: undefined,
398+
onKeyboardDidShow: undefined,
399+
onKeyboardDidHide: undefined,
393400
});
394401

395402
// TODO(ide): Use function refs so we can compose with the scroll

Libraries/vendor/react/browser/eventPlugins/PanResponder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ var PanResponder = {
294294
return false;
295295
}
296296
PanResponder._updateGestureStateOnMove(gestureState, touchHistory);
297-
return config.onMoveShouldSetResponderCapture ?
297+
return config.onMoveShouldSetPanResponderCapture ?
298298
config.onMoveShouldSetPanResponderCapture(e, gestureState) : false;
299299
},
300300

0 commit comments

Comments
 (0)