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

react-native-turbo-image

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-turbo-image

Performant image for React native

  • 0.11.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.1K
increased by25.66%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-turbo-image

Performant React Native image component. Powered by Nuke and Coil

Features

  • Image downloading and caching
  • TypeScript Support
  • written in Swift and Kotlin

Installation

npm install react-native-turbo-image

Usage

import TurboImage from 'react-native-turbo-image';

// ...

<TurboImage
  src={url}
  style={styles.box}
  cachePolicy="dataCache"
  blurhash="ULKKWp^+s,_300M{t7tR~XNHE2bI00xuWBRP"
/>;

Props

PropTypeDefaultDescription
srcstringThe URL of the image
resizeModestringcontainThe resize mode of the image
showActivityIndicator (iOS only)booleanfalseWhether to show the indicator when loading
fadeDurationnumber0.3(iOS) / 0.1(Android)The transition duration of the image
borderRadiusnumberThe border radius added to the image
roundedbooleanfalseRound the image into a circle
blurnumberThe blur radius of the blur filter added to the image
monochromenumber / ColorValueThe color applied to the image
blurhashstringThe blurhash of the image to show while loading
cachePolicystringmemoryThe cache policy of the image
onErrorfunctionThe function to call when an error occurs.
onSucessfunctionThe function to call when the image is successfully loaded

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 25 Apr 2024

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