{"id":27208026,"url":"https://github.com/simonedavico/payment-authorization-flow","last_synced_at":"2025-10-08T22:22:21.660Z","repository":{"id":150829397,"uuid":"326759225","full_name":"simonedavico/payment-authorization-flow","owner":"simonedavico","description":"Implementation of a payment authorisation flow for a banking app with React Native, React Navigation and XState. https://medium.com/welld-tech/untangle-complex-flows-in-your-react-native-app-with-xstate-1b11d0b8a91f","archived":false,"fork":false,"pushed_at":"2021-01-04T17:54:49.000Z","size":161,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T23:59:06.989Z","etag":null,"topics":["react-native","react-navigation","xstate"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/simonedavico.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-01-04T17:31:25.000Z","updated_at":"2024-07-26T07:15:26.000Z","dependencies_parsed_at":"2023-04-25T12:47:07.780Z","dependency_job_id":null,"html_url":"https://github.com/simonedavico/payment-authorization-flow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonedavico/payment-authorization-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonedavico%2Fpayment-authorization-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonedavico%2Fpayment-authorization-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonedavico%2Fpayment-authorization-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonedavico%2Fpayment-authorization-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonedavico","download_url":"https://codeload.github.com/simonedavico/payment-authorization-flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonedavico%2Fpayment-authorization-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000782,"owners_count":26082851,"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-10-08T02:00:06.501Z","response_time":56,"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":["react-native","react-navigation","xstate"],"created_at":"2025-04-09T23:59:05.096Z","updated_at":"2025-10-08T22:22:21.656Z","avatar_url":"https://github.com/simonedavico.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payment Authorization flow with XState and React Native\n\nThis repository implements an example payment authorization flow for a banking app implemented with React Native, React Navigation and XState.\n\nIt is provided as example to [this series of blog posts](https://medium.com/welld-tech/untangle-complex-flows-in-your-react-native-app-with-xstate-1b11d0b8a91f). \n\nN.B: **this is not production ready!** It is just meant as an example of how to integrate XState and React Native/React Navigation.\n\n## Project Structure\n\nThe project is an Expo Managed project initialised with the Expo CLI.\nThese are the main files/directories:\n\n```\ncomponents/\npaymentauthorization/\n    screens/\n    machine.js\n    ...\nApp.js\n```\n\n- `components/`: components reused across multiple screens;\n- `paymentauthorization/`: payment authorization flow implementation;\n- `paymentauthorization/screens/`: payment authorization flow screens;\n- `paymentauthorization/machine.js`: XState state machine implementation;\n- `App.js`: main App file\n\n## Building and running the app\n\nRefer to the [instructions](https://docs.expo.io/workflow/development-mode/) for managed workflow in the Expo docs.\n\n- Run on Android emulator: `npm run android`\n- Run on iOS simulator: `npm run ios`\n\nAlternatively, you can simply try it on this [Expo Snack](https://snack.expo.io/@simonedavico/payment-authorization-flow-with-xstate). \nNote that `LocalAuthentication` is unavailable in Snack, so the biometrics enrollment check is stubbed out to always return `true`.\n\n## Notes\n\n- On Android, you would probably want to disable the back hardware button for some screens of the flow.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonedavico%2Fpayment-authorization-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonedavico%2Fpayment-authorization-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonedavico%2Fpayment-authorization-flow/lists"}