convert all array object(firestore timestamp) to date

后端 未结 2 519
名媛妹妹
名媛妹妹 2021-01-26 15:29

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:51

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

提交回复
热议问题