{"id":26327381,"url":"https://github.com/dev-chief/react-native-ci","last_synced_at":"2025-03-15T20:18:47.825Z","repository":{"id":38910000,"uuid":"247333117","full_name":"dev-chief/react-native-ci","owner":"dev-chief","description":"Connection Native Modules c++ with React Native \u003e 0.60 (Android and IOS)","archived":false,"fork":false,"pushed_at":"2023-01-26T18:38:22.000Z","size":1715,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-21T11:09:57.314Z","etag":null,"topics":["bridge","cxxmodule","javascript","jni"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dev-chief.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":"2020-03-14T18:39:21.000Z","updated_at":"2021-03-30T11:30:17.000Z","dependencies_parsed_at":"2023-02-04T01:32:16.926Z","dependency_job_id":null,"html_url":"https://github.com/dev-chief/react-native-ci","commit_stats":null,"previous_names":["dev-chief/react-native-ci"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chief%2Freact-native-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chief%2Freact-native-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chief%2Freact-native-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chief%2Freact-native-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-chief","download_url":"https://codeload.github.com/dev-chief/react-native-ci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243785171,"owners_count":20347426,"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":["bridge","cxxmodule","javascript","jni"],"created_at":"2025-03-15T20:18:47.264Z","updated_at":"2025-03-15T20:18:47.810Z","avatar_url":"https://github.com/dev-chief.png","language":"JavaScript","readme":"# React native C++ Native Modules (Android version)\n\n\nConnect Native Modules C++ in React Native \u003e 0.60.\n\n[![N|Solid](https://hackernoon.com/hn-images/1*q16vcoe7CRolZLOCoG5_Pg.png)](https://nodesource.com/products/nsolid)\n\n[![Android 10](https://github.com/dev-event/react-native-ci/blob/master/screenshot/src1.jpg)\n\n[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://github.com/dev-event/react-native-ci)\n\nThere is a more straitforward way to connect C++ in React Native.\nThe CxxModule is it, and there is a sample as well.\nUnfortunately, setup CxxModule on Android right now is getting a little difficult.\nModules allow you to do:\n  - Encryption\n  - Image Processing\n  - and other...\n\nAnd you are willing to do a little extra work you can use [Djinni](https://github.com/sulewicz/djinni-react-native).\nDjinni is a codegen for different languages, but there still some overhead.\n\nEspecially on Android, a JS call might be in such flow:\nJS -\u003e RNBridge in JS VM -\u003e JNI -\u003e Android VM -\u003e Java NativeModule -\u003e JNI -\u003e C++\nThe back and forth between JNI is redundant and wasted in command serialization/deserialzation.\n\nThis project generates interface bindings for Objective-C and Java. Once you create the wrapper code for C++, you can create Java and Objective-C classes that integrate with React Native. Thus React will call Obj-C/Java which will call C++. Profit.\n\n\n### Installation\n\nReact Native version  \u003e 0.60\n\n```sh\n$ yarn install\n```\n### Documentation\n\nUse data from a table to convert values.\n\n| Plugin | README |\n| ------ | ------ |\n| jsArgAsBool |(args, 0) |\n| jsArgAsInt | (args, 1) |\n| jsArgAsDouble | (args, 2) |\n| jsArgAsString | (args, 3) |\n| jsArgAsArray | (args, 4) |\n|jsArgAsObject | (args, 5) |\n\n\n\n#### Telegram : dev_event\n\n\nLicense\n----\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-chief%2Freact-native-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-chief%2Freact-native-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-chief%2Freact-native-ci/lists"}