kinvey-react-native-sdk
Version:
Kinvey JavaScript SDK for React Native applications.
62 lines (40 loc) • 1.86 kB
Markdown
# Kinvey React Native SDK
The Kinvey React Native SDK is used to develop an React Native application that connects to Kinvey.
## Install
Using npm install the sdk:
```bash
npm i --save kinvey-react-native-sdk
```
#### Install Peer Dependencies
You will need to install the peer dependencies `@react-native-async-storage/async-storage`, `react-native-keychain` and `react-native-inappbrowser-reborn`
```bash
npm i --save @react-native-async-storage/async-storage
```
```bash
npm i --save react-native-keychain
```
```bash
npm i --save react-native-inappbrowser-reborn
```
After installing them, make sure you install the cocoapods for iOS.
```bash
cd ios && pod install && cd ..
```
#### **Optional** Install Push Notification
If you would like your application to receive push notifications you will need to install the peer dependency `react-native-push-notification`.
```bash
npm i --save react-native-push-notification
```
##### For iOS
To receive push notifications on iOS you will need to install `@react-native-community/push-notification-ios`.
```bash
npm i --save @react-native-community/push-notification-ios
```
After installing `@react-native-community/push-notification-ios` make sure you install the cocoapods for iOS.
```bash
cd ios && pod install && cd ..
```
Follow [this guide](https://github.com/react-native-community/react-native-push-notification-ios) to add the needed Push Notification capabilities in Xcode and also to update your `AppDelegate.m` and `AppDelegate.h`.
##### For Android
Setup a Firebase project and download the `google-services.json` file in your `android/app` folder as explained [here](https://firebase.google.com/docs/cloud-messaging/android/client).
Then follow [this guide](https://github.com/zo0r/react-native-push-notification#android-manual-installation) to complete the setup for Android.