added scrollview

This commit is contained in:
ue 2019-12-12 00:32:22 +03:00
parent 113f94b822
commit 520fcfdf9e

View File

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { View, Platform } from 'react-native'; import { View, Platform, ScrollView } from 'react-native';
import get from 'lodash/get'; import get from 'lodash/get';
import { useIntl } from 'react-intl'; import { useIntl } from 'react-intl';
@ -44,16 +44,18 @@ const BoostScreen = () => {
{isLoading ? ( {isLoading ? (
<BoostPlaceHolder /> <BoostPlaceHolder />
) : ( ) : (
productList.map(product => ( <ScrollView>
<ProductItemLine {productList.map(product => (
key={get(product, 'title')} <ProductItemLine
isLoading={isLoading} key={get(product, 'title')}
disabled={isProcessing} isLoading={isLoading}
product={product} disabled={isProcessing}
title={_getTitle(get(product, 'title'))} product={product}
handleOnButtonPress={id => buyItem(id)} title={_getTitle(get(product, 'title'))}
/> handleOnButtonPress={id => buyItem(id)}
)) />
))}
</ScrollView>
)} )}
</View> </View>
)} )}