Skip to content

Commit c251dda

Browse files
committed
打平iOS和安卓事件
1 parent 41f9d97 commit c251dda

File tree

6 files changed

+261
-164
lines changed

6 files changed

+261
-164
lines changed

Examples/InputExample.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class InputExample extends React.Component {
3333
<TextInput
3434
ref={this._topInput}
3535
style={styles.input}
36+
returnKeyType="next"
3637
placeholder="Keyboard Test Top"
3738
/>
3839
<Text style={styles.text}>

Examples/ScrollToAndOnScrollExample.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ export class ScrollToAndOnScrollExample extends React.Component {
8080
};
8181

8282
_onScroll = (offset) => {
83-
console.log('onScroll', offset.nativeEvent);
83+
// console.log('onScroll', offset.nativeEvent);
8484
};
8585

8686
_onTouchBegin = () => {
8787
console.log('onTouchBegin');
8888
};
8989

9090
_onTouchEnd = () => {
91-
console.log('onTouchEnd2');
91+
console.log('onTouchEnd');
9292
};
9393

9494
onMomentumScrollBegin = () => {
@@ -99,11 +99,11 @@ export class ScrollToAndOnScrollExample extends React.Component {
9999
};
100100

101101
_onScrollBeginDrag = () => {
102-
console.log('_onScrollBeginDrag');
102+
console.log('onScrollBeginDrag');
103103
};
104104

105105
_onScrollEndDrag = () => {
106-
console.log('_onScrollEndDrag');
106+
console.log('onScrollEndDrag');
107107
};
108108
}
109109

0 commit comments

Comments
 (0)