0.5.6 • Published 2 years ago

@alex-gale/react-native-image-capinsets v0.5.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@alex-gale/react-native-image-capinsets

npm version

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 @alex-gale/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 }}
  />