Fix file upload and edit post layout (#1259)

This commit is contained in:
enahum 2017-12-04 19:13:14 -03:00 committed by Elias Nahum
parent ca2cc88c10
commit e4d9a672fc
No known key found for this signature in database
GPG key ID: E038DB71E0B61702
3 changed files with 5 additions and 11 deletions

View file

@ -14,7 +14,6 @@ import Icon from 'react-native-vector-icons/Ionicons';
import FileAttachmentImage from 'app/components/file_attachment_list/file_attachment_image';
import FileAttachmentIcon from 'app/components/file_attachment_list/file_attachment_icon';
import KeyboardLayout from 'app/components/layout/keyboard_layout';
export default class FileUploadPreview extends PureComponent {
static propTypes = {
@ -104,7 +103,7 @@ export default class FileUploadPreview extends PureComponent {
}
return (
<KeyboardLayout>
<View>
<View style={[style.container, {height: this.props.deviceHeight}]}>
<ScrollView
horizontal={true}
@ -114,7 +113,7 @@ export default class FileUploadPreview extends PureComponent {
{this.buildFilePreviews()}
</ScrollView>
</View>
</KeyboardLayout>
</View>
);
}
}

View file

@ -208,7 +208,7 @@ class Channel extends PureComponent {
navigator={navigator}
onPress={this.goToChannelInfo}
/>
<KeyboardLayout behavior='padding'>
<KeyboardLayout>
<View style={style.postList}>
<ChannelPostList navigator={navigator}/>
</View>

View file

@ -10,7 +10,6 @@ import {
} from 'react-native';
import ErrorText from 'app/components/error_text';
import KeyboardLayout from 'app/components/layout/keyboard_layout';
import Loading from 'app/components/loading';
import StatusBar from 'app/components/status_bar';
import TextInputWithLocalizedPlaceholder from 'app/components/text_input_with_localized_placeholder';
@ -181,11 +180,7 @@ class EditPost extends PureComponent {
}
return (
<KeyboardLayout
behavior='padding'
style={style.container}
keyboardVerticalOffset={0}
>
<View style={style.container}>
<StatusBar/>
<View style={style.scrollView}>
{displayError}
@ -207,7 +202,7 @@ class EditPost extends PureComponent {
/>
</View>
</View>
</KeyboardLayout>
</View>
);
}
}