fix(lib/externals/shopify): update filters for 337206+
This commit is contained in:
parent
bb144c08ea
commit
ddb02d2887
1 changed files with 30 additions and 15 deletions
45
lib/externals/src/shopify.ts
vendored
45
lib/externals/src/shopify.ts
vendored
|
|
@ -14,21 +14,36 @@ import { proxify } from '@revenge-mod/utils/proxy'
|
|||
export let FlashList: typeof import('@shopify/flash-list') = proxify(
|
||||
() => {
|
||||
const [module] = lookupModule(
|
||||
withProps<typeof FlashList>('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<typeof FlashList>('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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue