From d48119be38e1dd3f0abc8a4b61c11aa4d0635810 Mon Sep 17 00:00:00 2001 From: Husam Salhab <47015061+hsalhab@users.noreply.github.com> Date: Mon, 26 Oct 2020 18:50:54 -0400 Subject: [TMA-280] Add coming soon (#73) * move async-storage * removed lock files * added lock files to gitignore * added the wrong file to gitignore * added coming soon screens * moved search next to profile * Added the right icons and abstracted cs to ComingSoon.tsx * Update Checkpoint.tsx Co-authored-by: Ashm Walia --- src/components/common/ComingSoon.tsx | 51 ++++++++++++++++++++++++++++++++ src/components/common/NavigationIcon.tsx | 6 ++-- src/components/common/index.ts | 1 + 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 src/components/common/ComingSoon.tsx (limited to 'src/components/common') diff --git a/src/components/common/ComingSoon.tsx b/src/components/common/ComingSoon.tsx new file mode 100644 index 00000000..5e1414e2 --- /dev/null +++ b/src/components/common/ComingSoon.tsx @@ -0,0 +1,51 @@ +import * as React from 'react'; +import {StyleSheet, View, Text, Image} from 'react-native'; +import {Background} from '../onboarding'; + +const ComingSoon: React.FC = () => { + return ( + + + Coming Soon + + Stay tuned! We are working on constructing this page + + + + + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + alignItems: 'center', + }, + image: { + width: 400, + height: 400, + }, + textContainer: { + marginTop: '30%', + }, + header: { + color: '#fff', + fontSize: 32, + fontWeight: '600', + textAlign: 'center', + marginBottom: '4%', + marginHorizontal: '10%', + }, + subtext: { + color: '#fff', + fontSize: 16, + fontWeight: '600', + textAlign: 'center', + marginBottom: '16%', + marginHorizontal: '10%', + }, +}); +export default ComingSoon; diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 9497566b..8bf8b4a0 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -17,8 +17,8 @@ const NavigationIcon = (props: NavigationIconProps) => { switch (props.tab) { case 'Home': imgSrc = props.disabled - ? require('../../assets/navigationIcons/home.png') - : require('../../assets/navigationIcons/home-clicked.png'); + ? require('../../assets/navigationIcons/home-new.png') + : require('../../assets/navigationIcons/home-new-clicked.png'); break; case 'Search': imgSrc = props.disabled @@ -28,7 +28,7 @@ const NavigationIcon = (props: NavigationIconProps) => { case 'Upload': imgSrc = props.disabled ? require('../../assets/navigationIcons/upload.png') - : require('../../assets/navigationIcons/upload.png'); + : require('../../assets/navigationIcons/upload-clicked.png'); break; case 'Notifications': imgSrc = props.disabled diff --git a/src/components/common/index.ts b/src/components/common/index.ts index 61d826bd..950b3f61 100644 --- a/src/components/common/index.ts +++ b/src/components/common/index.ts @@ -10,4 +10,5 @@ export {default as RecentSearches} from '../search/RecentSearches'; export {default as LoadingIndicator} from './LoadingIndicator'; export {default as DateLabel} from './DateLabel'; export {default as SocialLinkModal} from './SocialLinkModal'; +export {default as ComingSoon} from './ComingSoon'; export * from './post'; -- cgit v1.2.3-70-g09d2