Community Feed

This section shows a list of posts from a community.

Features

Feature

Data Type

Description

targetType

enum

for community feed it should be PostTargetType.CommunityFeed

feedType

enum

possible values FeedType.Published, FeedType.Declined, FeedType.Reviewing

targetId

string

for community feed it should be <communityId>

className

string

custom style classes to be applied to feed

showPostCreator

boolean

show creator of the post

readonly

boolean

make feed readonly

import { FeedType, PostTargetType } from '@amityco/js-sdk'

const CommunityFeed = ({ communityId, currentUserId, isNewCommunity }) => {
return (
            <AmityUiKitFeed
                        targetType={PostTargetType.CommunityFeed}
                        targetId={communityId}
                        feedType={FeedType.Published}
            />
    )
}

Last updated