{"id":17700918,"url":"https://github.com/wrathchaos/react-native-modal-data-passing","last_synced_at":"2025-03-31T02:29:11.907Z","repository":{"id":209063208,"uuid":"723136832","full_name":"WrathChaos/react-native-modal-data-passing","owner":"WrathChaos","description":"Seamless Data Passing to React-Native-Modal","archived":false,"fork":false,"pushed_at":"2023-11-24T20:27:49.000Z","size":347,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T07:31:24.968Z","etag":null,"topics":["android","apple","data","data-passing","google","hook","ios","modal","react","react-native","react-native-modal","useimperativehandle"],"latest_commit_sha":null,"homepage":"https://freakycoder.com/react-native-notes-34-seamless-data-passing-to-react-native-modal-ef3b47b0e608","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WrathChaos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T19:33:13.000Z","updated_at":"2023-12-06T02:38:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"5109dbdd-a3da-4d8f-a47a-fd8bc5516456","html_url":"https://github.com/WrathChaos/react-native-modal-data-passing","commit_stats":null,"previous_names":["wrathchaos/react-native-modal-data-passing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-modal-data-passing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-modal-data-passing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-modal-data-passing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-modal-data-passing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WrathChaos","download_url":"https://codeload.github.com/WrathChaos/react-native-modal-data-passing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246406157,"owners_count":20771893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apple","data","data-passing","google","hook","ios","modal","react","react-native","react-native-modal","useimperativehandle"],"created_at":"2024-10-24T17:43:38.958Z","updated_at":"2025-03-31T02:29:11.884Z","avatar_url":"https://github.com/WrathChaos.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# React-Native-Modal-Data-Passing\n\nThis repository contains the example code that complements the Medium article titled [\"React Native Notes 34: Seamless Data Passing to React-Native-Modal\"](https://freakycoder.com/react-native-notes-34-seamless-data-passing-to-react-native-modal-ef3b47b0e608). The project demonstrates the use of the `useImperativeHandle` hook to pass data to a modal with `react-native-modal`.\n\n## Overview\n\nIn this example, we showcase a pattern for dynamically updating the content of a modal in a React Native application. By leveraging the `useImperativeHandle` hook along with `forwardRef`, we enable parent components to invoke methods on the modal component's ref, allowing for the passing of data directly before the modal is made visible.\n\n## Getting Started\n\nTo run this project on your machine, follow these steps:\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/your-username/react-native-modal-data-passing.git\n   ```\n2. Navigate to the project directory:\n   ```sh\n   cd react-native-modal-data-passing\n   ```\n3. Install the dependencies:\n   ```sh\n   npm install\n   ```\n   or if you use Yarn:\n   ```sh\n   yarn\n   ```\n4. Run the project:\n   ```sh\n   npx react-native run-android\n   ```\n   or for iOS:\n   ```sh\n   npx react-native run-ios\n   ```\n\n## Features\n\n- Use of `forwardRef` and `useImperativeHandle` hooks for functional component communication.\n- Demonstration of dynamically passing data to a modal upon opening.\n\n## Contributing\n\nIf you wish to contribute to this project or have any suggestions/fixes, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.\n\n## Acknowledgments\n\n- A special thanks to the readers and supporters of the Medium article that inspired this example project.\n- The React Native community for continuous collaboration and support.\n\n## Find Me on Medium\n\nCheck out my [Medium profile](https://freakycoder.com/react-native-notes-34-seamless-data-passing-to-react-native-modal-ef3b47b0e608) for more articles on React Native and mobile development.\n\nHappy Coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-modal-data-passing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrathchaos%2Freact-native-modal-data-passing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-modal-data-passing/lists"}