{"id":18326434,"url":"https://github.com/limoer96/react-native-update-version","last_synced_at":"2025-10-30T18:32:47.101Z","repository":{"id":60238101,"uuid":"540350554","full_name":"Limoer96/react-native-update-version","owner":"Limoer96","description":"Download and update react-native app on android \u0026 iOS, customize your own UI.","archived":false,"fork":false,"pushed_at":"2023-01-11T06:41:37.000Z","size":526,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T22:58:19.084Z","etag":null,"topics":["android","kotlin","kotlin-android","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Limoer96.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-23T08:37:57.000Z","updated_at":"2025-08-17T01:55:39.000Z","dependencies_parsed_at":"2023-02-09T02:01:17.664Z","dependency_job_id":null,"html_url":"https://github.com/Limoer96/react-native-update-version","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Limoer96/react-native-update-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Limoer96%2Freact-native-update-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Limoer96%2Freact-native-update-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Limoer96%2Freact-native-update-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Limoer96%2Freact-native-update-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Limoer96","download_url":"https://codeload.github.com/Limoer96/react-native-update-version/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Limoer96%2Freact-native-update-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274935492,"owners_count":25376830,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","kotlin","kotlin-android","react-native"],"created_at":"2024-11-05T19:06:55.637Z","updated_at":"2025-10-30T18:32:47.017Z","avatar_url":"https://github.com/Limoer96.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-update-version\n\nDownload and update react-native app on android \u0026 iOS, customize your own UI.\n\n## Installation\n\n```sh\nnpm install rn-update-version\n# or\nyarn add rn-update-version\n```\n\n### Setup\n\n\u003e In Xcode `info.plist` add `LSApplicationQueriesSchemes` and set value as array type included `itms-apps` to open `AppStore`.\n\n## Usage\n\n```tsx\nimport UpdateVersion from 'rn-update-version';\n\n// ...\nconst [percent, setPercent] = React.useState(0);\nconst [errorMessage, setErrorMessage] = React.useState('');\n// for Android\nUpdateVersion.update({ url: MOCK_URL });\n// for iOS\nUpdateVersion.update({ appleId: '444934666' });\n// android only\nUpdateVersion.cancel();\n// android only\nuseEffect(() =\u003e {\n  const remove = UpdateVersion.listen(\n    (payload) =\u003e {\n      setPercent(payload.percent);\n    },\n    (info) =\u003e {\n      setErrorMessage(info.message!);\n    }\n  );\n  return remove;\n}, []);\n```\n\n\u003e or use `useUpdateVersion` hook\n\n```tsx\nimport { useUpdateVersion } from 'rn-update-version';\n// ...\nconst { update, cancel, progress, errorMsg } = useUpdateVersion();\n```\n\n## API\n\n### update(config: UpdateConfig)\n\n\u003e Start update action, donwload and install app.\n\n### cancel\n\n\u003e Cancel the update process.\n\n### listen(onProgress: (payload: ProgressPayload) =\u003e void,onError?: (payload: ErrorPayload) =\u003e void)\n\n\u003e Event listeners during the update process.\n\n### useUpdateVersion\n\n\u003e React hooks for the update process.\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimoer96%2Freact-native-update-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimoer96%2Freact-native-update-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimoer96%2Freact-native-update-version/lists"}