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.
GitHub File:

Usage Example
import React from "react";
import { View, Text, TextInput } from "react-native";
import {LMCreatePostUIRender, LMCreatePostAnonymousCheckbox, LMCreatePostTopics, LMCreatePostHeading, CreatePost} from "@likeminds.community/feed-rn-core";
const CustomCreatePostScreen = () => {
return (
<CreatePost>
<LMCreatePostUIRender>
{/* Anonymous post checkbox */}
<LMCreatePostAnonymousCheckbox />
{/* post topics section */}
<LMCreatePostTopics />
{/* post heading section */}
<LMCreatePostHeading />
{/* ...other required components*/}
</LMCreatePostUIRender>
</CreatePost>
);
};
export default CustomCreatePostScreen;
- Use the
CreatePostScreen
component with all other create post components as a child of theCreatePost
component in the relevant screens: