Commit 05e376e6 authored by Malsha Rathnasiri's avatar Malsha Rathnasiri

fix scroll issue

parent e89570ab
......@@ -164,7 +164,6 @@ export default function ChatScreen({ navigation }) {
// loadChatDetails() //remove
loadChats()
}}
inverted
sections={chats}
keyExtractor={(item, index) => item + index}
......@@ -200,7 +199,9 @@ export default function ChatScreen({ navigation }) {
)
}}
invertStickyHeaders
renderSectionFooter={({ section: { title } }) => {
inverted
contentContainerStyle={{ flexDirection: 'column-reverse' }}
renderSectionHeader={({ section: { title } }) => {
var date = ""
if (new Date(title).toLocaleDateString() == new Date().toLocaleDateString()) {
date = "Today"
......
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment