decord/source/5435_context.js

20 lines
540 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 5435
// Function ID: 5436
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-07-29 08:29:29 +00:00
// Module 5435 (context)
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);
};