{"id":18498803,"url":"https://github.com/smallcase/react-native-smallcase-gateway","last_synced_at":"2025-07-08T00:12:51.415Z","repository":{"id":38823361,"uuid":"376801282","full_name":"smallcase/react-native-smallcase-gateway","owner":"smallcase","description":"Smallcase gateway sdk in React-native framework","archived":false,"fork":false,"pushed_at":"2025-06-20T10:20:01.000Z","size":37295,"stargazers_count":4,"open_issues_count":8,"forks_count":1,"subscribers_count":5,"default_branch":"development","last_synced_at":"2025-06-26T10:49:43.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/smallcase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-14T11:36:01.000Z","updated_at":"2025-05-05T04:17:54.000Z","dependencies_parsed_at":"2024-01-08T23:27:38.399Z","dependency_job_id":"728f3d58-3262-40eb-9635-2a4d35620640","html_url":"https://github.com/smallcase/react-native-smallcase-gateway","commit_stats":{"total_commits":374,"total_committers":5,"mean_commits":74.8,"dds":0.6764705882352942,"last_synced_commit":"7cf34456daa35b8586f0d5fb7839093983f3ec6a"},"previous_names":[],"tags_count":114,"template":false,"template_full_name":null,"purl":"pkg:github/smallcase/react-native-smallcase-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Freact-native-smallcase-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Freact-native-smallcase-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Freact-native-smallcase-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Freact-native-smallcase-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallcase","download_url":"https://codeload.github.com/smallcase/react-native-smallcase-gateway/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Freact-native-smallcase-gateway/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264048881,"owners_count":23549386,"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":[],"created_at":"2024-11-06T13:42:37.959Z","updated_at":"2025-07-08T00:12:51.391Z","avatar_url":"https://github.com/smallcase.png","language":"Objective-C","readme":"# react-native-smallcase-gateway\n\n[📖 Complete Guide](https://developers.gateway.smallcase.com/docs/react-native-integration)\n\n## Getting started\n\n`$ yarn add react-native-smallcase-gateway`\n\nor\n\n`$ npm install react-native-smallcase-gateway`\n\n## ios setup\n\nadd these lines at the top of your `Podfile`\n\n```ruby\n# private podspec for smallcase\nsource 'git@github.com:smallcase/cocoapodspecs.git'\n\n# default source for all other pods\nsource 'https://cdn.cocoapods.org'\n\n# update the ios version if it was previously below 11.0\nplatform :ios, '11.0'\n```\n\nthen run\n`cd ios; pod update`\n\n## android setup\n\nAdd these lines to your project level `build.gradle`\n\n```groovy\nallprojects {\n    repositories {\n        // .. you other repositories\n        maven {\n          url \"http://artifactory.smallcase.com/artifactory/gradle-dev-local\"\n          credentials {\n            username \"react_native_user\"\n            password \"reactNativeUser123\"\n          }\n      }\n    }\n}\n```\n\nadd these lines in `AndroidManifest.xml` in the main `\u003capplication /\u003e` tag\n\n```xml\n\u003cactivity android:name=\"com.smallcase.gateway.screens.transaction.activity.TransactionProcessActivity\"\u003e\n  \u003cintent-filter\u003e\n    \u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n\n    \u003ccategory android:name=\"android.intent.category.BROWSABLE\" /\u003e\n    \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n    \u003cdata\n      android:host=\"{YOUR_HOST_NAME}\"\n      android:scheme=\"scgateway\" /\u003e\n  \u003c/intent-filter\u003e\n\u003c/activity\u003e\n\n\u003cactivity android:name=\"com.smallcase.gateway.screens.common.RedirectActivity\"\u003e\n  \u003cintent-filter\u003e\n    \u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n\n    \u003ccategory android:name=\"android.intent.category.BROWSABLE\" /\u003e\n    \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n\n    \u003cdata\n      android:host=\"{YOUR_HOST_NAME}\"\n      android:scheme=\"scgatewayredirect\"\n    /\u003e\n  \u003c/intent-filter\u003e\n\u003c/activity\u003e\n```\n\n## Example Usage\n\n```javascript\n// import gateway into your file\nimport SmallcaseGateway from \"react-native-smallcase-gateway\";\n\n// configure environment\nawait SmallcaseGateway.setConfigEnvironment({\n  isLeprechaun: true,\n  isAmoEnabled: true,\n  gatewayName: \"smallcase-website\",\n  environmentName: SmallcaseGateway.ENV.PROD,\n  brokerList: [\"kite\", \"aliceblue\", \"trustline\"],\n});\n\n// initialize session\nawait SmallcaseGateway.init(sdkToken);\n\n// execute a transaction\nconst res = await SmallcaseGateway.triggerTransaction(transactionId);\n\n// start lead generation flow\nSmallcaseGateway.triggerLeadGen({ email: \"test@gmail.com\" });\n```\n\n## Debug / Contribution\n\nMake sure you have react native dev environment set up\n\n### ios\n\n- remove `node_modules` in the root directory\n- run `yarn install` in `example/`\n- run `pod update` in `example/ios`\n- open `SmallcaseGateway.xcworkspace` in xcode\n- run `yarn start` (important to get symlinks to work)\n- run in debug mode\n- in xcode, navigate to Pods \u003e Development Pods \u003e react-native-smallcase-gateway\n- you can now edit these file directly and test the results on the running app\n\n### android without example app\n\n- run `yarn install` in the root directory\n- change directory to `android/`\n- add a file called `gradle.properties`\n- add `artifactory_user` and `artifactory_password`\n- open this folder in android studio\n- let gradle sync complete\n- you can now write code with just the android folder in context\n\n### android with example app\n\n- run `yarn install` in `example/`\n- add a file called `gradle.properties` in `example/android`\n- add these lines\n\n```\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n\nFLIPPER_VERSION=version_string\n\nartifactory_user=sampleUser\nartifactory_password=samplePassword\n```\n\n- run `yarn start` (important to get symlinks to work)\n- run `yarn android` to build example project for android\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Freact-native-smallcase-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallcase%2Freact-native-smallcase-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Freact-native-smallcase-gateway/lists"}