{"id":13760476,"url":"https://github.com/status-im/clj-rn","last_synced_at":"2025-04-09T18:33:58.073Z","repository":{"id":85456750,"uuid":"133512867","full_name":"status-im/clj-rn","owner":"status-im","description":" A utility for building ClojureScript-based React Native apps","archived":false,"fork":false,"pushed_at":"2019-05-31T16:20:24.000Z","size":26,"stargazers_count":56,"open_issues_count":4,"forks_count":8,"subscribers_count":80,"default_branch":"master","last_synced_at":"2025-04-05T22:17:18.687Z","etag":null,"topics":["clj","clojure","deps","edn","reactnative"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/status-im.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-05-15T12:27:30.000Z","updated_at":"2025-03-24T07:12:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b55464dd-4b36-4adc-85a8-5cff9c2d37b1","html_url":"https://github.com/status-im/clj-rn","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/status-im%2Fclj-rn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fclj-rn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fclj-rn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fclj-rn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/status-im","download_url":"https://codeload.github.com/status-im/clj-rn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248088191,"owners_count":21045664,"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":["clj","clojure","deps","edn","reactnative"],"created_at":"2024-08-03T13:01:11.050Z","updated_at":"2025-04-09T18:33:58.040Z","avatar_url":"https://github.com/status-im.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# CLJ-RN\n\nA utility for building ClojureScript-based React Native apps\n\n## Usage\n\nThis small lib provides ability to start development with just one command and some basic functionality that re-natal has: `enable-source-maps` and `rebuild-index`, which is equivalence of re-natal's `enable-source-maps`, `use-*-device`, `use-figwheel`.\n\n```\nclj -m clj-rn.main help\n\nenable-source-maps  Patches RN packager to server *.map files from filesystem, so that chrome can download them.\nrebuild-index      Generate index.*.js for development with figwheel\nwatch             Start figwheel and cljs repl\nhelp              Show this help\n```\n\n`watch` has the following options:\n```\nclj -m clj-rn.main watch -h\n\n-p, --platform BUILD-IDS [:android]  Platform Build IDs \u003candroid|ios\u003e\n-a, --android-device TYPE           Android Device Type \u003cavd|genymotion|real\u003e\n-i, --ios-device TYPE              iOS Device Type \u003csimulator|real\u003e\n    --[no-]start-app               Start `react-native run-*` or not\n    --[no-]start-figwheel           Start Figwheel or not\n    --[no-]start-cljs-repl           Start cljs repl or not\n    --[no-]start-bundler           Start React Native Metro bundler or not\n-h, --help\n```\n\n## Setup re-natal project\n\n1. Create `deps.edn` file and add `clj-rn` as dependency. More about how to use git libraries here https://clojure.org/guides/deps_and_cli#_using_git_libraries\n2. Create `clj-rn.conf.edn`. See example [clj-rn.conf.example.edn](clj-rn.conf.example.edn)\n3. Run `clj -R:dev -m clj-rn.main watch -p ios -i simulator` to start Figwheel and cljs repl\n\n**Example usage**\n\nRun `watch` task which also starts Figwheel and cljs repl:\n\n```\nclj -R:dev -m clj-rn.main watch -p android,ios -a genymotion -i real\n\n```\n\nStart React Native bundler `react-native start`\n\nNow you can run app `react-native run-android` or `react-native run-ios`\n\n\n## Possible config options\n\n- `:name` Name of your project. The same as in `package.json`\n- `:builds` Dev builds. You can copy it from `project.clj`\n- `:js-modules` List of all used libraries what is required like this `(js/require \"...\")` for ios and android platforms\n- `:desktop-modules` List of all used libraries what is required like this `(js/require \"...\")` for desktop platform\n- `:resource-dirs` Folders with images and other resources\n- `:figwheel-bridge.js\"` re-natal adds this file when you init project. If you don't have it, you can skip this options\n- `:figwheel-options` options for fegwheel server. List of all options https://github.com/bhauman/lein-figwheel/blob/0f62d6d043abb6156393fd167f6c1496c5439689/sidecar/resources/conf-fig-docs/FigwheelOptions.txt\n- `:run-options` Those options will be passed to `react-native run-*`\n\n## Thanks\n\nSpecial thanks to @psdp for the initial implementation. Awesome job!\n\n## License\n\nLicensed under the [Mozilla Public License v2.0](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Fclj-rn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatus-im%2Fclj-rn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Fclj-rn/lists"}