@swathycsv/react-native-armia-chat-sdk
v1.1.7
Published
## Getting started
Downloads
214
Readme
@swathycsv/react-native-armia-chat-sdk
Getting started
$ npm install @swathycsv/react-native-armia-chat-sdk --save
Mostly automatic installation
$ react-native link @swathycsv/react-native-armia-chat-sdk
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-armia-chat-sdk
and addRNArmiaChatSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNArmiaChatSdk.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.reactlibrary.RNArmiaChatSdkPackage;
to the imports at the top of the file - Add
new RNArmiaChatSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-armia-chat-sdk' project(':react-native-armia-chat-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-armia-chat-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-armia-chat-sdk')
Usage
import RNArmiaChatSdk from "@swathycsv/react-native-armia-chat-sdk";
// TODO: What to do with the module?
RNArmiaChatSdk;