0.0.1 • Published 4 years ago

react-native-rainbow-test v0.0.1

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

react-native-rainbow-test

Getting started

$ npm install react-native-rainbow-test --save

Mostly automatic installation

$ react-native link react-native-rainbow-test

Manual installation

iOS

no need link

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add new RNCardViewPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-rainbow-test'
    project(':react-native-rainbow-test').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-rainbow-test/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-rainbow-test')

Usage

example

/**
 * Sample React Native CardView
 *
 */
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import Contacts from 'react-native-rainbow-test';

export default class App extends Component {
    render() {
        return <Contacts networkContactsEnabled={true} />;
    }
}