Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

image360viewer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image360viewer

The 360 image viewer for react native

  • 1.4.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
decreased by-26.32%
Maintainers
1
Weekly downloads
 
Created
Source
  • 📚 About
  • 🗺 Getting started
  • 🎉 Usage
  • 📘 Properties
  • 📱 Demo
  • 👏 Contributing
  • 💜 License

About

People want to see all the details of a product before they buy it. Being able to view and explore the product gives the user a trusted experience and connects the user with the product. There are cases where a static image cannot demonstrate all the details of the product.

The Image360Viewer has support for React Native CLI and Expo. This library allows the user to explore and have the freedom to view all product details in 360 degrees.

Image360Viewer loads a sequence of images that rotates with a user touch interaction. See an example of vector images:

Vector Images

Getting started

Install the library using:

yarn add image360viewer

Image360Viewer requires that you install react-native-svg.

Usage

import { Image360viewer } from 'image360viewer';

export default function App() {
  return (
    <Image360viewer
      images={images360}
      width={300}
      cursorIcon={<Image source={directionsImg} style={styles.icon} />}
    />
  )
}

Properties

Image360viewer has the following properties:

PropertyDescription
height?: numberImage height default is 250.
width?: numberImage width default is 250.
images: string[]Array images to rotate.
resizeMode?: ImageResizeModeImage display mode. Default is contain.
rotationRatio?: numberThe drag distance compares to 180 degree.
cursorSize?: numberText
cursorIcon?: ReactNodeContent or icon.
primaryColor?: stringFirst color of the gradient line. The value default is "#DA0000"
secondaryColor?: stringSecond color of the gradient line. The value default is "#EA8C8A"
stopColor?: stringEnd color of the gradient line. The value default is "#FFF"

Demo

View a demo at Expo Web:

Contributing

Obrigado por estar interessado em tornar este pacote melhor. Encorajamos todos a ajudar a melhorar este projeto com novos recursos, correções de bugs e melhorias de desempenho.

License

MIT License © Rodrigo Gonçalves

Linkedin Badge Instagram Badge Twitter Badge

Keywords

FAQs

Package last updated on 24 Aug 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc