UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

22 lines (18 loc) 538 B
/* eslint-disable */ //@ts-nocheck // This functions is taken from react native web const uppercasePattern = /[A-Z]/g; const msPattern = /^ms-/; const cache = {}; function toHyphenLower(match) { return '-' + match.toLowerCase(); } function hyphenateStyleName(name) { if (name in cache) { return cache[name]; } const hName = name.replace(uppercasePattern, toHyphenLower); return cache[name] = msPattern.test(hName) ? '-' + hName : hName; } export default hyphenateStyleName; //# sourceMappingURL=hyphenateStyleName.js.map