WheelerLee / react-native-image-capinsets

adds support for a similar functionality as <Image capInsets={...} /> to android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-image-capinsets

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 https://github.com/WheelerLee/react-native-image-capinsets.git --save
  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 }}
  />

About

adds support for a similar functionality as <Image capInsets={...} /> to android


Languages

Language:Java 88.1%Language:JavaScript 11.9%