diff options
author | Ivan Chen <ivan@thetaggid.com> | 2020-11-05 22:09:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 22:09:20 -0500 |
commit | 1f56aec4deb9001a889a9acbff3107f6c8d5837c (patch) | |
tree | 59c40410ea5217bb5c384e2c2d82c22ebb2f6606 /src/components | |
parent | 115f5df498224d2e4ce3362a2040011f5f3d0883 (diff) |
[TMA-347] Adjusted Coming Soon Image to look nice on smaller screens (#107)
* Adjusted image and text to also look nice on iphone8
* Percentage
Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/common/ComingSoon.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/common/ComingSoon.tsx b/src/components/common/ComingSoon.tsx index 5e1414e2..16b65b58 100644 --- a/src/components/common/ComingSoon.tsx +++ b/src/components/common/ComingSoon.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import {StyleSheet, View, Text, Image} from 'react-native'; +import {SCREEN_WIDTH} from '../../utils'; import {Background} from '../onboarding'; const ComingSoon: React.FC = () => { @@ -25,8 +26,8 @@ const styles = StyleSheet.create({ alignItems: 'center', }, image: { - width: 400, - height: 400, + width: SCREEN_WIDTH, + height: SCREEN_WIDTH, }, textContainer: { marginTop: '30%', @@ -44,7 +45,7 @@ const styles = StyleSheet.create({ fontSize: 16, fontWeight: '600', textAlign: 'center', - marginBottom: '16%', + marginBottom: '5%', marginHorizontal: '10%', }, }); |