react-native-use-imagecapinsets

0.0.6 • Public • Published

React Native ImageCapInset

Support Image capInsets for Android (only for RN >= 0.56)

Installation

  1. yarn add react-native-use-imagecapinsets
  2. react-native link react-native-use-imagecapinsets

Example

import ImageCapInset from 'react-native-use-imagecapinsets';

import BubbleImage from './images/bubble.png';

<ImageCapInset source={BubbleImage}
               capInsets={{ top: 8, right: 8, bottom: 8, left: 8 }} />

Credits

Continued development under RN 0.56+ react-native-image-capinsets package.

Forked from react-native-imagecapinsets

Package Sidebar

Install

npm i react-native-use-imagecapinsets

Weekly Downloads

11

Version

0.0.6

License

MIT

Unpacked Size

77.2 kB

Total Files

20

Last publish

Collaborators

  • aricwu