UNPKG

react-native-chating-ui-kit

Version:

CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly

17 lines 551 B
export const getFilteredStyles = (style, arrayOfKeys) => { let overrideStyle = {}; arrayOfKeys.forEach((element) => { if (style && style[element]) overrideStyle[element] = style[element]; }); return overrideStyle; }; export const getFilteredStylesWithKeySwap = (style, objectOfKeys) => { let overrideStyle = {}; for (const key in objectOfKeys) { if (style[key]) overrideStyle[objectOfKeys[key]] = style[key]; } return overrideStyle; }; //# sourceMappingURL=helperFunctions.js.map