decord/source/5688_context.js

20 lines
540 B
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 5688
// Function ID: 5689
2026-07-20 16:05:17 +00:00
// Name: context
2026-07-29 08:29:29 +00:00
// Dependencies: [19]
2026-07-20 16:05:17 +00:00
// Exports: useFlashListContext, useRecyclerViewContext
2026-08-13 07:00:46 +00:00
// Module 5688 (context)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const useContext = noop.useContext;
const context = noop.createContext(undefined);
2026-07-20 16:05:17 +00:00
export const RecyclerViewContextProvider = context.Provider;
export const useRecyclerViewContext = function useRecyclerViewContext() {
return useContext(context);
};
export const useFlashListContext = function useFlashListContext() {
return useContext(context);
};