0.0.53 • Published 5 years ago

rn-lm-chat-google v0.0.53

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

rn-lm-chat

Getting started

$ npm install rn-lm-chat --save

Mostly automatic installation

$ react-native link rn-lm-chat

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesrn-lm-chat and add RNKefuim.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNKefuim.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. 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 the getPackages() method
  1. 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')
  2. 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} />;
  }
}