0.0.1 • Published 4 years ago
react-native-rainbow-test v0.0.1
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
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
new RNCardViewPackage()
to the list returned by thegetPackages()
method
- 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')
- 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} />;
}
}
0.0.1
4 years ago