UNPKG

@nexara/nativeflow

Version:

Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.

13 lines (12 loc) 387 B
"use strict"; import { useContext } from 'react'; import { Context } from "../components/Provider/NativeProvider.js"; const useColorScheme = () => { const context = useContext(Context)?.mode; if (!context) { throw new Error('useColorScheme must be used within a NativeProvider'); } return context; }; export default useColorScheme; //# sourceMappingURL=useColorScheme.js.map