From 9b712e595dad89c18e0f6c2104640b6ddd608526 Mon Sep 17 00:00:00 2001 From: natjms Date: Sun, 30 May 2021 10:28:54 -0300 Subject: [PATCH] Improve look of feed interruption --- src/components/navigation/navigators.js | 2 +- src/components/pages/feed.js | 73 +++++++++++++++---------- 2 files changed, 44 insertions(+), 31 deletions(-) diff --git a/src/components/navigation/navigators.js b/src/components/navigation/navigators.js index af1c131..e4b0f4e 100644 --- a/src/components/navigation/navigators.js +++ b/src/components/navigation/navigators.js @@ -9,7 +9,7 @@ import TrayJsx from "src/components/navigation/tray"; export const ScreenWithTrayJsx = (props) => { return ( - + { }) .then(() => setState({...state, - posts: posts, + posts, loaded: true, }) ); @@ -68,25 +69,35 @@ const FeedJsx = (props) => { { state.loaded ? - + - - + + - + You're all caught up. Wow, it sure is a lovely day outside 🌳 props.navigation.navigate("OlderPosts") }> @@ -107,32 +118,34 @@ const styles = { timeline: { height: screen_height - (screen_height / 12) }, - interruptionOuter: { - borderTopWidth: 1, - borderTopColor: "#CCC", + ifCaughtUp: { + flexGrow: 1, + justifyContent: "center", }, interruption: { - marginTop: 10, - marginBottom: 10, + topBorder: { + borderTopWidth: 1, + borderTopColor: "#CCC", + }, + inner: { + marginTop: 10, + marginBottom: 10, - justifyContent: "center", - alignItems: "center", - }, - interruptionHeader: { - fontSize: 21 - }, - checkmark: { - width: screen_width * 0.3, - height: screen_width * 0.3 - }, - buttonOlder: { - borderWidth: 1, - borderColor: "#888", - borderRadius: 5, + justifyContent: "center", + alignItems: "center", + }, + header: { + fontSize: 21 + }, + button: { + borderWidth: 1, + borderColor: "#888", + borderRadius: 5, - margin: 30, - padding: 5 - } + margin: 30, + padding: 5 + }, + }, }; export default FeedJsx;