Feeds v2 has been superseded by Feeds v3.
react-activity-feedis the Feeds v2 React component library. It is no longer maintained. New projects should start on Feeds v3 with@stream-io/feeds-react-sdk(React docs).Moving a v2 app to v3: you start the migration from the Stream Dashboard, and it keeps your v2 and v3 data in sync while you switch your code over. Step by step: Feeds v2 to v3 migration guide. If you use an AI coding agent, Stream's Agent Skills can help:
/stream-feeds-migrationbuilds the migration mapping from your own v2 data, and/stream-docsanswers Feeds v3 questions while you port your code.
React components for Stream Feeds v2 (legacy)
Legacy React components for Stream Feeds v2. For Feeds v3, use
@stream-io/feeds-react-sdk.
You can sign up for a Stream account at Get Started.
Note: The user interface for the activity feed can vary widely across different apps. Most of our activity feed customers integrate with Stream via their backend and build their own UI. This takes advantage of Stream’s scalability while keeping full control over the UI. This library is only updated and improved sporadically.
# with npm
npm install --save react-activity-feed
# with yarn
yarn add react-activity-feedTo find out how to use this library please look at:
- The example project
- The component reference docs
- This basic example if you just want to see some code:
import { StreamApp, StatusUpdateForm, FlatFeed } from 'react-activity-feed';
import 'react-activity-feed/dist/index.css';
// How to create user tokens: https://getstream.io/activity-feeds/docs/node/auth_and_permissions/?language=javascript#user-tokens
const App = () => {
return (
<div style={{ width: '600px', margin: '0 auto' }}>
<StreamApp apiKey="<YOUR_API_KEY>" appId="<YOUR_APP_ID>" token="<TOKEN_FOR_THE_CURRENT_USER>">
<StatusUpdateForm />
<FlatFeed feedGroup="user" notify />
</StreamApp>
</div>
);
};Please refer to i18n docs
BSD-3-Clause © Stream.io Inc.
We've recently closed a $38 million Series B funding round and we keep actively growing. Our APIs are used by more than a billion end-users, and you'll have a chance to make a huge impact on the product within a team of the strongest engineers all over the world.
Check out our current openings and apply via Stream's website.