{"id":26051370,"url":"https://github.com/watanabeyu/react-native-store-version","last_synced_at":"2025-04-06T11:11:02.648Z","repository":{"id":34044903,"uuid":"166973745","full_name":"watanabeyu/react-native-store-version","owner":"watanabeyu","description":"This module check an app's version on google playstore or ios app store.","archived":false,"fork":false,"pushed_at":"2023-10-12T07:18:44.000Z","size":1354,"stargazers_count":129,"open_issues_count":13,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T09:09:32.332Z","etag":null,"topics":["appstore","expo","playstore","react-native","version"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/watanabeyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"watanabeyu"}},"created_at":"2019-01-22T10:21:19.000Z","updated_at":"2024-12-05T15:03:07.000Z","dependencies_parsed_at":"2024-06-19T11:14:46.547Z","dependency_job_id":"39272a37-33a1-4d3c-9eee-d652eef8d5a1","html_url":"https://github.com/watanabeyu/react-native-store-version","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watanabeyu%2Freact-native-store-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watanabeyu%2Freact-native-store-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watanabeyu%2Freact-native-store-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watanabeyu%2Freact-native-store-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watanabeyu","download_url":"https://codeload.github.com/watanabeyu/react-native-store-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"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":["appstore","expo","playstore","react-native","version"],"created_at":"2025-03-08T04:11:23.152Z","updated_at":"2025-04-06T11:11:02.625Z","avatar_url":"https://github.com/watanabeyu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/watanabeyu"],"categories":[],"sub_categories":[],"readme":"# react-native-store-version\n\nThis module check an app's version on google playstore or ios app store.  \nBy writing code successfully, you can make a forced update.\n\nI've only been updating occasionally, but I'd be happy to sponsor you to keep me motivated.\nhttps://github.com/sponsors/watanabeyu\n\n## Installation\n\n```bash\n$ npm install --save react-native-store-version\n```\n\n## CHANGELOG\n\n### v1.4.0\n\n- Sorry for the long wait for an update.\n- fix android.ts by [hussainimdad004](https://github.com/hussainimdad004)\n  - https://github.com/watanabeyu/react-native-store-version/issues/39\n- use prettier\n- move example to [snack](https://snack.expo.dev/@watanabe_yu/react-native-store-version-example)\n\n### v1.3.0\n\n- if failed, throw an error.\n- add result detail.\n\n## Usage\n\n```tsx\nimport checkVersion from 'react-native-store-version';\n\nexport default function App() {\n  useEffect(() =\u003e {\n    const init = async () =\u003e {\n      try {\n        const check = await checkVersion({\n          version: '1.0.0', // app local version\n          iosStoreURL: 'ios app store url',\n          androidStoreURL: 'android app store url',\n          country: 'jp', // default value is 'jp'\n        });\n\n        if (check.result === 'new') {\n          // if app store version is new\n        }\n      } catch (e) {\n        console.log(e);\n      }\n    };\n\n    init();\n  }, []);\n}\n```\n\n## Return value\n\n```jsx\n// correct\n{\n  local: \"1.0.0\",\n  remote: \"1.1.0\",\n  result: \"new\", // \"new\" | \"old\" | \"equal\"\n  detail: \"remote \u003e local\", // \"remote \u003e local\" | \"remote \u003c local\" | \"remote === local\"\n}\n\n// catch error\n{\n  message: \"string\",\n}\n```\n\nresult compare from a `local` to `remote`.  \nIf `local(1.0.0)` and `remote(1.1.0)`, result is new.\n\n## Example\n\n[Check out example on snack](https://snack.expo.dev/@watanabe_yu/react-native-store-version-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatanabeyu%2Freact-native-store-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatanabeyu%2Freact-native-store-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatanabeyu%2Freact-native-store-version/lists"}