## Getting started
npm install react-native-rongim$ npm install react-native-rongim --save
$ react-native link react-native-rongim
###android 补充说明
- 按照融云官网集成IMKit 的步骤,想android 中引入 融云需要的 依赖的相关module
- IMLib IMKit CallKit CallLib
- 即时音视频 需要剔除掉 IMLib 和 CallLib 中libs 目录下 除"armeabi-v7a", "arm64-v8a" 以外的架构.so
```
defaultConfig {
...
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
}
}`
- CallLib 中修改 AndroidManifest.xml 中的相关app keyaidl`
android:value="你的key" />
#### iOS
1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]node_modules
2. Go to ➜ react-native-rongim and add RNRongim.xcodeprojlibRNRongim.a
3. In XCode, in the project navigator, select your project. Add to your project's Build Phases ➜ Link Binary With LibrariesCmd+R
4. Run your project ()<
#### Android
1. Open up android/app/src/main/java/[...]/MainActivity.javaimport com.hy.rongim.RNRongimPackage;
- Add to the imports at the top of the filenew RNRongimPackage()
- Add to the list returned by the getPackages() methodandroid/settings.gradle
2. Append the following lines to :`
`
include ':react-native-rongim'
project(':react-native-rongim').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-rongim/android')
android/app/build.gradle
3. Insert the following lines inside the dependencies block in :`
`
compile project(':react-native-rongim')
javascript
import RNRongim from 'react-native-rongim';// TODO: What to do with the module?
RNRongim;
``