@trycourier/courier-react-native v5.4.3
Requirements & Support
Installation
Using npm
npm install @trycourier/courier-react-native
Using yarn
yarn add @trycourier/courier-react-native
iOS
1. Support iOS 15.0+ in your Project
2. Support iOS 15+ in your Podfile
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p'..
# Courier React Native requires iOS 15+
platform :ios, '15.0' // Add this line
prepare_react_native_project!
..
3. Install the Cocoapods
From the root of your React Native project run
cd ios && pod install
Android
1. Add the Jitpack repository
In your android/build.gradle
make sure your build and repository values are as follows
buildscript {
ext {
// Double check these values
buildToolsVersion = "33.0.0"
minSdkVersion = 23
compileSdkVersion = 33
targetSdkVersion = 33
..
}
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' } // THIS LINE
}
..
}
2. Run Gradle Sync
Your app must support at least gradle 8.4
3. Extend the CourierReactNativeActivity
In your Android project, change your MainActivity
to extend the CourierReactNativeActivity
.
This allows the Courier SDK to manage the current user between app sessions.
import com.courierreactnative.CourierReactNativeActivity;
public class MainActivity extends CourierReactNativeActivity {
..
}
Getting Started
These are all the available features of the SDK.
Example Projects
Starter projects using this SDK.
Share feedback with Courier
We are building the best SDKs for handling notifications! Have an idea or feedback about our SDKs? Here are some links to contact us:
6 months ago
5 months ago
5 months ago
5 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
11 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago