File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ function KeyboardAwareHOC(
152
152
keyboardWillHideEvent : ?Function
153
153
position : ContentOffset
154
154
defaultResetScrollToCoords : ?{ x : number , y : number }
155
- resetCoords: ?{ x : number , y : number }
156
155
mountedComponent: boolean
157
156
handleOnScroll: Function
158
157
state: KeyboardAwareHOCState
@@ -420,7 +419,7 @@ function KeyboardAwareHOC(
420
419
}
421
420
)
422
421
}
423
- if ( ! this . resetCoords ) {
422
+ if ( ! this . props . resetScrollToCoords ) {
424
423
if ( ! this . defaultResetScrollToCoords ) {
425
424
this . defaultResetScrollToCoords = this . position
426
425
}
@@ -436,8 +435,8 @@ function KeyboardAwareHOC(
436
435
if ( this . props . enableResetScrollToCoords === false ) {
437
436
this . defaultResetScrollToCoords = null
438
437
return
439
- } else if ( this . resetCoords ) {
440
- this . scrollToPosition ( this . resetCoords . x , this . resetCoords . y , true )
438
+ } else if ( this . props . resetScrollToCoords ) {
439
+ this . scrollToPosition ( this . props . resetScrollToCoords . x , this . props . resetScrollToCoords . y , true )
441
440
} else {
442
441
if ( this . defaultResetScrollToCoords ) {
443
442
this . scrollToPosition (
You can’t perform that action at this time.
0 commit comments