Skip to content

Commit ff48e36

Browse files
committed
fix: do not use scrollview enhancer if the platform is not android
1 parent 52f40fe commit ff48e36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/uikit-react-native/src/components/ChatFlatList/FlatListInternal.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ type BidirectionalProps<T> = {
1717
};
1818

1919
function shouldUseScrollViewEnhancer() {
20+
if (Platform.OS !== 'android') return false;
21+
2022
if (Platform.constants.reactNativeVersion.major < 1) {
2123
if (Platform.constants.reactNativeVersion.minor < 72) {
2224
return true;
2325
}
2426
}
2527
return false;
2628
}
29+
2730
function getFlatList(): FlatListBidirectional {
2831
if (shouldUseScrollViewEnhancer()) {
2932
try {

0 commit comments

Comments
 (0)