Skip to content

Commit 4526b17

Browse files
authored
Added right scrollEventThrottle configuration (#58)
1 parent a2689b1 commit 4526b17

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.eslintrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"env": {
1111
"es6": true,
1212
"jasmine": true,
13-
"node": 1,
13+
"node": 1
1414
},
1515

1616
"plugins": [
@@ -46,7 +46,7 @@
4646
"window": false,
4747
"XMLHttpRequest": false,
4848
"pit": false,
49-
"FormData": true,
49+
"FormData": true
5050
},
5151

5252
"rules": {
@@ -75,7 +75,6 @@
7575
"use-isnan": 1,
7676
"valid-jsdoc": 0,
7777
"valid-typeof": 1,
78-
7978
"block-scoped-var": 0,
8079
"complexity": 0,
8180
"consistent-return": 0,
@@ -166,7 +165,7 @@
166165
"quote-props": 0,
167166
"semi": 0,
168167
"sort-vars": 0,
169-
"keyword-spacing": 1,
168+
"keyword-spacing": [0, { "before": true }],
170169
"space-in-brackets": 0,
171170
"space-in-parens": 0,
172171
"space-infix-ops": 1,

lib/KeyboardAwareListView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const KeyboardAwareListView = React.createClass({
3232
contentInset={{bottom: this.state.keyboardSpace}}
3333
showsVerticalScrollIndicator={true}
3434
{...this.props}
35+
scrollEventThrottle={8}
3536
onScroll={e => {
3637
this.handleOnScroll(e)
3738
this.props.onScroll && this.props.onScroll(e)

lib/KeyboardAwareScrollView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const KeyboardAwareScrollView = React.createClass({
3232
contentInset={{bottom: this.state.keyboardSpace}}
3333
showsVerticalScrollIndicator={true}
3434
{...this.props}
35+
scrollEventThrottle={8}
3536
onScroll={e => {
3637
this.handleOnScroll(e)
3738
this.props.onScroll && this.props.onScroll(e)

0 commit comments

Comments
 (0)