Installation

Install the SDK

npm install @stream-io/feeds-react-native-sdk
# or using yarn
yarn add @stream-io/feeds-react-native-sdk

Install the mandatory peer dependencies

npm install @react-native-community/netinfo
# or using yarn
yarn add @react-native-community/netinfo

GitHub repository: https://github.com/GetStream/stream-feeds-js. Feel free to submit bug reports and feature requests.

The SDK can be used with both JavaScript and TypeScript.

import { useCreateFeedsClient } from "@stream-io/feeds-react-native-sdk";

const client = useCreateFeedsClient({
  apiKey,
  userData: {
    id: "adam",
    // Optional data
    name: "Adam",
    image: "url/to/profile/picture",
  },
  tokenOrProvider: "<string token or token API call>",
  // Optional
  options: {
    timeout: 5000,
  },
});

Supported React versions: >=17.0.0 Supported React Native versions: >=0.73.0 Supported Expo versions: >=51.0.0