Package Exports
- react-native-grow-sdk-beta
- react-native-grow-sdk-beta/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-grow-sdk-beta) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Grow SDK for React Native v0.0.1
Requirements
- React Native >= 0.60
- iOS version > 11.0
- Cocoapods (iOS)
- Gradle (Android)
Installation of the SDK
To install the package you will use the Terminal application.
From your project root folder install the package with the following command:
$ npm install react-native-grow-sdk
For iOS you need to fetch all dependencies using cocoapods. To do that use the following commands:
$ cd ios
$ pod install
For Android gradle will fetch all required dependencies when building.
Integrate on iOS
From your ios folder find your AppDelegate.m
class. On it include on the top the following imports:
#import <UserNotifications/UserNotifications.h>
#import <GrowSDK/GrowSDK-Swift.h>
Notice: the UserNotifications
needs to be imported before Grow.
Now you need to integrate the SDK nativelly using the official documentation and skipping the initial installation section since that is done already:
https://support.bryj.ai/docs/developer-guides/sdk/ios-sdk-integration-guide
Integrate on Android
To integrate on Android you need to use the official native documentaion, again skipping the initial installation section:
https://support.bryj.ai/docs/developer-guides/sdk/android-sdk-integration-guide/
How to use React Native
On every file you need to use Grow
you need to import using:
import Grow from 'react-native-grow-sdk';
More about React Native on the official documentation:
https://support.bryj.ai/docs/developer-guides/sdk/react-native-sdk-integration-guide/