diff --git a/app/components/autocomplete/autocomplete.js b/app/components/autocomplete/autocomplete.js
index 30255b3d3..c05ca56a5 100644
--- a/app/components/autocomplete/autocomplete.js
+++ b/app/components/autocomplete/autocomplete.js
@@ -7,6 +7,7 @@ import {
Keyboard,
Platform,
View,
+ ViewPropTypes,
} from 'react-native';
import EventEmitter from '@mm-redux/utils/event_emitter';
@@ -37,6 +38,7 @@ export default class Autocomplete extends PureComponent {
nestedScrollEnabled: PropTypes.bool,
expandDown: PropTypes.bool,
onVisible: PropTypes.func,
+ style: ViewPropTypes.style,
};
static defaultProps = {
@@ -194,6 +196,10 @@ export default class Autocomplete extends PureComponent {
}
}
+ if (this.props.style) {
+ containerStyles.push(this.props.style);
+ }
+
const maxListHeight = this.maxListHeight();
return (
diff --git a/app/components/autocomplete/emoji_suggestion/__snapshots__/emoji_suggestion.test.js.snap b/app/components/autocomplete/emoji_suggestion/__snapshots__/emoji_suggestion.test.js.snap
index f277ee24c..81e7c8d8d 100644
--- a/app/components/autocomplete/emoji_suggestion/__snapshots__/emoji_suggestion.test.js.snap
+++ b/app/components/autocomplete/emoji_suggestion/__snapshots__/emoji_suggestion.test.js.snap
@@ -1,45 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`components/autocomplete/emoji_suggestion should match snapshot 1`] = `
-
-`;
+exports[`components/autocomplete/emoji_suggestion should match snapshot 1`] = `null`;
exports[`components/autocomplete/emoji_suggestion should match snapshot 2`] = `
{
fontWeight: 'bold',
},
listView: {
- flex: 1,
backgroundColor: theme.centerChannelBg,
},
row: {
diff --git a/app/components/edit_channel_info/__snapshots__/edit_channel_info.test.js.snap b/app/components/edit_channel_info/__snapshots__/edit_channel_info.test.js.snap
index 43aca114e..72f937069 100644
--- a/app/components/edit_channel_info/__snapshots__/edit_channel_info.test.js.snap
+++ b/app/components/edit_channel_info/__snapshots__/edit_channel_info.test.js.snap
@@ -321,6 +321,11 @@ exports[`EditChannelInfo should match snapshot 1`] = `
maxHeight={200}
nestedScrollEnabled={true}
onChangeText={[Function]}
+ style={
+ Object {
+ "position": undefined,
+ }
+ }
value="header"
/>
diff --git a/app/components/edit_channel_info/edit_channel_info.js b/app/components/edit_channel_info/edit_channel_info.js
index 36453f177..edbecc2f7 100644
--- a/app/components/edit_channel_info/edit_channel_info.js
+++ b/app/components/edit_channel_info/edit_channel_info.js
@@ -361,6 +361,7 @@ export default class EditChannelInfo extends PureComponent {
onChangeText={this.onHeaderChangeText}
value={header}
nestedScrollEnabled={true}
+ style={style.autocomplete}
/>
@@ -370,6 +371,9 @@ export default class EditChannelInfo extends PureComponent {
const getStyleSheet = makeStyleSheetFromTheme((theme) => {
return {
+ autocomplete: {
+ position: undefined,
+ },
autocompleteContainer: {
justifyContent: 'flex-end',
},
diff --git a/app/screens/edit_post/__snapshots__/edit_post.test.js.snap b/app/screens/edit_post/__snapshots__/edit_post.test.js.snap
index 6ac60dc0b..51ce60621 100644
--- a/app/screens/edit_post/__snapshots__/edit_post.test.js.snap
+++ b/app/screens/edit_post/__snapshots__/edit_post.test.js.snap
@@ -1,71 +1,73 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`EditPost should match snapshot 1`] = `
-
-
+
+
-
+ >
+
+
-
+
`;
diff --git a/app/screens/edit_post/edit_post.js b/app/screens/edit_post/edit_post.js
index c857bb383..697451486 100644
--- a/app/screens/edit_post/edit_post.js
+++ b/app/screens/edit_post/edit_post.js
@@ -248,27 +248,29 @@ export default class EditPost extends PureComponent {
];
return (
-
-
-
- {displayError}
-
-
+ <>
+
+
+
+ {displayError}
+
+
+
@@ -279,15 +281,19 @@ export default class EditPost extends PureComponent {
value={message}
nestedScrollEnabled={true}
onVisible={this.onAutocompleteVisible}
+ style={style.autocomplete}
/>
-
+ >
);
}
}
const getStyleSheet = makeStyleSheetFromTheme((theme) => {
return {
+ autocomplete: {
+ position: undefined,
+ },
container: {
flex: 1,
},
diff --git a/app/screens/post_options/post_options.js b/app/screens/post_options/post_options.js
index 65759eee3..978431430 100644
--- a/app/screens/post_options/post_options.js
+++ b/app/screens/post_options/post_options.js
@@ -363,7 +363,7 @@ export default class PostOptions extends PureComponent {
closeButton: source,
};
- this.closeWithAnimation(() => showModal(screen, title, passProps));
+ this.closeWithAnimation(() => showModal(screen, title, passProps, {modal: {swipeToDismiss: false}}));
});
};