Synergy is a social media application to check up on your friends. No ads or sponsorships, just real connections. It is a React Native application designed to provide a seamless experience for users to interact with posts, view profiles, and create new content. It utilizes the GoRest API for fetching and managing user-generated posts and comments.
- Home Screen: Displays a list of posts fetched from the GoRest API, with infinite scrolling.
- Profile Screen: Shows user details, including name, email, gender, and status.
- Post Details Screen: Provides detailed information about a selected post along with its comments.
- New Post Screen: Allows users to create a new post.
- Dark Mode Support: Automatically adjusts UI based on the device's theme settings.
To run the app locally, follow these steps:
-
Clone the repository:
gh repo clone Powerscore/Synergy
-
Navigate to the project directory:
cd Expo/synergy -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Use an emulator or a physical device to run the app.
› Press s │ switch to development build
› Press a │ open Android › Press w │ open web
› Press j │ open debugger › Press r │ reload app › Press m │ toggle menu › shift+m │ more tools › Press o │ open project code in your editor
› Press ? │ show all commands
Or Scan The QR Code From your Expo Go App to preview on your physical device.
- React Native: Cross-platform mobile development framework.
- Expo Router: Navigation and routing solution for React Native.
- Tailwind CSS (twrnc): Styling framework for React Native.
- GoRest API: Provides sample user data and posts.
The app interacts with the GoRest API for fetching and posting data:
- Fetch Posts:
GET https://gorest.co.in/public/v2/posts?page=1 - Fetch Post Details:
GET https://gorest.co.in/public/v2/posts/{id} - Fetch User Profile:
GET https://gorest.co.in/public/v2/users/{user_id} - Create a Post:
POST https://gorest.co.in/public/v2/users/{user_id}/posts
Contributions are welcome! Feel free to submit a pull request or open an issue.







