{"id":24510789,"url":"https://github.com/rhdeck/react-native-kotlin-cli","last_synced_at":"2025-03-15T09:41:37.627Z","repository":{"id":104234259,"uuid":"144423336","full_name":"rhdeck/react-native-kotlin-cli","owner":"rhdeck","description":"Global utility to easily create Kotlin-based native modules for React Native","archived":false,"fork":false,"pushed_at":"2018-09-17T20:42:33.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T00:35:42.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rhdeck.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-08-11T23:00:10.000Z","updated_at":"2018-12-05T11:06:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b442c47-277d-465d-a563-3074dd98bbea","html_url":"https://github.com/rhdeck/react-native-kotlin-cli","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/rhdeck%2Freact-native-kotlin-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Freact-native-kotlin-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Freact-native-kotlin-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Freact-native-kotlin-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhdeck","download_url":"https://codeload.github.com/rhdeck/react-native-kotlin-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713397,"owners_count":20335566,"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":"2025-01-22T00:31:02.975Z","updated_at":"2025-03-15T09:41:37.601Z","avatar_url":"https://github.com/rhdeck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-kotlin-cli\n\nGlobal helper for initializing and building Kotlin-based native modules for React Native\n\n# Requirements\n\n- Android Studio 3.1 or later\n- React Native 0.56.0 or newer (have not tested lower than that)\n\n# Install globally for development\n\n_react-native-kotlin-cli_ is a helper utility for initializing new Kotlin-based native modules and UI components.\n\n```bash\nyarn global add react-native-kotlin-cli\n```\n\nTo learn how it works:\n\n```bash\nreact-native-kotlin --help\n```\n\n# How to make a new Swift-based native module\n\n\\_react-native-kotlin lets you quickly create a new kotlin-based native module and get coding.\n\n```bash\nreact-native-kotlin init myproject\n```\n\n# Usage\n\nThis comes with scripts now!\n\n## yarn bridge\n\nAutomatically build the bridge file from Kotlin to React-Native. Uses [react-native-kotlin-bridge](https://github.com/rhdeck/react-native-kotlin-bridge) for the building work - check that out for idiosyncracies.\n\n## yarn watch\n\nWill watch your kt files (in the module) for changes, and rebuild your JS on the fly. Super-handy. Best practice is to run as background process so as not to lock up a terminal:\n\n```bash\nyarn watch \u0026\n```\n\n# Wrapping with a test app\n\nDon't develop native code from your module. Never works well. Best practice is to work from the context of a runnable app.\n\n`react-native-kotlin` makes it easy to create a new almost-blank react-native app and add your kotlin module.\n\n```bash\nreact-native-kotlin makeapp myprojecttest myproject\n```\n\n# Deployment: adding the module to an existing app\n\nYou can add the Swift-based native module to you app relatively easily.\n\n```bash\ncd /path/to/myapp\nyarn add link:/path/to/myproject # local link\n# yarn add @me/myproject # npm registered\n# yarn add meongithub/myproject # github fetch\nyarn add react-native-update-gradle # You probably need to add this to allow kotlin support\nyarn add react-native-fix-android-links # Guarantees your devex if you deploy via a link\nreact-native link\n```\n\nThe _react-native-kotlin_ package will, via react-native link, take care of compatibility between your react native and the Kotlin based component.\n\nDone!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Freact-native-kotlin-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhdeck%2Freact-native-kotlin-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Freact-native-kotlin-cli/lists"}