Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rn-imagecapinsets

itrabbit18MIT0.0.6

Support Image capInsets for Android

capInsets, 9-patch, nine-patch, resizableimagewithcapinsets, images, react-native, native, rn_0.56

readme

React Native ImageCapInset

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

Installation

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

Example

import ImageCapInset from 'rn-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.