
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@trycourier/courier-react-native
Advanced tools
Inbox, Push Notifications, and Preferences for React Native
The Courier React Native SDK provides prebuilt components and TypeScript APIs for adding in-app notifications, push notifications, and notification preferences to your React Native app. It handles authentication, token management, and real-time message delivery across iOS and Android from a single codebase.
npm install @trycourier/courier-react-native
Also available via yarn add @trycourier/courier-react-native.
Requires iOS 15.0+, Android SDK 23+, and Gradle 8.4+. Run cd ios && pod install after installing.
import Courier, {
CourierInboxView,
CourierPreferencesView,
} from "@trycourier/courier-react-native";
// Sign in the user (JWT generated by your backend)
await Courier.shared.signIn({
userId: "user_123",
accessToken: jwt,
});
// Add a prebuilt Inbox component
<CourierInboxView
onClickInboxMessageAtIndex={(message, index) => {
message.read
? Courier.shared.unreadMessage({ messageId: message.messageId })
: Courier.shared.readMessage({ messageId: message.messageId });
}}
style={{ flex: 1 }}
/>
// Add a prebuilt Preferences component
<CourierPreferencesView
mode={{ type: "topic" }}
style={{ flex: 1 }}
/>
For Expo projects, see the Expo setup guide.
Full documentation: courier.com/docs/sdk-libraries/react-native
These are all the available features of the SDK.
| Feature | Description | |
|---|---|---|
| 1 |
Authentication
|
Manages user credentials between app sessions. Required if you would like to use Courier Inbox and Push Notifications.
|
| 2 |
Inbox
| An in-app notification center you can use to notify your users. Comes with a prebuilt UI and also supports fully custom UIs. |
| 3 |
Push Notifications
| Automatically manages push notification device tokens and gives convenient functions for handling push notification receiving and clicking. |
| 4 |
Preferences
| Allow users to update which types of notifications they would like to receive. |
| 5 |
CourierClient
| The base level API wrapper around the Courier endpoints. Useful if you have a highly customized user experience or codebase requirements. |
If you are using Expo, you should check out the Expo Docs for all the details.
Starter projects using this SDK.
| Project Link |
|---|
Example
|
We want to make this the best SDK for managing notifications! Have an idea or feedback about our SDKs? Let us know!
If your workspace uses EU-hosted Courier endpoints, pass the built-in EU preset through apiUrls.
import Courier, { getCourierApiUrlsForRegion } from "@trycourier/courier-react-native";
await Courier.shared.signIn({
userId: "your_user_id",
accessToken: jwt,
apiUrls: getCourierApiUrlsForRegion("eu")
});
FAQs
Inbox, Push Notifications, and Preferences for React Native
The npm package @trycourier/courier-react-native receives a total of 1,078 weekly downloads. As such, @trycourier/courier-react-native popularity was classified as popular.
We found that @trycourier/courier-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.