Fix thread_post_list to display first post completely

This commit is contained in:
Elias Nahum
2022-03-22 23:41:30 -03:00
parent 2463e17e52
commit fbdaff34c6

View File

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import React, {useMemo} from 'react';
import {StyleSheet} from 'react-native';
import {StyleSheet, View} from 'react-native';
import {Edge, SafeAreaView} from 'react-native-safe-area-context';
import PostList from '@components/post_list';
@@ -25,8 +25,9 @@ type Props = {
const edges: Edge[] = ['bottom'];
const styles = StyleSheet.create({
container: {marginTop: 20},
container: {marginTop: 10},
flex: {flex: 1},
footer: {height: 20},
});
const ThreadPostList = ({
@@ -54,6 +55,7 @@ const ThreadPostList = ({
shouldShowJoinLeaveMessages={false}
showMoreMessages={false}
showNewMessageLine={false}
footer={<View style={styles.footer}/>}
testID='thread.post_list'
/>
);