{"id":19561915,"url":"https://github.com/beansoft/react-native-console","last_synced_at":"2025-04-10T05:06:07.661Z","repository":{"id":37701068,"uuid":"85267857","full_name":"beansoft/react-native-console","owner":"beansoft","description":"🧩 an IDEA/WebStorm/Android Studio Plugin for One-Click run React Native commands in embed terminal","archived":false,"fork":false,"pushed_at":"2024-02-07T22:20:20.000Z","size":51124,"stargazers_count":186,"open_issues_count":19,"forks_count":28,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T05:05:59.099Z","etag":null,"topics":["android-studio-plugin","idea-plugin","react-native","webstorm-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beansoft.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}},"created_at":"2017-03-17T03:39:38.000Z","updated_at":"2025-04-04T10:40:44.000Z","dependencies_parsed_at":"2024-02-07T23:37:41.039Z","dependency_job_id":null,"html_url":"https://github.com/beansoft/react-native-console","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2Freact-native-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2Freact-native-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2Freact-native-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2Freact-native-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beansoft","download_url":"https://codeload.github.com/beansoft/react-native-console/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161275,"owners_count":21057555,"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":["android-studio-plugin","idea-plugin","react-native","webstorm-plugin"],"created_at":"2024-11-11T05:12:55.260Z","updated_at":"2025-04-10T05:06:07.630Z","avatar_url":"https://github.com/beansoft.png","language":"Java","readme":"# React Native Console \n\n\nNote:\n\nThis repo only contains the free version source code, also includes code that using the InlayProvider for display \nin code editor to show usages for a JavaScript function.\nYou need to add javascript-openapi.jar and JavaScriptLanguage.jar to this project's dependency and mark it as provided.\n\nMy code is mainly based on IJ source code at com.intellij.codeInsight.daemon.impl.JavaCodeVisionProvider, please use git\nhistory for what's added for this function.\n\nPlease use the react-native-console-free.jar to test in IJ Ultimate or WebStorm with a React or React Native project.\n\nThe preferences will show a JavaScript Inlay option for Usages.\n\nScreenshot:\n![](./screenshot/JSX_hints.png)\n\n----\n\n\nAn IDEA/WebStorm/Android Studio Plugin for run React Native commands, the No.1 WebStorm / IDEA plugin for React Native developers.\n\nhttps://plugins.jetbrains.com/plugin/9564-react-native-console \n\n[![JetBrains Plugins](https://img.shields.io/jetbrains/plugin/v/9564-react-native-console.svg)](https://plugins.jetbrains.com/plugin/9564-react-native-console)\n[![Downloads](https://img.shields.io/jetbrains/plugin/d/9564-react-native-console.svg)](https://plugins.jetbrains.com/plugin/9564-react-native-console) ![Rating](https://img.shields.io/jetbrains/plugin/r/rating/9564)  ![Vistor](https://visitor-badge.glitch.me/badge?page_id=react-native-console)\n\n[Chinese Instruction Here](README_CN.m)\n\n## Installation\nFirst, please setup your React Native dev env:\nhttps://facebook.github.io/react-native/docs/getting-started.html\n\nSecond, you can install it through your IDE, bring up Preferences \u003e Plugins \u003e Browse repositories... , search for '**React Native Console**',\nthen you can install this plugin there.\u003cbr/\u003e\n\nOr\nyou can munally install jar file react-native-console.jar as a plugin to your IDE. And the plugin home page is here: https://plugins.jetbrains.com/plugin/9564-react-native-console\u003cbr/\u003e\u003cbr/\u003e\n\nNow restart IDEA and enjoy!\n\n## Free version\nSince I had little time on the free version plugin, you can download and install from local disk: https://github.com/beansoft/react-native-console/releases/download/2020.3/react-native-console-free.jar\n\n## Note\nJava 8 or plus required to run the IDE.\u003cbr/\u003e\n\n## Settings (Optional, only need if js project dir can't be auto find)\nSpecify js project work directory rather than root directory, eg `./jsapp` , now can from the welcome screen or toolbar to edit this property. And the final value is stored in a file named .idea/.rnconsole, which content should like this:\n\n```json\n{\n  currentPath: './jsapp'\n}\n```\n\nafter that, all npm commands will use this as the working dir.\n\n## Linux Users PLEASE README FIRST\n\nIf you found issue when clicking on the \"Debug Android\" button, error message: \n \"SDK location not found \", please fix it like this:\nadd an android local config file:\nyourapp/android/local.properties\n`sdk.dir=/Users/xxxx/Documents/Java/android-sdk-macosx`\nlet `sdk.dir` point to your ANDROID_HOME environment \nif you can't find adb, try this shell command:\n\n```sh\nsudo ln -s ~/Android/Sdk/platform-tools/adb /usr/bin/adb\n```\n\n\nFor More info, please ref this issue:\nhttps://github.com/beansoftapp/react-native-console/issues/17\n\n\n## Features\n- open current Android activity source code in project\n- run React Native Debugger https://github.com/jhen0409/react-native-debugger(Mac Only)\n- Ctrl + F2 to reload android js bundle\n- list and run scripts in package.json\n- react-native run-android\n- list all connected android devices (includes simulator and physical) and run as target\n- react-native link\n- react-native run-ios\n- run on physical iOS device\n- list all iOS devices(includes simulator and physical) and run as target\n- npm run start\n- npm install\n- Open dev menu on Android device(adb shell input keyevent 82)\n- forward android device request to dev machine(adb reverse tcp:8081 tcp:8081)\n- Android Reloading JavaScript\n- open React Native debugger ui(Chrome browser required)\n- react-native log-android\n- react-native log-ios\n- gradlew assembleRelease\n- react-native bundle --platform android/ios --dev false\n- yarn\n- jest\n- react-native uninstall\n- react-native start\n- gradlew clean\n- react-native react-native-git-upgrade\n- yarn add project, dev, global dependencies\n- npm add project, dev, global dependencies\n- auto install and run react-devtools\n- Last Edit Location(main toolbar)\n- Reveal file in Finder/Explorer(main toolbar)\n- Reveal project folder in Finder/Explorer\n- Specify js project work directory, eg `./jsapp`, from welcome screen or toolbar (optionally, see https://github.com/beansoftapp/react-native-console for more info)\n- Modify Metro Bundler port (need to React Native 0.56+)\n- Auto-detect React Native package.json or build.gradle in current folder and parent/children folder(e.g., only coding Java in Android Studio), thus the command will auto execute in the correct folder\n\n\n\n##Contributors\n\nhttps://github.com/facebook/react-native/commit/33d710e8c58ef1dc69816a59ac1cf390894e7cb9\n\n## ScreenShot\n\n![](https://plugins.jetbrains.com/files/9564/screenshot_17784.png)\n\n## Demo Gif\n![](https://raw.githubusercontent.com/beansoftapp/react-native-console/master/screenshot/rnconsole.gif)\n\n\nThis project is developed using IntelliJ IDEA and WebStorm with a free [JetBrains](https://www.jetbrains.com/?from=ReactNativeConsole) Open Source license.\n \n[![jetbrains](jetbrains.png)](https://www.jetbrains.com/?from=ReactNativeConsole)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeansoft%2Freact-native-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeansoft%2Freact-native-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeansoft%2Freact-native-console/lists"}