remove bottom padding from sheet

This commit is contained in:
ammarahm-ed
2021-12-31 16:30:43 +05:00
parent 07bfa8d5a0
commit 0119b083ca

View File

@@ -1,6 +1,13 @@
import React, {createRef} from 'react'; import React, {createRef} from 'react';
import {Keyboard, StyleSheet, TouchableOpacity, View,TextInput} from 'react-native'; import {
import {FlatList, ScrollView, } from 'react-native-gesture-handler'; Keyboard,
StyleSheet,
TouchableOpacity,
View,
TextInput,
Platform
} from 'react-native';
import {FlatList, ScrollView} from 'react-native-gesture-handler';
import {notesnook} from '../../../e2e/test.ids'; import {notesnook} from '../../../e2e/test.ids';
import {useMenuStore} from '../../provider/stores'; import {useMenuStore} from '../../provider/stores';
import {DDS} from '../../services/DeviceDetection'; import {DDS} from '../../services/DeviceDetection';
@@ -368,8 +375,8 @@ export class AddNotebookDialog extends React.Component {
this.actionSheetRef.current?.handleChildScrollEnd(); this.actionSheetRef.current?.handleChildScrollEnd();
}} }}
keyboardShouldPersistTaps="always" keyboardShouldPersistTaps="always"
keyboardDismissMode="none" keyboardDismissMode="interactive"
ListFooterComponent={<View style={{height:50}} />} ListFooterComponent={<View style={{height: 50}} />}
renderItem={({item, index}) => ( renderItem={({item, index}) => (
<TopicItem <TopicItem
item={item} item={item}
@@ -402,15 +409,16 @@ export class AddNotebookDialog extends React.Component {
type="accent" type="accent"
onPress={this.addNewNotebook} onPress={this.addNewNotebook}
/> />
{/*
{/* <View {Platform.OS === 'ios' && (
<View
style={{ style={{
height:35 height: 40
}} }}
/> */} />
)} */}
</View> </View>
<Toast context="local" /> <Toast context="local" />
</SheetWrapper> </SheetWrapper>
); );