react-native-carticon
v0.0.2
Published
## Getting started
Downloads
4
Readme
react-native-car-ticon
Getting started
$ npm install react-native-car-ticon --save
Mostly automatic installation
$ react-native link react-native-car-ticon
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNCarTiconPackage;
to the imports at the top of the file - Add
new RNCarTiconPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-car-ticon' project(':react-native-car-ticon').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-car-ticon/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-car-ticon')
Usage
import RNCarTicon from 'react-native-car-ticon';
// TODO: What to do with the module?
RNCarTicon;