{"id":17312176,"url":"https://github.com/robincsl/example-kiwicom-react-native-reverse-geocode","last_synced_at":"2025-03-27T01:24:42.846Z","repository":{"id":115628687,"uuid":"390410095","full_name":"RobinCsl/example-kiwicom-react-native-reverse-geocode","owner":"RobinCsl","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-29T07:46:11.000Z","size":406,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T06:45:40.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RobinCsl.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":"2021-07-28T15:56:11.000Z","updated_at":"2023-03-09T01:31:08.000Z","dependencies_parsed_at":"2023-12-05T12:45:19.577Z","dependency_job_id":null,"html_url":"https://github.com/RobinCsl/example-kiwicom-react-native-reverse-geocode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCsl%2Fexample-kiwicom-react-native-reverse-geocode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCsl%2Fexample-kiwicom-react-native-reverse-geocode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCsl%2Fexample-kiwicom-react-native-reverse-geocode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCsl%2Fexample-kiwicom-react-native-reverse-geocode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinCsl","download_url":"https://codeload.github.com/RobinCsl/example-kiwicom-react-native-reverse-geocode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245762300,"owners_count":20668064,"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":[],"created_at":"2024-10-15T12:42:39.071Z","updated_at":"2025-03-27T01:24:42.828Z","avatar_url":"https://github.com/RobinCsl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example repo for @kiwicom/react-native-reverse-geocode package\n\nTo recreate:\n\n1. Run the following commands:\n```\n$ npx expo init --yarn\n# Choose 'Bare workflow - minimal'\n$ yarn add @kiwicom/react-native-reverse-geocode\n```\n\n2. modify `App.js` with\n\n```js\nimport * as React from 'react';\nimport { Text, View, NativeModules } from 'react-native';\n\nconst { RNReverseGeocode } = NativeModules;\n\nconst region = {\n  latitude: 50,\n  longitude: 14,\n  latitudeDelta: 0.01,\n  longitudeDelta: 0.01,\n};\n\nconst searchText = 'Charles';\nvar jsonData;\n\nconst app = () =\u003e {\n  const [jsonData, setJsonData] = React.useState(null);\n  React.useEffect(() =\u003e {\n    RNReverseGeocode.searchForLocations(\n    searchText,\n    region,\n    (err, res) =\u003e {\n      setJsonData({\n        error: err,\n        addresses: res\n      })\n    }\n  );\n  }, [])\n  return (\n    \u003cView\u003e\n      \u003cText\u003e{JSON.stringify(jsonData)}\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n};\n\nexport default app;\n```\n\n3. Follow the instructions to install `@kiwicom/react-native-reverse-geocode`, i.e.:\n\n- on iOS, install the pods\n  ```sh\n  $ cd ios\n  $ pod install\n  ```\n\n- on Android, I'm not sure, I haven't tested. The log outputs might give you clues how to solve it.\n\nAfter running the app with `yarn ios` (and some time compiling the app if it's the first time the command is run), the following view can be seen in the emulator:\n\n![JSON output of React Native Reverse Geocode](./screenshot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobincsl%2Fexample-kiwicom-react-native-reverse-geocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobincsl%2Fexample-kiwicom-react-native-reverse-geocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobincsl%2Fexample-kiwicom-react-native-reverse-geocode/lists"}