Installation
NPM
npm install @armiasystems/react-native-armia-chat-sdk
YARN
Yarn add @armiasystems/react-native-armia-chat-sdk
Install the following dependencies
@react-native-firebase/app
@react-native-firebase/auth
@react-native-firebase/database
@react-native-firebase/firestore
@react-native-firebase/storage
mobx
mobx-react,
react-native-animatable,
react-native-device-info
react-native-gesture-handler
react-native-image-picker
react-native-phone-input
react-native-reanimated
react-native-safe-area-context
react-native-screens
react-native-size-matters
react-native-svg
react-native-vector-icons
Install the "@babel/plugin-proposal-decorators": "^7.12.12", in devDependencies
And create .babelrc in project root and add the following code
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
]
]
}
Skip the dependencies that are already installed on your project.
For Firebase setup you need follow this instructions Connect the IOS and Android app to firebase.
STEP 3 - Usage
To use the mobX store
import stores from '@armiasystems/react-native-armia-chat-sdk/src/store';
In App.js
And wap your container under
Now the app is ready to use the features provided by react-native-armia-chat-sdk
Now that everything is set up correctly, lets dive in to a sample application
Setting up a sample application