推荐一款ReactNative插件——ReactNativeTools

阅读 938
收藏 14
2017-09-06
原文链接:github.com

IntelliJ plugin, to make it easier to execute react-native commands

Guide

  1. install

    1. install form disk

      File -> Settings -> Plugin -> Install plugin from disk -> select ReactNativeTools.jar -> OK -> Restart Intellij/Webstorm

    2. install form repositories

      File -> Settings -> Plugin -> Browser repositories -> Search -> ReactNativeTools -> Install -> Restart Intellij/Webstorm

  2. Tools -> react-native -> run-android, this is equivalent to executing the following command

react-native run-android
  1. Tools -> react-native -> open dev menu, this is equivalent to executing the following command
adb shell input keyevent 82
  1. Tools -> react-native -> start server, this is equivalent to executing the following command
react-native start
  1. Tools -> react-native -> open debugger-ui, this will open the debugger-ui in Chrome

  1. Tools -> react-native -> Start, exec custom command

License

 Copyright © 2016 smuyyh

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 

评论