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 { View, SafeAreaView } from 'react-native';
import styles from './stickyBarStyles'; import styles from './stickyBarStyles';
const StickyBar = ({ children, isFixedFooter }) => ( const StickyBar = ({ children, isFixedFooter, style }) => (
<SafeAreaView> <SafeAreaView>
<View style={[styles.container, isFixedFooter && styles.fixedFooter]}>{children}</View> <View style={[styles.container, isFixedFooter && styles.fixedFooter, style]}>{children}</View>
</SafeAreaView> </SafeAreaView>
); );

View File

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

View File

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

View File

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