Skip to content

Commit

Permalink
fixed some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Jan 19, 2023
1 parent 246073a commit c2fb8f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const propTypes = {
/** Callback to fire when swiping left or right */
onCycleThroughAttachments: PropTypes.func.isRequired,

/** Callback to handle a press event*/
/** Callback to handle a press event */
onPress: PropTypes.func.isRequired,

/** Boolean to prevent a left swipe action */
Expand Down
8 changes: 5 additions & 3 deletions src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ class AttachmentCarousel extends React.Component {
constructor(props) {
super(props);
this.canUseTouchScreen = DeviceCapabilities.canUseTouchScreen();
this.makeStateWithReports = this.makeStateWithReports.bind(this);
this.cycleThroughAttachments = this.cycleThroughAttachments.bind(this);
this.toggleArrowsVisibility = this.toggleArrowsVisibility.bind(this);

this.state = {shouldShowArrow: this.canUseTouchScreen};
this.state = {
shouldShowArrow: this.canUseTouchScreen,
isForwardDisabled: true,
isBackDisabled: true,
};
}

componentDidMount() {
Expand Down
2 changes: 0 additions & 2 deletions src/components/ImageView/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {View, Pressable} from 'react-native';
import _ from 'underscore';
import Image from '../Image';
import styles from '../../styles/styles';
import * as StyleUtils from '../../styles/StyleUtils';
Expand All @@ -27,7 +26,6 @@ class ImageView extends PureComponent {
super(props);
this.scrollableRef = null;
this.canUseTouchScreen = DeviceCapabilities.canUseTouchScreen();
this.debouncedCalculateImageSize = _.debounce(this.calculateImageSize, 220);
this.onContainerLayoutChanged = this.onContainerLayoutChanged.bind(this);
this.onContainerPressIn = this.onContainerPressIn.bind(this);
this.onContainerPress = this.onContainerPress.bind(this);
Expand Down
4 changes: 0 additions & 4 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2121,10 +2121,6 @@ const styles = {
width: '100%',
},

attachmentContainer: {
height: '100%',
},

leftAttachmentArrow: {
zIndex: 23,
position: 'absolute',
Expand Down

0 comments on commit c2fb8f8

Please sign in to comment.