diff --git a/app/index.tsx b/app/index.tsx index c41bd13..566ddeb 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -58,7 +58,11 @@ export default function HomeScreen() { refreshing={refreshing} onEndReached={() => load()} onEndReachedThreshold={0.5} - ListFooterComponent={loading ? : null} + ListFooterComponent={ + + {loading && } + + } onScroll={Animated.event( [{ nativeEvent: { contentOffset: { y: scrollY } } }], { useNativeDriver: true } @@ -152,8 +156,8 @@ const styles = StyleSheet.create({ backgroundColor: '#00AEEC', borderRadius: 1, }, - row: { paddingHorizontal: 8 }, + row: { paddingHorizontal: 8, justifyContent:'center' }, leftCol: { marginLeft: 4, marginRight: 2 }, rightCol: { marginLeft: 2, marginRight: 4 }, - footer: { marginVertical: 16 }, + footer: { height: 48, alignItems: 'center', justifyContent: 'center' }, });