Skip to content

Commit 4d8d88f

Browse files
committed
chore: fixed an error
1 parent beaaefb commit 4d8d88f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ function shouldUseScrollViewEnhancer() {
99
return false;
1010
}
1111

12-
let FlatListInternal;
12+
let FlatListInternal = require('react-native').FlatList;
1313
if (shouldUseScrollViewEnhancer()) {
1414
try {
1515
FlatListInternal = require('@sendbird/react-native-scrollview-enhancer').FlatList;
1616
} catch {
1717
FlatListInternal = require('react-native').FlatList;
1818
}
19-
} else {
20-
FlatListInternal = require('react-native').FlatList;
2119
}
2220

2321
export default FlatListInternal;

0 commit comments

Comments
 (0)