1.0.15 • Published 2 years ago

@wuye/react-native-subsampling-scale-image v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

subsampling-scale-image-view react-native版,用于解决android加载长图模糊问题

Installation

npm install @wuye/react-native-subsampling-scale-image

yarn add @wuye/react-native-subsampling-scale-image

Usage

import { SubsamplingScaleImage } from "@wuye/react-native-subsampling-scale-image";

// ...

<SubsamplingScaleImage
  zoomEnabled
  panEnabled
  quickScaleEnabled
  maxScale={3}
  minScale={1}
  doubleTapZoomStyle={DoubleTapZoomStyle.ZOOM_FOCUS_FIXED}
  source={{ uri: props.uri }}
  onLoadStart={() => console.log('onLoadStart')}
  onLoad={event => console.log('onLoad', event.nativeEvent)}
  onLoadEnd={() => console.log('onLoadEnd')}
  onLoadCleared={() => console.log('onLoadCleared')}
  onError={() => console.log('onError')}
  onScaleChanged={event =>
    console.log('onScaleChanged', event.nativeEvent)
  }
  onCenterChanged={event =>
    console.log('onCenterChanged', event.nativeEvent)
  }
  style={{
    width: props.width,
    height: props.height,
    overflow: 'visible',
  }}
/>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago