Skip to content

Commit

Permalink
Merge pull request #6169 from CamilaRivera/camilarivera-disabled-pdf-…
Browse files Browse the repository at this point in the history
…context-menu

Wrap PDF in TouchableWithoutFeedback
  • Loading branch information
Luke9389 authored Nov 19, 2021
2 parents aad35d9 + 3081be8 commit 38648dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PDFView/index.native.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import {TouchableWithoutFeedback} from 'react-native';
import PDF from 'react-native-pdf';
import styles, {getWidthAndHeightStyle} from '../../styles/styles';
import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions';
Expand Down Expand Up @@ -30,7 +30,7 @@ const defaultProps = {
*/

const PDFView = props => (
<View style={[styles.flex1, props.style]}>
<TouchableWithoutFeedback style={[styles.flex1, props.style]}>
<PDF
activityIndicator={<FullScreenLoadingIndicator />}
source={{uri: props.sourceURL}}
Expand All @@ -39,7 +39,7 @@ const PDFView = props => (
getWidthAndHeightStyle(props.windowWidth, props.windowHeight),
]}
/>
</View>
</TouchableWithoutFeedback>
);

PDFView.propTypes = propTypes;
Expand Down

0 comments on commit 38648dd

Please sign in to comment.