Fix Android previewer download option (#2157)
* Fix Android previewer download option * Feedback review
This commit is contained in:
parent
2f9e273923
commit
14422f33a5
1 changed files with 9 additions and 3 deletions
|
|
@ -22,8 +22,8 @@ import {emptyFunction} from 'app/utils/general';
|
|||
|
||||
const {DOCUMENTS_PATH, VIDEOS_PATH} = DeviceTypes;
|
||||
const EXTERNAL_STORAGE_PERMISSION = 'android.permission.WRITE_EXTERNAL_STORAGE';
|
||||
const HEADER_HEIGHT = 64;
|
||||
const OPTION_LIST_WIDTH = 39;
|
||||
const HEADER_HEIGHT = 46;
|
||||
const OPTION_LIST_HEIGHT = 39;
|
||||
|
||||
export default class Downloader extends PureComponent {
|
||||
static propTypes = {
|
||||
|
|
@ -156,8 +156,12 @@ export default class Downloader extends PureComponent {
|
|||
render() {
|
||||
const {show} = this.props;
|
||||
|
||||
if (!show) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={[styles.wrapper, {height: show ? OPTION_LIST_WIDTH : 0}]}>
|
||||
<View style={styles.wrapper}>
|
||||
<TouchableOpacity
|
||||
style={styles.downloadButton}
|
||||
onPress={this.handleDownload}
|
||||
|
|
@ -186,8 +190,10 @@ const styles = StyleSheet.create({
|
|||
wrapper: {
|
||||
position: 'absolute',
|
||||
backgroundColor: '#575757',
|
||||
height: OPTION_LIST_HEIGHT,
|
||||
top: HEADER_HEIGHT,
|
||||
right: 0,
|
||||
width: 150,
|
||||
marginRight: 5,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue