https://github.com/amantiwari57/Ceddit-native
https://github.com/amantiwari57/Ceddit-native
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amantiwari57/Ceddit-native
- Owner: mrcoder57
- Created: 2023-12-29T14:30:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T12:50:41.000Z (over 2 years ago)
- Last Synced: 2024-12-30T01:38:20.385Z (over 1 year ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
React Native Application - Fetching APIs and Basic Structure
This project is a simple React Native application that demonstrates fetching APIs and understanding the basic structure of React Native.
Features
Fetching APIs: The application demonstrates how to fetch data from an API using the fetch function in JavaScript.
Basic Structure: The application showcases the basic structure of a React Native application, including components and state management.
Installation
To install the application, clone the repository and run the following commands:
git clone https://github.com/yourusername/ceddit
cd your-repo-name
npm install
npm start
Usage
The application fetches data from an API and displays it. The API endpoint is defined in the App.js file. You can replace it with your own API endpoint.
Code Examples
Below is an example of how to fetch data from an API in React Native:
In this example, fetch is used to send a GET request to the API. The then method is used to handle the response. The response is converted to JSON, logged to the console, and finally, the loading state is updated.
Troubleshooting
If you encounter any issues, please open an issue in this repository and provide details about the problem.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
#To run the Application :
-git clone https://github.com/mrcoder57/ceddit-native.git
-npm install
-npx expo run