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.8.0
  • Source
  • npm
  • Socket score

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

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
    url={url}
    style={styles.box}
    showActivityIndicator
    cachePolicy="dataCache"
    blurhash="LMDSzI~pV=RO9ZV@xv%MRPRlxuog"
/>

Props

PropTypeDefaultDescription
urlstringThe URL of the image
styleobjectThe style of the image
resizeModestringcontainThe resize mode of the image
showActivityIndicatorbooleanfalseWhether to show the UIActivityIndicatorView indicator when loading
base64PlaceholderstringThe base64 encoded placeholder image to show while loading
blurhashstringThe blurhash of the image to show while loading
cachePolicystringmemoryThe cache policy of the image
fadeDurationnumber0.5The transition duration of the image
roundedbooleanfalseRound the image into a circle
tintColorstringtint color
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 23 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