{"id":18339872,"url":"https://github.com/rnkit/rnkit_verify","last_synced_at":"2025-04-09T20:38:53.343Z","repository":{"id":135844784,"uuid":"117326710","full_name":"rnkit/rnkit_verify","owner":"rnkit","description":"验证码封装","archived":false,"fork":false,"pushed_at":"2018-01-16T03:28:42.000Z","size":3629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-26T00:42:04.963Z","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/rnkit.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-13T08:18:18.000Z","updated_at":"2018-01-13T08:21:28.000Z","dependencies_parsed_at":"2023-06-15T17:00:52.740Z","dependency_job_id":null,"html_url":"https://github.com/rnkit/rnkit_verify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnkit%2Frnkit_verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnkit%2Frnkit_verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnkit%2Frnkit_verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnkit%2Frnkit_verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnkit","download_url":"https://codeload.github.com/rnkit/rnkit_verify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248109286,"owners_count":21049281,"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-05T20:19:40.684Z","updated_at":"2025-04-09T20:38:53.312Z","avatar_url":"https://github.com/rnkit.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n魔蝎 SDK for [React Native][rn].  \n\n## Getting Started\n\nFirst, `cd` to your RN project directory, and then install.  \n\n### iOS\n\n```\n$ yarn add rnkit_moxie\n# or: \n$ npm install -S rnkit_moxie\n\n# then:  \n$ react-native link rnkit_moxie\n```\n\n#### Manually\n1. Add `node_modules/rnkit_moxie/ios/RNKitMoXie.xcodeproj` to your xcode project, usually under the `Libraries` group  \n\n2. Add `libRNKitMoXie.a` (from `Products` under `RNKitMoXie.xcodeproj `) to build target's `Linked Frameworks and Libraries` list  \n\n3. Add `-ObjC` to `Build Settings -\u003e Other Linker Flags`  \n\n4. Add `libz.tbd` to `libBuild phases -\u003e Link Binary With Libraries`  \n\n5. Open the access to albums (some operations need to scan a qrcode): goto `Info.plist` file and add the privacy key according to your requirement:  \n\n\t```\n\tKey: Privacy - Camera Usage Description   \n\tValue: 需要您的同意,才能访问相册\n\t```\n\n### Android\n\n```\n$ yarn add rnkit_moxie\n# or: \n$ npm install -S rnkit_moxie\n\n# then:  \n$ react-native link rnkit_moxie\n```\n\n#### Manually\n\nTODO: \n\n## Usage\n\nexample:  \n\n```\nimport { Platform } from 'react-native';\nimport RNKitMoXie from \"rnkit_moxie\";\nimport { DeviceEventEmitter, NativeEventEmitter } from 'react-native';\n\nconstructor(props) {\n    super(props);\n    this.moxieSubscription\n    this._initMoxie()\n}\n\ncomponentWillUnmount() {\n    if (this.moxieSubscription) {\n        // remember to remove\n        this.moxieSubscription.remove()\n    }\n}\n    \n_initMoxie () {\n    RNKitMoXie.initial('user_id', 'api_key_value')\n    if (Platform.OS === 'ios') {\n        const moxieEmitter = new NativeEventEmitter(RNKitMoXie)\n        this.moxieSubscription = moxieEmitter.addListener('loginDone', (e) =\u003e {\n            this._callbackForMoxie(e)\n        })\n    } else {\n        DeviceEventEmitter.addListener('loginDone', function (e) {\n            this._callbackForMoxie(e)\n        })\n    }\n}\n\n_callbackForMoxie(e) {\n    console.log('receive functionName: ' + e.functionName)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnkit%2Frnkit_verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnkit%2Frnkit_verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnkit%2Frnkit_verify/lists"}