UNPKG

lucide-react-native

Version:

A Lucide icon library package for React Native applications.

38 lines (34 loc) 864 B
/** * @license lucide-react-native v1.31.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ import { createContext, useContext, useMemo, createElement } from 'react'; const LucideContext = createContext({ size: 24, color: "currentColor", strokeWidth: 2, absoluteStrokeWidth: false }); function LucideProvider({ children, size, color, strokeWidth, absoluteStrokeWidth }) { const value = useMemo( () => ({ size, color, strokeWidth, absoluteStrokeWidth }), [size, color, strokeWidth, absoluteStrokeWidth] ); return createElement(LucideContext.Provider, { value }, children); } const useLucideContext = () => useContext(LucideContext); export { LucideProvider, useLucideContext }; //# sourceMappingURL=context.mjs.map