SDK Introduction
Build React Native applications with Pipecat’s React Native client library
The Pipecat React Native SDK leverages the Pipecat JavaScript SDK to provide seamless integration for React Native applications. Since the JavaScript SDK is designed to work across both web and React Native platforms, the core functionalities remain the same:
- Device and media stream management
- Managing bot configuration
- Sending actions to the bot
- Handling bot messages and responses
- Managing session state and errors
The primary difference lies in the transport layer, which is tailored to support the unique requirements of the React Native environment.
For example, when using the SDK with React Native, you would install RNDailyTransport
instead of DailyTransport
.
Installation
Install the SDK and a transport implementation (e.g. Daily for WebRTC):
@pipecat-ai/react-native-daily-transport
automatically includes the corresponding version of the JavaScript SDK.If you are using Expo, you will also need to add the following dependencies:
Requirements
This package introduces some constraints on what OS/SDK versions your project can support:
- iOS: Deployment target >= 13
- Android:
minSdkVersion
>= 24
Quick start
Here’s a simple example using Daily as the transport layer:
You can find a basic working example here and a more comprehensive example here.
Explore the SDK
The Pipecat React Native SDK leverages the Pipecat JavaScript SDK for seamless integration with React Native applications. For detailed information, refer to our JavaScript documentation.
Just ensure you use the appropriate transport layer for React Native.