{"id":21005682,"url":"https://github.com/mmendesas/sdk-bridge","last_synced_at":"2026-05-16T11:03:33.185Z","repository":{"id":229141802,"uuid":"716343384","full_name":"mmendesas/sdk-bridge","owner":"mmendesas","description":"Communication between web and native side using react-native","archived":false,"fork":false,"pushed_at":"2023-11-08T23:59:02.000Z","size":2462,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-20T10:26:55.104Z","etag":null,"topics":["react-native","react-native-webview","react-native-webview-bridge","sdk-bridge"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mmendesas.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}},"created_at":"2023-11-08T23:58:27.000Z","updated_at":"2024-08-27T14:23:49.000Z","dependencies_parsed_at":"2024-03-22T09:02:46.940Z","dependency_job_id":"ea707b99-4619-4e11-9a19-3b9fb5bad071","html_url":"https://github.com/mmendesas/sdk-bridge","commit_stats":null,"previous_names":["mmendesas/sdk-bridge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fsdk-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fsdk-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fsdk-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fsdk-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmendesas","download_url":"https://codeload.github.com/mmendesas/sdk-bridge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428421,"owners_count":20289315,"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":["react-native","react-native-webview","react-native-webview-bridge","sdk-bridge"],"created_at":"2024-11-19T08:47:48.837Z","updated_at":"2025-10-15T02:28:49.882Z","avatar_url":"https://github.com/mmendesas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDK BRIDGE\n\n\u003c!-- Title --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/expo/examples\"\u003e\n    \u003cimg alt=\"create-react-native-app\" src=\"docs/sdk_bridge_overview.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eSDK Bridge implementation using React Native\u003c/b\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n\u003c!-- Body --\u003e\n\n### Getting Started\n\nYou have to run two different projects in order to see it running locally\n\n- `mobile:`\n\n  - `adb reverse tcp:5173 tcp:5173`: enable web-app port\n  - `npx react-native run-android`: run native app inside android emulator\n\n- `web:`\n\n  - `yarn dev: ` will start a React web-app on [localhost:5173](http://localhost:5173/)\n\nOnce you're up and running you can play with it, here are some examples\n\n| success                                                          | error (declined)                                                  |\n| ---------------------------------------------------------------- | ----------------------------------------------------------------- |\n| \u003cimg src=\"docs/success_flow.gif\" width=\"250px\" height=\"500px\" /\u003e | \u003cimg src=\"docs/declined_flow.gif\" width=\"250px\" height=\"500px\" /\u003e |\n\n### Features\n\n- Communication between native-app (`inapp-sdk`) and webapp (`web-sdk`)\n- Sample webstore to simulate purchase flow\n- Simulated purchase authentication flow\n- Expiration timer to simulate wait for user action\n- State transition using XState (state machine)\n\n### How it works\n\n- Webstore was implemented on `native side` (green screens)\n- Authentication flow was implemented on `web side` (pastel colors screens)\n- When a user press the buy button, we load the web app inside `webview`\n- From `web-sdk` we tell `inapp-sdk` to open/closes fullscreen mode\n\n## Built With\n\n- `web`\n\n  - [Vite](https://vitejs.dev/) - Next Generation Frontend Tooling\n  - [React.js](https://react.dev/)  - The library for web and native user interfaces\n  - [XState](https://xstate.js.org/) - State machines and statecharts for the modern web.\n\n- `mobile`\n\n  - [React-Native](https://reactnative.dev/)  - Learn once, write everywhere\n  - [React-Native-Webview](https://github.com/react-native-webview/react-native-webview) - React Native Cross-Platform WebView\n\n## Author\n\n- **Marcio Mendes** - [mmendesas](https://github.com/mmendesas)\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmendesas%2Fsdk-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmendesas%2Fsdk-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmendesas%2Fsdk-bridge/lists"}