Fix android modal padding and editor buttons position

This commit is contained in:
Furkan Kılıç 2020-12-25 00:02:28 +03:00
parent 2a82bb7143
commit c1a25fdf40
4 changed files with 5 additions and 6 deletions

View File

@ -2,9 +2,9 @@ import React from 'react';
import { View, SafeAreaView } from 'react-native';
import styles from './stickyBarStyles';
const StickyBar = ({ children, isFixedFooter }) => (
const StickyBar = ({ children, isFixedFooter, style }) => (
<SafeAreaView>
<View style={[styles.container, isFixedFooter && styles.fixedFooter]}>{children}</View>
<View style={[styles.container, isFixedFooter && styles.fixedFooter, style]}>{children}</View>
</SafeAreaView>
);

View File

@ -2,7 +2,7 @@ import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
searchInput: {
marginTop: 16,
marginTop: 32,
},
searchedFlatList: {
marginTop: 16,

View File

@ -4,7 +4,6 @@ export default EStyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
alignItems: 'stretch',
backgroundColor: '$primaryBackgroundColor',
},
textWrapper: {

View File

@ -219,8 +219,8 @@ const MarkdownEditorView = ({
return (
<KeyboardAvoidingView
style={styles.container}
keyboardVerticalOffset={Platform.select({ ios: 0, android: 30 })}
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
keyboardVerticalOffset={Platform.select({ ios: 0, android: 25 })}
behavior="padding"
>
{!isPreviewActive ? (
<ThemeContainer>