{"id":48996314,"url":"https://github.com/kuraydev/react-native-modal-data-passing","last_synced_at":"2026-04-18T17:02:09.422Z","repository":{"id":209063208,"uuid":"723136832","full_name":"kuraydev/react-native-modal-data-passing","owner":"kuraydev","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":1,"default_branch":"master","last_synced_at":"2026-03-19T08:28:20.792Z","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/kuraydev.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/kuraydev/react-native-modal-data-passing","commit_stats":null,"previous_names":["wrathchaos/react-native-modal-data-passing","kuraydev/react-native-modal-data-passing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kuraydev/react-native-modal-data-passing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuraydev%2Freact-native-modal-data-passing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuraydev%2Freact-native-modal-data-passing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuraydev%2Freact-native-modal-data-passing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuraydev%2Freact-native-modal-data-passing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuraydev","download_url":"https://codeload.github.com/kuraydev/react-native-modal-data-passing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuraydev%2Freact-native-modal-data-passing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-18T17:02:06.099Z","updated_at":"2026-04-18T17:02:09.403Z","avatar_url":"https://github.com/kuraydev.png","language":"Java","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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuraydev%2Freact-native-modal-data-passing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuraydev%2Freact-native-modal-data-passing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuraydev%2Freact-native-modal-data-passing/lists"}