{"id":13777561,"url":"https://github.com/remobile/react-native-cordova","last_synced_at":"2025-04-13T10:56:59.217Z","repository":{"id":48423971,"uuid":"46388881","full_name":"remobile/react-native-cordova","owner":"remobile","description":"A cordova plugin bridge for react-native","archived":false,"fork":false,"pushed_at":"2021-07-27T04:36:40.000Z","size":65,"stargazers_count":49,"open_issues_count":10,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-13T08:02:04.941Z","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/remobile.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}},"created_at":"2015-11-18T02:11:47.000Z","updated_at":"2024-04-20T04:26:46.000Z","dependencies_parsed_at":"2022-08-24T09:42:56.678Z","dependency_job_id":null,"html_url":"https://github.com/remobile/react-native-cordova","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/remobile%2Freact-native-cordova","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-cordova/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-cordova/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remobile%2Freact-native-cordova/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remobile","download_url":"https://codeload.github.com/remobile/react-native-cordova/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703195,"owners_count":21148117,"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-08-03T18:00:45.278Z","updated_at":"2025-04-13T10:56:59.190Z","avatar_url":"https://github.com/remobile.png","language":"Java","funding_links":[],"categories":["\u003ca name=\"Utility-\u0026-Build-\u0026-Publish:-Native-Modules\"\u003eUtility, Build \u0026 Publish: Native Modules\u003c/a\u003e"],"sub_categories":[],"readme":"# React Native Cordova (remobile)\nA cordova plugin defines for react native on ios and android\n\n## Installation\n```sh\nnpm install @remobile/react-native-cordova --save\n```\n### Installation (iOS)\n* Drag RCTCordova.xcodeproj to your project on Xcode.\n* Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag libRCTCordova.a from the Products folder inside the RCTCordova.xcodeproj.\n* Look for Header Search Paths and make sure it contains $(SRCROOT)/../../../react-native/React as recursive.\n\n* In your project, Look for Header Search Paths and make sure it contains $(SRCROOT)/../../react-native-cordova/ios/RCTCordova.\n* then you can #import \"CDVPlugin.h\"\n\n### Installation (Android)\n* In Main project `build.gradle`\n```gradle\n...\ninclude ':react-native-cordova'\nproject(':react-native-cordova').projectDir = new File(settingsDir, '../node_modules/@remobile/react-native-cordova/android/RCTCordova')\n```\n\n* In you project `build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':react-native-cordova')\n}\n```\n\n* then you can import com.remobile.cordova.* ;\n\n\n## Usage\n### IOS\n```java\n#import \"CDVPlugin.h\"\n...\n@interface CustomClass : CDVPlugin\n@end\n...\n\n@implementation CustomClass\nRCT_EXPORT_MODULE(RCTCustomClass)\nRCT_EXPORT_CORDOVA_METHOD(test);\n...\n- (void) test:(CDVInvokedUrlCommand *)command {\n...\n}\n....\n@end\n```\n### Android\n```java\nimport com.remobile.cordova.*;\n...\npublic class CustomClass extends CordovaPlugin {\n...\n    public CustomClass(ReactApplicationContext reactContext) {\n            super(reactContext);\n        }\n...\n    @Override\n    public String getName() {\n        return \"Sqlite\";\n    }\n    @ReactMethod\n    public void test(ReadableArray args, Callback success, Callback error) {\n        executeReactMethod(\"test\", args, success, error);\n    }\n    ...\n    public boolean execute(String action, JSONArray args, final CallbackContext callbackContext) throws JSONException {\n        if (action.equals(\"test\")) {\n            ....\n            return true;\n        }\n        ....\n        return false;\n    }\n}\n```\n\n\n# Project List\n* [react-native-camera](https://github.com/remobile/react-native-camera)\n* [react-native-contacts](https://github.com/remobile/react-native-contacts)\n* [react-native-dialogs](https://github.com/remobile/react-native-dialogs)\n* [react-native-file-transfer](https://github.com/remobile/react-native-file-transfer)\n* [react-native-image-picker](https://github.com/remobile/react-native-image-picker)\n* [react-native-sqlite](https://github.com/remobile/react-native-sqlite)\n* [react-native-file](https://github.com/remobile/react-native-file)\n* [react-native-zip](https://github.com/remobile/react-native-zip)\n* [react-native-capture](https://github.com/remobile/react-native-capture)\n* [react-native-capture](https://github.com/remobile/react-native-capture)\n* [react-native-local-notifications](https://github.com/remobile/react-native-local-notifications)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremobile%2Freact-native-cordova","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremobile%2Freact-native-cordova","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremobile%2Freact-native-cordova/lists"}