Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable date header component #67

Open
skjorrface opened this issue Jul 7, 2022 · 5 comments
Open

How to disable date header component #67

skjorrface opened this issue Jul 7, 2022 · 5 comments
Labels
question Further information is requested

Comments

@skjorrface
Copy link

Is there a way to disable date header component completely? I'm including message time inside a custom message bubble and I would like to disable the date component completely.

@skjorrface skjorrface added the question Further information is requested label Jul 7, 2022
@demchenkoalex
Copy link
Member

This repo is a bit behind the flutter version, and there we have a custom header render, if we don't have it here (I guess possible to just return null) it will be added when I will be soon reviving this repo bringing all things we added in the flutter version.

@skjorrface
Copy link
Author

@demchenkoalex Thanks for your answer and help, looking at the documentation the only prop I can customize is customDateHeaderText, which returns a string, not a component. Returning "null" inside this prop actually hides the string but not the component itself, which leaves unwanted space between bubbles :-( Is there any other prop tu customize the actual dateHeader component that I'm missing?

@demchenkoalex
Copy link
Member

Then no, it was added in Flutter but not here. I can prioritise it and release a minor version with dependencies updates and this when I get back to the React Native. In the meantime you can fork and remove it yourself I think, and in the future you will be able to switch back to the lib with the options we will have.

@dpchami
Copy link

dpchami commented Feb 27, 2023

@demchenkoalex thank you for your efforts on this project. Is there any updates on this request or any ways to create custom Date component

@demchenkoalex
Copy link
Member

I wouldn't wait for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants