ERROR RangeError: locale must contain localize property

I am trying to configure the sendbird’s React Native UIKit in my app. I am facing one weird issue as: ERROR RangeError: locale must contain localize property
I tried to add the prop localization={{ stringSet: StringSetEn }} in SendbirdUIKitContainer but still, whenever every time I navigate to the GroupChannelList screen now, I am seeing this error.
I started getting this error when I tried to send a message in the channel I had created. How do I fix it?

I got this to work by uninstalling date-fns then
npm install date-fns@2.28.0

then in my App.tsx

import { format } from ‘date-fns’;
import { enUS } from ‘date-fns/locale’;

then inside the function but before the return statement add
const date = new Date();
const formattedDate = format(date, ‘dd MMM yyyy’, { locale: enUS });

and where to add formattedDate? there is one prop localization as I mentioned above in the error details and I tried to apply it but it’s not working