GithubHelp home page GithubHelp logo

leecade / react-native-debug-server-host Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xuwening/react-native-debug-server-host

0.0 3.0 0.0 199 KB

React Native Debug server host for iOS

Objective-C 96.61% Python 1.17% Java 0.74% JavaScript 1.48%

react-native-debug-server-host's Introduction

Debug Server Host For iOS

React Native服务器地址更换

运行时更换服务器地址,不用为更换调试服务器地址而频繁打包。android调试状态有更换服务器地址功能,而iOS不具备此功能,本库就是为iOS提供此功能。

安装

直接将DebugServerHost文件夹添加到项目中即可,无需任何设置。

使用

模拟器使用Command+D,真实设备使用摇一摇即可唤出调试菜单,选择最后一项Debug server host就可以修改服务器地址了。

有两种方式修改服务器地址:

  1. 手工输入地址
  2. 二维码扫描地址

推荐将url生成二维码,使用二维码扫描代替手工输入,点击OK时自动reload新服务器地址页面。

例如需要替换的服务器Url: http://110.110.10.110:8081/index.ios.bundle?platform=ios&dev=true,使用二维码生成工具将此Url生成二维码。使用调试工具中的Input URL with QRScan打开二维码扫描工具,扫描识别后自动填充到地址框,确认没有问题后点击OK,自动reload加载新地址。

运行Demo

Demo目录是React Native默认工程环境,用于演示DebugServerHost,删除了比较大的node_modules目录,但保留了package.json。

执行:npm install即可安装node_modules,打开iOS工程运行。

react-native-debug-server-host's People

Contributors

xuwening avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.