2.1.6 • Published 5 years ago

race-suite-shared-essentials v2.1.6

Weekly downloads
66
License
MTT
Repository
github
Last release
5 years ago

Picache

A React Native component that will automatically cache images.

Usage

yarn add picache

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

import Picache from "picache";

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

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

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
          }
        ]}
      />
);
2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.1

5 years ago

2.0.9

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago