react-native-stroke-view
v1.0.0
Published
Hanzi Stroke Animation for Android
Downloads
40
Maintainers
Readme
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
- 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 thegetPackages()
method
- 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')
- 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;