1.0.2 • Published 4 years ago

react-native-cardview-demo v1.0.2

Weekly downloads
11
License
-
Repository
-
Last release
4 years ago

react-native-cardview-demo

Getting started

$ npm install react-native-cardview-demo --save

Mostly automatic installation

$ react-native link react-native-cardview-demo

Manual installation

Android

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

Usage

import RNCardview from 'react-native-cardview-demos';

// TODO: What to do with the module?
RNCardview;