Skip to main content

LMCreatePostUIRender

LMCreatePostUIRender is a React component that renders the UI elements for creating or editing a post. It provides different UI layouts based on whether the post is in edit mode and whether post details are available. The component also displays a loader while waiting for post details.

LMFeedPostContent

Usage Example

import React from "react";
import { View, Text, TextInput } from "react-native";
import {LMCreatePostUIRender, LMCreatePostAnonymousCheckbox, LMCreatePostTopics, LMCreatePostHeading} from "@likeminds.community/feed-rn-core";

const CreatePostScreen = () => {
return (
<View style={{ flex: 1 }}>
<LMCreatePostUIRender>
{/* Anonymous post checkbox */}
<LMCreatePostAnonymousCheckbox />

{/* post topics section */}
<LMCreatePostTopics />

{/* post heading section */}
<LMCreatePostHeading />

{/* ...other required components*/}
</LMCreatePostUIRender>
</View>
);
};

export default CreatePostScreen;