Make sure node version is >= v10.13.0
# Install expo cli, skip if already installed.
yarn global add expo-cli
# Clone the repository
git clone https://github.com/GetStream/react-native-activity-feed.git
# Go to native example directory
cd react-native-activity-feed/examples/native
# Install the npm and pod dependencies
yarn && npx pod-install
Get your Stream API credentials from the user dashboard and make sure your application has these feed groups:
- user (type Flat)
- timeline (type Flat)
- notification (type Notification)
If you followed the React Native tutorial, you already have a pre-configured app on your account that you can use for this project.
mv .env.example .env
Open the .env file in your favorite editor. And fill in the credentials.
yarn run init-data
Copy the line this script outputs and put it in your .env file.
yarn start