0.0.53 • Published 5 years ago
rn-lm-chat-google v0.0.53
rn-lm-chat
Getting started
$ npm install rn-lm-chat --save
Mostly automatic installation
$ react-native link rn-lm-chat
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜rn-lm-chat
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 ':rn-lm-chat' project(':rn-lm-chat').projectDir = new File(rootProject.projectDir, '../node_modules/rn-lm-chat/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':rn-lm-chat')
Usage
import React, { Component } from "react";
import { Text, View } from "react-native";
import Demo from "rn-lm-chat";
export default class index extends Component {
render() {
return <Demo navigation={this.props.navigation} />;
}
}
0.0.53
5 years ago