{"id":28931480,"url":"https://github.com/ridvanaltun/react-native-critizr","last_synced_at":"2026-04-22T21:38:28.655Z","repository":{"id":57678575,"uuid":"489997516","full_name":"ridvanaltun/react-native-critizr","owner":"ridvanaltun","description":"React Native wrapper for Critizr","archived":false,"fork":false,"pushed_at":"2022-08-18T15:04:24.000Z","size":1289,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T03:18:46.417Z","etag":null,"topics":["critizr","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/ridvanaltun.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-05-08T16:32:19.000Z","updated_at":"2022-08-24T18:18:36.000Z","dependencies_parsed_at":"2022-09-14T03:23:13.056Z","dependency_job_id":null,"html_url":"https://github.com/ridvanaltun/react-native-critizr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ridvanaltun/react-native-critizr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvanaltun%2Freact-native-critizr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvanaltun%2Freact-native-critizr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvanaltun%2Freact-native-critizr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvanaltun%2Freact-native-critizr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ridvanaltun","download_url":"https://codeload.github.com/ridvanaltun/react-native-critizr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvanaltun%2Freact-native-critizr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260857218,"owners_count":23073421,"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":["critizr","react-native"],"created_at":"2025-06-22T16:06:22.925Z","updated_at":"2026-04-22T21:38:28.648Z","avatar_url":"https://github.com/ridvanaltun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-critizr\n\n[![npm version](https://img.shields.io/npm/v/react-native-critizr.svg)](https://npmjs.com/package/react-native-critizr)\n[![npm downloads](https://img.shields.io/npm/dt/react-native-critizr.svg)](https://npmjs.com/package/react-native-critizr)\n[![CircleCI](https://circleci.com/gh/ridvanaltun/react-native-critizr/tree/master.svg?style=shield)](https://circleci.com/gh/ridvanaltun/react-native-critizr/tree/master)\n[![license](https://img.shields.io/npm/l/react-native-critizr.svg)](https://github.com/ridvanaltun/react-native-critizr/blob/master/LICENSE)\n\n\u003e React Native wrapper for Critizr\n\n## Getting started\n\n```sh\nnpm install react-native-critizr\n```\n\n### Additional installation steps\n\n#### Android\n\nThis module does not require any extra step after rebuilding your app.\n\n#### iOS\n\n1. Add the Critizr SDK by adding the following line to your Podfile.\n\n```\npod \"Critizr-ios\", :git =\u003e \"https://github.com/critizr/critizr-ios-pod.git\", :tag =\u003e \"1.2.8\"\n```\n\n2. Then install it\n\n```sh\npod install\n```\n\n3. Fill in the Critizr API Key in the info.plist file before calling methods on the Critizr SDK:\n\n```xml\n\u003ckey\u003eCritizrAPIKey\u003c/key\u003e\n\u003cstring\u003eCritizr API Key\u003c/string\u003e\n```\n\n4. Fill in the Critizr environment in the info.plist file before calling methods on the Critizr SDK (don't forget to replace it with your own):\n\n```xml\n\u003ckey\u003eCritizrEnvironement\u003c/key\u003e\n\u003cstring\u003ePreProduction\u003c/string\u003e\n```\n\nor\n\n```xml\n\u003ckey\u003eCritizrEnvironement\u003c/key\u003e\n\u003cstring\u003eProduction\u003c/string\u003e\n```\n\n## Usage\n\nImporting the library:\n\n```js\nimport Critizr from 'react-native-critizr';\n```\n\nInitiliaze (Only works on Android):\n\n```js\nCritizr.init({\n  apiKey: 'my-secret-api-key',\n  languageCode: 'en',\n});\n```\n\nManage language:\n\n```js\nconst language = await Critizr.getLanguage();\n\nCritizr.setLanguage('fr');\n```\n\nSet user for current instance:\n\n```js\nCritizr.setUser({\n  firstname: 'Michael',\n  lastname: 'Scott',\n  email: 'michael.scott@dundermifflin.com',\n  phone: '0123456789',\n  crmId: '123ABC',\n});\n```\n\nOpen feedback display:\n\n```js\n// you don't have to give any parameter\nCritizr.openFeedbackDisplay();\n\n// show a targeted place\nCritizr.openFeedbackDisplay({ placeId: 'your-place-id' });\n\n//\n// show a targeted place with different modes\n//\n\nCritizr.openFeedbackDisplay({\n  placeId: 'your-place-id',\n  mode: Critizr.FEEDBACK_MODES.START_WITH_FEEDBACK, // default\n});\n\nCritizr.openFeedbackDisplay({\n  placeId: 'your-place-id',\n  mode: Critizr.FEEDBACK_MODES.START_WITH_QUIZ,\n});\n\nCritizr.openFeedbackDisplay({\n  placeId: 'your-place-id',\n  mode: Critizr.FEEDBACK_MODES.ONLY_QUIZ,\n});\n```\n\nOpen store display:\n\n```js\nCritizr.openStoreDisplay('your-place-id');\n```\n\nGet ratings using event listener:\n\n```js\nuseEffect(() =\u003e {\n  const listener = Critizr.addEventListener(\n    Critizr.EVENTS.RATING_RESULT,\n    (e) =\u003e {\n      if (e?.customerRelationship) {\n        setResult(\n          `Customer Relationship: ${e.customerRelationship}, Satisfaction: ${e.satisfaction}`\n        );\n      } else {\n        setResult('Event Rating Error!');\n      }\n    }\n  );\n\n  return () =\u003e listener.remove();\n}, []);\n```\n\nYou can perceive whether the user gives feedback (Only works on Android):\n\n```js\nuseEffect(() =\u003e {\n  const listener = Critizr.addEventListener(\n    Critizr.EVENTS.FEEDBACK_SENT,\n    (_) =\u003e {\n      console.log('User given a feedback!');\n    }\n  );\n\n  return () =\u003e listener.remove();\n}, []);\n```\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridvanaltun%2Freact-native-critizr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fridvanaltun%2Freact-native-critizr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridvanaltun%2Freact-native-critizr/lists"}