Skip to content

Commit 5f9a982

Browse files
committed
More cleanup
1 parent 8308323 commit 5f9a982

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ if (
6464
) {
6565
Object.defineProperty(module.exports, "FlashList", {
6666
get() {
67-
return OriginalFlashList;
6867
return isNewCoreEnabled() ? RecyclerView : OriginalFlashList;
6968
},
7069
configurable: true,

src/recyclerview/hooks/useRecyclerViewController.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { useUnmountAwareTimeout } from "./useUnmountAwareCallbacks";
4343
*/
4444
export function useRecyclerViewController<T>(
4545
recyclerViewManager: RecyclerViewManager<T>,
46-
ref: React.Ref<any>,
46+
ref: React.Ref<FlashListRef<T>>,
4747
scrollViewRef: RefObject<CompatScroller>,
4848
scrollAnchorRef: React.RefObject<ScrollAnchorRef>
4949
) {

src/recyclerview/hooks/useSecondaryProps.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function useSecondaryProps<T>(props: RecyclerViewProps<T>) {
105105
const ForwardedScrollComponent = React.forwardRef((_props, ref) =>
106106
(renderScrollComponent as any)({ ..._props, ref } as any)
107107
);
108-
ForwardedScrollComponent.displayName = "CompatScrollView";
108+
ForwardedScrollComponent.displayName = "CustomScrollView";
109109
scrollComponent = ForwardedScrollComponent as any;
110110
} else if (renderScrollComponent) {
111111
scrollComponent = renderScrollComponent;

0 commit comments

Comments
 (0)