Knock Expo SDK
Learn more about integrating Knock into your Expo applications through our Expo SDK.
Our @knocklabs/expo
library lets you create in-app notification experiences using Knock's client APIs in applications built with React Native and Expo.
The Expo library is built on top of the @knocklabs/client
JS SDK and includes that library as an implicit dependency.
Installation#
Configuration#
To configure the feed you will need:
-
A public API key (found in the Knock dashboard)
-
A user ID and an auth token
-
If integrating an in-app feed, a feed channel ID (found in the Knock dashboard)
Usage#
You can integrate the feed into your app as follows:
Headless usage#
Alternatively, if you don't want to use our components you can render the feed in a headless mode using our hooks:
Quick links:
Using the Expo SDK it's possible to build:
- Notification feeds that update in real time
- Notification preference control centers
- Push notification management
Example app#
Our Expo SDK example app shows patterns for handling push token registration, building an in-app feed, and managing user notification preferences.
Need help?#
Our Expo SDK is worked on full-time by the Knock JavaScript team.
Join the community#
Ask questions and find answers on the following platforms:
Provide feedback#
- Open an issue
- Use the "Help" dropdown at the top of this page to contact support.
Contributing#
All contributors are welcome, from casual to regular. Feel free to open a pull request.