Socket
Socket
Sign inDemoInstall

react-native-single-image-zoom-viewer

Package Overview
Dependencies
464
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-single-image-zoom-viewer

an image viewer with zoom and move


Version published
Weekly downloads
15
increased by66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-single-image-zoom-viewer

move && zoom anywhere

Getting Start

install

npm i react-native-single-image-zoom-viewer --save

import & use

// import
import SingleImageZoomViewer from 'react-native-single-image-zoom-viewer'

// use in any component
// use remote image from uri
<SingleImageZoomViewer source={{uri:'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1972890221,1494503013&fm=26&gp=0.jpg'}}/>

// use local image,
<SingleImageZoomViewer source={require('./example-image.png')} width={200} height={{200}}/>
props
propstypeneededdetaildefault
sourceRN Image Sourceyesuse {uri:uri} or require('local uri') like use React Native Imagenone
widthNumbernoif the source is {uri:uri},it will auto set,if not it is default to be 200,or your settingsee detail
heightNumbersame as widthsame as width
styleObjectnothe container style object{flex:1,backgroundColor:'black'}

Problem may occur

use http resource

  1. open info.plist in Xcode
  2. add App Transport security setting below Information Property List
  3. add Allow Arbitrary Load below App Transport security setting and set value yes

Keywords

FAQs

Last updated on 14 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc