New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

picache2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picache2

A React Native component to automatically cache images, expo >= 33

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Picache

A React Native component that will automatically cache images.

This is a fork of the benawad package : https://github.com/benawad/Picache

Warning

This project works thanks to the expo project, do not use it in a bare react native project.

SDK constraints

For expo project where the SDK version is <= 32 use benawad package otherwise you can use this one.

Usage

yarn add picache2

Use Picache the same way you would use an <Image /> component.

import Picache from "picache2";

const App = () => (
  <Picache
    style={{ height: 200, width: 200 }}
    source={{ uri: "http://via.placeholder.com/200x200" }}
  />
);
import Picache from "picache2";

const App = () => (
  <Picache
    style={{ height: 150, width: 350 }}
    source={require("./square.png")}
  />
);
import Picache from "picache2";

const App = () => (
  <Picache
    style={{ height: 50, width: 50 }}
    source={[
      {
        uri: "http://via.placeholder.com/25x25",
        height: 25,
        width: 25
      },
      {
        uri: "http://via.placeholder.com/50x50",
        height: 50,
        width: 50
      }
    ]}
  />
);

FAQs

Package last updated on 09 Jan 2020

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