UNPKG

@scrolia/react-native

Version:
18 lines (16 loc) 448 B
import { tryPlugin } from "./plugin.mjs"; /** The function to get component props with plugins. */ const getComponentProps = (options) => { const { name, props, plugins } = options; let result = props; for (const plugin of plugins) { if (!plugin.props?.[name]) continue; result = { ...result, ...tryPlugin(plugin, plugin.props[name], result) }; } return result; }; export { getComponentProps }; //# sourceMappingURL=props.mjs.map