UNPKG

lucide-react-native

Version:

A Lucide icon library package for React Native applications.

28 lines (23 loc) 683 B
/** * @license lucide-react-native v1.18.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ 'use strict'; var react = require('react'); var toPascalCase = require('./shared/src/utils/toPascalCase.js'); var Icon = require('./Icon.js'); const createLucideIcon = (iconName, iconNode) => { const Component = react.forwardRef( (props, ref) => react.createElement(Icon, { ref, iconNode, ...props }) ); Component.displayName = toPascalCase.toPascalCase(iconName); return Component; }; module.exports = createLucideIcon; //# sourceMappingURL=createLucideIcon.js.map