UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

11 lines (10 loc) 326 B
export default (prevProps: Record<string, any>, nextProps: Record<string, any>) => { Object.keys(nextProps) .filter((key) => { return nextProps[key] !== prevProps[key]; }) .map((key) => { console.log('changed property:', key, 'from', prevProps[key], 'to', nextProps[key]); }); return false; };