updated UserRibbon container styling in boost screen

This commit is contained in:
noumantahir 2022-08-16 22:57:38 +05:00
parent 610f17acbc
commit 11eccb560a
3 changed files with 18 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import { InAppPurchaseContainer } from '../../../containers';
// Styles // Styles
import globalStyles from '../../../globalStyles'; import globalStyles from '../../../globalStyles';
import UserRibbon from '../../../components/userRibbon/userRibbon'; import UserRibbon from '../../../components/userRibbon/userRibbon';
import styles from '../../editor/children/styles'; import styles from './styles';
const ITEM_SKUS = Platform.select({ const ITEM_SKUS = Platform.select({
ios: ['099points', '199points', '499points', '999points', '4999points', '9999points'], ios: ['099points', '199points', '499points', '999points', '4999points', '9999points'],
@ -49,7 +49,7 @@ const BoostScreen = ({ navigation }) => {
{isLoading ? ( {isLoading ? (
<BoostPlaceHolder /> <BoostPlaceHolder />
) : ( ) : (
<ScrollView> <ScrollView contentContainerStyle={styles.listContainer}>
{productList.map((product) => ( {productList.map((product) => (
<ProductItemLine <ProductItemLine
key={get(product, 'title')} key={get(product, 'title')}

View File

@ -0,0 +1,15 @@
import { ViewStyle } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
userRibbonContainer: {
borderBottomWidth: EStyleSheet.hairlineWidth,
borderColor: '$darkGrayBackground',
marginBottom: 0, //without 0 margin, view will start overlapping UserRibbon
paddingBottom: 32
} as ViewStyle,
listContainer: {
paddingTop: 16
} as ViewStyle
});

View File

@ -55,8 +55,5 @@ export default EStyleSheet.create({
doneButton:{borderRadius:16, backgroundColor:'$primaryBlue'}, doneButton:{borderRadius:16, backgroundColor:'$primaryBlue'},
thumbSelectContainer:{ thumbSelectContainer:{
marginTop:12, marginTop:12,
}, }
userRibbonContainer:{
marginBottom: 12,
} as ViewStyle,
}); });