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

fix scroll issue

parent e89570ab
...@@ -164,7 +164,6 @@ export default function ChatScreen({ navigation }) { ...@@ -164,7 +164,6 @@ export default function ChatScreen({ navigation }) {
// loadChatDetails() //remove // loadChatDetails() //remove
loadChats() loadChats()
}} }}
inverted
sections={chats} sections={chats}
keyExtractor={(item, index) => item + index} keyExtractor={(item, index) => item + index}
...@@ -200,7 +199,9 @@ export default function ChatScreen({ navigation }) { ...@@ -200,7 +199,9 @@ export default function ChatScreen({ navigation }) {
) )
}} }}
invertStickyHeaders invertStickyHeaders
renderSectionFooter={({ section: { title } }) => { inverted
contentContainerStyle={{ flexDirection: 'column-reverse' }}
renderSectionHeader={({ section: { title } }) => {
var date = "" var date = ""
if (new Date(title).toLocaleDateString() == new Date().toLocaleDateString()) { if (new Date(title).toLocaleDateString() == new Date().toLocaleDateString()) {
date = "Today" 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