react-native-stroke-view

1.0.0 • Public • Published

react-native-stroke-view

Getting started

$ npm install react-native-stroke-view --save

Mostly automatic installation

$ react-native link react-native-stroke-view

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import cn.cnlee.commons.hanzi.RNStrokeViewPackage; to the imports at the top of the file
  • Add new RNStrokeViewPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-stroke-view'
    project(':react-native-stroke-view').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-stroke-view/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-stroke-view')
    

Usage

import RNStrokeView from 'react-native-stroke-view';
 
// TODO: What to do with the module?
RNStrokeView;

Package Sidebar

Install

npm i react-native-stroke-view

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.06 MB

Total Files

122

Last publish

Collaborators

  • lijian0103