File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import _ from 'lodash' ;
2
2
import { RefObject , useCallback , useRef } from 'react' ;
3
3
import { ScrollView , FlatList , LayoutChangeEvent } from 'react-native' ;
4
- import { Constants } from '../../commons/new' ;
5
4
6
5
export type ScrollToSupportedViews = ScrollView | FlatList ;
7
6
@@ -62,7 +61,8 @@ const useScrollTo = <T extends ScrollToSupportedViews>(props: ScrollToProps<T>):
62
61
[ horizontal ] ) ;
63
62
64
63
const scrollTo = useCallback ( ( offset : number , animated = true ) => {
65
- if (
64
+ // Fix that was for Android RTL. Scrolling is now aligned between IOS and Android and offset is ok.
65
+ /* if (
66
66
horizontal &&
67
67
Constants.isRTL &&
68
68
Constants.isAndroid &&
@@ -71,7 +71,7 @@ const useScrollTo = <T extends ScrollToSupportedViews>(props: ScrollToProps<T>):
71
71
) {
72
72
const scrollingWidth = Math.max(0, contentSize.current - containerSize.current);
73
73
offset = scrollingWidth - offset;
74
- }
74
+ } */
75
75
76
76
// @ts -ignore
77
77
if ( _ . isFunction ( scrollViewRef . current ?. scrollToOffset ) ) {
You can’t perform that action at this time.
0 commit comments