You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stickyHeaderDate?.getFullYear()===newDate().getFullYear() ? 'MMM D' : 'MMM D, YYYY';
This value is for english format date only, for other language, for example, the formated value is 5月12, it leads to confusion because the right value is 5月12日, but I couldn't able to change it
Steps to reproduce
Steps to reproduce the behavior:
Use localization to change to Japanese
Go to Channel List
Go to Channel screen
Scroll up old messages
Expected behavior
The format should have not hardcoded into the library, or has some ways to receive the format.
Offline support
I have enabled offline support.
The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 1.88 GB / 15.83 GB
Binaries:
Node: 16.15.1 - ~\AppData\Local\nvs\default\node.EXE
Yarn: 3.4.1 - ~\AppData\Local\nvs\default\yarn.CMD
npm: 8.11.0 - ~\AppData\Local\nvs\default\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
IDEs:
Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8309675
Visual Studio: Not Found
Languages:
Java: 11.0.14.1
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.7 => 0.71.7
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Foun
Platform that you're experiencing the issue on:
iOS
Android
iOS but have not tested behavior on Android
Android but have not tested behavior on iOS
Both
stream-chat-react-native version you're using that has this issue:
5.14.0
Device/Emulator info:
I am using a physical device
OS version: Android 10
Device/Emulator: iPhone 12
Additional context
Screenshots
Click To Expand
The text was updated successfully, but these errors were encountered:
@khushal87 but there is no fix for the hardcoded format in the stream chat react native component, as in decribed above, it should have an optional props for receiving date format string
Issue
stream-chat-react-native/package/src/components/MessageList/MessageList.tsx
Line 928 in a983781
This value is for english format date only, for other language, for example, the formated value is 5月12, it leads to confusion because the right value is 5月12日, but I couldn't able to change it
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The format should have not hardcoded into the library, or has some ways to receive the format.
Offline support
Environment
Click To Expand
package.json
:react-native info
output:stream-chat-react-native
version you're using that has this issue:Additional context
Screenshots
Click To Expand
The text was updated successfully, but these errors were encountered: