Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
image360viewer
Advanced tools
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:
Install the library using:
yarn add image360viewer
Image360Viewer requires that you install react-native-svg
.
import { Image360viewer } from 'image360viewer';
export default function App() {
return (
<Image360viewer
images={images360}
width={300}
cursorIcon={<Image source={directionsImg} style={styles.icon} />}
/>
)
}
Image360viewer has the following properties:
Property | Description |
---|---|
height?: number | Image height default is 250. |
width?: number | Image width default is 250. |
images: string[] | Array images to rotate. |
resizeMode?: ImageResizeMode | Image display mode. Default is contain. |
rotationRatio?: number | The drag distance compares to 180 degree. |
cursorSize?: number | Text |
cursorIcon?: ReactNode | Content or icon. |
primaryColor?: string | First color of the gradient line. The value default is "#DA0000" |
secondaryColor?: string | Second color of the gradient line. The value default is "#EA8C8A" |
stopColor?: string | End color of the gradient line. The value default is "#FFF" |
View a demo at Expo Web:
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.
MIT License © Rodrigo Gonçalves
FAQs
The 360 image viewer for react native
The npm package image360viewer receives a total of 38 weekly downloads. As such, image360viewer popularity was classified as not popular.
We found that image360viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.