File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/modules/ScrollResponder Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ const ScrollResponderMixin = {
354354 } ,
355355
356356 /**
357- * A helper function to scroll to a specific point in the scrollview.
357+ * A helper function to scroll to a specific point in the scrollview.
358358 * This is currently used to help focus on child textviews, but can also
359359 * be used to quickly scroll to any element we want to focus. Syntax:
360360 *
@@ -377,6 +377,7 @@ const ScrollResponderMixin = {
377377 ( { x, y, animated } = x || emptyObject ) ;
378378 }
379379 const node = this . scrollResponderGetScrollableNode ( ) ;
380+ UIManager . updateView ( node , { style : { scrollBehavior : ! animated ? 'auto' : 'smooth' } } , this ) ;
380381 node . scrollLeft = x || 0 ;
381382 node . scrollTop = y || 0 ;
382383 } ,
You can’t perform that action at this time.
0 commit comments