react-native-9patch-image

0.3.4 • Public • Published

React Native 9patch image

This module supports of using native 9patch drawables from Android and capInsets from iOS.

Getting started

Install native module

$ npm i --save react-native-9patch-image

Link native module with your project

$ react-native link react-native-9patch-image

Add component to your project

import NinePatchView from 'react-native-9patch-image';
 
<NinePatchView
  source={{ 'uri': 'bubble' }}
  style={{ width: 100, height: 100 }}
  />

Package Sidebar

Install

npm i react-native-9patch-image

Weekly Downloads

8

Version

0.3.4

License

MIT

Unpacked Size

68.6 kB

Total Files

14

Last publish

Collaborators

  • rusfearuth