@hecom/react-native-image-capinsets

0.5.4 • Public • Published

react-native-image-capinsets

npm version Build Status

adds support for a similar functionality as <Image capInsets={...} /> to android. behind the scenes it will generate a NinePatchDrawable and set as background for the android ImageView

Installation

  1. npm i --save react-native-image-capinsets
  2. react-native link react-native-image-capinsets

Examples

import ImageCapInset from 'react-native-image-capinsets';

<ImageCapInset
  source={require('./bubble.png')}
  capInsets={{ top: 8, right: 8, bottom: 8, left: 8 }}
  />

/@hecom/react-native-image-capinsets/

    Package Sidebar

    Install

    npm i @hecom/react-native-image-capinsets

    Weekly Downloads

    2

    Version

    0.5.4

    License

    MIT

    Unpacked Size

    76.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • tianxuejun
    • summer88123
    • vampire_163