native/src/components/PinchPanImage.tsx
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(): ReactElement | null {
const { uri } = this.props
const { imageDimensions, viewDimensions, interactive } = this.state
if (!imageDimensions || !viewDimensions) {
File PinchPanImage.tsx
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { ReactElement } from 'react'
import { Animated, Image, ImageErrorEventData, NativeSyntheticEvent } from 'react-native'
import {
PanGestureHandler,
PinchGestureHandler,
Function constructor
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: PinchPanImageProps) {
super(props)
this.state = { interactive: true }
this.pinchHandler = React.createRef()
Function fixBounds
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private fixBounds(
viewWidth: number,
viewHeight: number,
realImageWidth: number,
realImageHeight: number,