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

Please 🙏🏿 I need help, I actullay dont no the props required!!! #72

Open
tdammy92 opened this issue Nov 15, 2022 · 2 comments
Open
Labels
question Further information is requested

Comments

@tdammy92
Copy link

Hello 👋

I finally found this package to be exactly what i needed, but i dont seems to understand some things about the package.

There is no documentation on some aspect of things. eg (the [ ] of message has basic stuff like {author,id,text,type and createdAt}
).

so whats key to stuff like sender{imageUrl, name,isRead}.

i also when through the example code, but didnt see any of those values been passed!

Any help will be very much appreciated. ✌

@tdammy92 tdammy92 added the question Further information is requested label Nov 15, 2022
@demchenkoalex
Copy link
Member

There is an author which is like sender you're suggesting, with first name, last name, image url etc. For everything else that is not in the types, there is a metadata field which is an object, so you can store anything. All types are here https://github.com/flyerhq/react-native-chat-ui/blob/main/src/types.ts. Please be aware, that I do not currently actively support react native version (as you can probably notice) so use at your own risk. I plan to return to the project, but have no timelines atm.

@tdammy92
Copy link
Author

There is an author which is like sender you're suggesting, with first name, last name, image url etc. For everything else that is not in the types, there is a metadata field which is an object, so you can store anything. All types are here https://github.com/flyerhq/react-native-chat-ui/blob/main/src/types.ts. Please be aware, that I do not currently actively support react native version (as you can probably notice) so use at your own risk. I plan to return to the project, but have no timelines atm.

Thanks.

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

2 participants