{"id":22369417,"url":"https://github.com/superwall/react-native-superwall-archive","last_synced_at":"2025-07-30T19:30:49.609Z","repository":{"id":114540005,"uuid":"601291871","full_name":"superwall/react-native-superwall-archive","owner":"superwall","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-02T17:47:46.000Z","size":456,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-29T16:33:38.505Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superwall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-13T19:04:32.000Z","updated_at":"2024-02-21T21:35:48.000Z","dependencies_parsed_at":"2024-03-18T23:03:49.327Z","dependency_job_id":null,"html_url":"https://github.com/superwall/react-native-superwall-archive","commit_stats":null,"previous_names":["superwall/react-native-superwall-archive"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/superwall/react-native-superwall-archive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwall%2Freact-native-superwall-archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwall%2Freact-native-superwall-archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwall%2Freact-native-superwall-archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwall%2Freact-native-superwall-archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superwall","download_url":"https://codeload.github.com/superwall/react-native-superwall-archive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwall%2Freact-native-superwall-archive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267928939,"owners_count":24167430,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-12-04T19:20:19.573Z","updated_at":"2025-07-30T19:30:49.297Z","avatar_url":"https://github.com/superwall.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-superwall\n\nReact-Native module for Superwall\n\nSee the example folder for a demo or to test your paywalls\n\nNOTE: Currently only supports iOS\\\nSuperwall: https://superwall.com/ \\\nRevenueCat: https://www.revenuecat.com/\n\n## Running the example\nOpen example/App.tsx\\\nUpdate the superwallApiKey var with your Superwall api key\\\nOptional, update the revenueCatApiKey var with your RevenueCat key\\\n\n```sh\nyarn\nyarn example ios\n```\n\n## Installation\nNOTE: Not published to npm.\n\n```sh\nnpm install react-native-superwall\n```\n\n## Usage\n\n### Import\n```js\nimport { initPaywall, trigger } from 'react-native-superwall';\n\nimport {\n  NativeModules,\n  NativeEventEmitter,\n} from 'react-native';\n```\n\n### Event emitter. Listen for Superwall events\n```js\nconst eventEmitter = new NativeEventEmitter(NativeModules.Superwall);\n```\n\n### Initailize Superwall\n```js\ninitPaywall(\u003cYOUR_SUPERWALL_API_KEY\u003e, \u003cOPTIONAL_REVENUECAT_KEY);\n```\n\n### Trigger paywall\n```js\nconst res = await trigger(\u003cCampaign_Name\u003e);\n```\n\n### Listen for analyitics events\n```js\neventEmitter.addListener('superwallAnalyticsEvent', (res) =\u003e {\n  console.log('Superwall event', res?.event, JSON.stringify(res, null, 4));\n});\n```\n\nList of Superwall tracked events: https://github.com/superwall-me/paywall-ios/blob/ed7eb99b839c8eb33479af92b490f2ddcd0d5053/Sources/Paywall/Documentation.docc/AutomaticallyTrackedEvents.md\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\n## TODO\n* [ ] Add event trigger params to superwall, currently nil\n* [ ] Clean up swift code\n* [ ] Publish NMP package\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperwall%2Freact-native-superwall-archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperwall%2Freact-native-superwall-archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperwall%2Freact-native-superwall-archive/lists"}