Fix AddColumnModal on small screens

Make it scrollable
This commit is contained in:
Bruno Lemos
2019-01-31 12:24:49 -02:00
parent a60489b6e8
commit bd8a8ee362

View File

@@ -1,6 +1,6 @@
import { rgba } from 'polished'
import React, { useEffect, useRef } from 'react'
import { StyleSheet, View } from 'react-native'
import { ScrollView, View } from 'react-native'
import { useSpring } from 'react-spring/native-hooks'
import {
@@ -287,7 +287,12 @@ export function AddColumnModal(props: AddColumnModalProps) {
showBackButton={showBackButton}
title="Add Column"
>
<View style={{ flex: 1 }}>
<ScrollView
style={{ flex: 1 }}
contentContainerStyle={{
flexGrow: 1,
}}
>
{columnTypes.map((group, groupIndex) => (
<View key={`add-column-header-group-${groupIndex}`}>
<SubHeader title={group.title} />
@@ -356,7 +361,7 @@ export function AddColumnModal(props: AddColumnModalProps) {
<Spacer
height={isFabVisible ? fabSize + 2 * fabSpacing : contentPadding}
/>
</View>
</ScrollView>
</ModalColumn>
)
}