react-native-kefuim
v1.3.4
Published
## Getting started
Downloads
6
Readme
react-native-kefuim
Getting started
$ npm install react-native-kefuim --save
Mostly automatic installation
$ react-native link react-native-kefuim
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-kefuim
and addRNKefuim.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNKefuim.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.iwhalecloud.kefuim.RNKefuimPackage;
to the imports at the top of the file - Add
new RNKefuimPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-kefuim' project(':react-native-kefuim').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-kefuim/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-kefuim')
Usage
import React, { Component } from "react";
import { Text, View } from "react-native";
import Demo from "react-native-kefuim";
export default class index extends Component {
render() {
return <Demo navigation={this.props.navigation} />;
}
}