diff --git a/src/components/AttachmentCarousel.js b/src/components/AttachmentCarousel.js index 68da29c055c7..8371b15bf880 100644 --- a/src/components/AttachmentCarousel.js +++ b/src/components/AttachmentCarousel.js @@ -21,12 +21,15 @@ const propTypes = { /** Callback to update the parent modal's state with a sourceUrl and name from the attachments array */ onArrowPress: PropTypes.func, + + /** Hides arrows if set to false */ }; const defaultProps = { sourceURL: '', reportActions: {}, onArrowPress: () => {}, + showArrows: true, }; class AttachmentCarousel extends React.Component { @@ -105,8 +108,13 @@ class AttachmentCarousel extends React.Component { } render() { + const styling = [styles.attachmentModalArrowsContainer] + if (!this.props.showArrows) { + styling.push(styles.attachmentModalArrowsHidden) + } + return ( - +