convert all array object(firestore timestamp) to date

后端 未结 2 418
轻奢々
轻奢々 2021-01-26 15:07

I am using firestore and react-native-gifted-chat, I am trying to get all the chat messages from firestore to the chat. However, gifted chat does not support displaying firebase

2条回答
  •  心在旅途
    2021-01-26 15:42

    Use renderTime prop of gifted chat and pass a function which converts the time and return that time in a string.

提交回复
热议问题