{"id":20215641,"url":"https://github.com/casdoor/casdoor-react-native-example","last_synced_at":"2026-05-07T10:31:20.987Z","repository":{"id":190640748,"uuid":"682132558","full_name":"casdoor/casdoor-react-native-example","owner":"casdoor","description":"React Native example app for Casdoor based on casdoor-react-native-sdk","archived":false,"fork":false,"pushed_at":"2023-09-27T12:19:17.000Z","size":2332,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-15T07:27:19.984Z","etag":null,"topics":["auth","casdoor","example","iam","oauth","oidc","react","react-native","sdk","sso"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor-react-native-sdk","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casdoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-23T14:07:07.000Z","updated_at":"2023-09-03T13:21:02.000Z","dependencies_parsed_at":"2024-01-29T00:03:16.441Z","dependency_job_id":"ee7217fb-f310-44c3-ad32-c649a2a01ec2","html_url":"https://github.com/casdoor/casdoor-react-native-example","commit_stats":null,"previous_names":["casdoor/casdoor-react-native-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casdoor/casdoor-react-native-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-react-native-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-react-native-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-react-native-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-react-native-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-react-native-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-react-native-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32733377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["auth","casdoor","example","iam","oauth","oidc","react","react-native","sdk","sso"],"created_at":"2024-11-14T06:23:45.586Z","updated_at":"2026-05-07T10:31:20.964Z","avatar_url":"https://github.com/casdoor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casdoor-react-native-example\n\nThis example uses [casdoor-react-native-sdk](https://github.com/casdoor/casdoor-react-native-sdk).\nThis example describes how to use casdoor in [react-native](https://reactnative.dev/).\n\n## Quick Start\n\n- download the code\n\n```bash\n git clone git@github.com:casdoor/casdoor-react-native-example.git\n```\n\n- install dependencies\n```bash \n cd casdoor-react-native-example\n yarn install\n cd ios/\n pod install\n```\n- run on ios\n```bash\ncd casdoor-react-native-example\nreact-native start\nreact-native run-ios\n```\n- run on android\n```bash\ncd casdoor-react-native-example\nreact-native start\nreact-native run-android\n```\n\u003eMake sure to turn on the emulator or real device before running.\n\n## After running, you will see the following  interfaces:\n\n|                           **iOS**                           |                         **Android**                          |\n| :---------------------------------------------------------: | :----------------------------------------------------------: |\n| \u003cimg src=\"./iOS-gif.gif\" alt=\"iOS-gif\" style=\"zoom:30%;\" /\u003e | \u003cimg src=\"./Android-gif.gif\" alt=\"Android-gif\" style=\"zoom: 30%;\" /\u003e |\n\n\n## Configure\n\nInitialization requires 7 parameters, which are all str type:\n| Name         | Must | Description                                            |\n| ------------ | ---- | ------------------------------------------------------ |\n| serverUrl    | Yes  | Casdoor Server Url, such as `https://door.casdoor.com` |\n| redirectPath | Yes  | redirectPath                                           |\n| appName      | Yes  | Application name                                       |\n| clientId     | Yes  | Your client id                                         |\n| organizationName     | Yes  | the name of the Casdoor organization connected with your Casdoor application                    |\n| signinPath     | No  | the path of the signin URL for your Casdoor application, will be `/api/signin` if not provided              |\n\n\n```javascript\n  const sdkConfig = {\n  serverUrl: 'https://door.casdoor.com',\n  clientId: 'b800a86702dd4d29ec4d',\n  appName: 'app-example',\n  organizationName: 'casbin',\n  redirectPath: 'http://localhost:5000/callback',\n  signinPath: '/api/signin',\n};\n```\n\n## License\n\nThis project is licensed under the [Apache 2.0 license](https://github.com/casdoor/casdoor-dotnet-sdk/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-react-native-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-react-native-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-react-native-example/lists"}