From ddb02d2887744614c433673c83a58b99a0612ab3 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 5 Jul 2026 21:07:00 +0700 Subject: [PATCH] fix(lib/externals/shopify): update filters for 337206+ --- lib/externals/src/shopify.ts | 45 ++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/lib/externals/src/shopify.ts b/lib/externals/src/shopify.ts index fb2ea51..264eae5 100644 --- a/lib/externals/src/shopify.ts +++ b/lib/externals/src/shopify.ts @@ -14,21 +14,36 @@ import { proxify } from '@revenge-mod/utils/proxy' export let FlashList: typeof import('@shopify/flash-list') = proxify( () => { const [module] = lookupModule( - withProps('FlashList').and( - // Dependencies. One in brackets are dynamic or late initialized. - // [React, RN, JSXRuntime, (FlashListExports), (Reanimated), (RNBottomSheet), ImportTracker, (BottomSheetFlashList)] - withDependencies([ - ReactModuleId, - ReactNativeModuleId, - ReactJSXRuntimeModuleId, - null, - null, - null, - // TODO: Decouple? - ImportTrackerModuleId, - null, - ]), - ), + withProps('FlashList') + .and( + // [React, JSXRuntime, (Platform), (FlashListExports), (Reanimated), (RNBottomSheet), (BottomSheet), ImportTracker] + withDependencies([ + ReactModuleId, + ReactJSXRuntimeModuleId, + null, + null, + null, + null, + null, + // TODO: Decouple? + ImportTrackerModuleId, + ]).or( + // TODO: Remove when stable > 337206 + // [React, RN, JSXRuntime, (FlashListExports), (Reanimated), (RNBottomSheet), ImportTracker, (BottomSheetFlashList)] + withDependencies([ + ReactModuleId, + ReactNativeModuleId, + ReactJSXRuntimeModuleId, + null, + null, + null, + // TODO: Decouple? + ImportTrackerModuleId, + null, + ]), + ), + ) + .keyAs('revenge.externals.Shopify.FlashList'), ) if (module) return (FlashList = module)