search
HomeWeb Front-endFront-end Q&AHow to modify the port number in react native
How to modify the port number in react nativeDec 30, 2022 am 10:13 AM
react nativeThe port number

How to modify the port number in react native: 1. Modify the startup command of "package.json" and add the code "--port 8088" after the start command; 2. Manually Add the startup port number as "--port 8088".

How to modify the port number in react native

#The operating environment of this tutorial: Windows 10 system, react-native version 0.68.0, Dell G3 computer.

How to modify the port number in react native?

react native port number is occupied, modify the startup port number

##Preface

This article is based on the "react-native": "0.68.0-rc.3" version.

1. The port is occupied

For example: a rn project has been started, and then another rn project is started (the default port number of the rn project is 8081, which will not automatically Increasingly)


How to modify the port number in react native

2. Modify the startup port number (first method)

The first method is to use a fixed number for each startup Port number, if it is only for temporary use, you can look at the second method.

Modify the startup command of package.json and add the following code after the start command:

 --port 8088

How to modify the port number in react native

3. Modify the startup port number (No. Two methods)

Add it directly after the startup command. Compared with the first method, this requires manually adding the startup port number every time you start it

 --port 8088

How to modify the port number in react native

If this article is helpful to you, I am glad to be able to help you.

Recommended learning: "

react video tutorial"

The above is the detailed content of How to modify the port number in react native. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
udp端口号有哪些udp端口号有哪些Feb 23, 2023 pm 02:00 PM

UDP常用端口号有53、69、161、2049、68、520。UDP使用端口号为不同应用保留各自数据传输通道:1、网络文件系统(NFS),端口号为2049;2、简单网络管理协义(SNMP),端口号为161;3、域名系统(DNS),端口号为53;4、简单文件传输系统(TFTP),端口号为69;5、动态主机配置协议(DHCP),端口号为68;6、路由信息协议,端口号为520等。

UniApp实现React Native应用的开发与上线流程解析UniApp实现React Native应用的开发与上线流程解析Jul 06, 2023 pm 02:37 PM

UniApp实现ReactNative应用的开发与上线流程解析引言:ReactNative是一种基于React的开源框架,可以用JavaScript编写跨平台应用程序。它的目标是通过使用JavaScript和React的优点来构建原生应用。然而,ReactNative并不是唯一的选择,我们还可以使用UniApp来开发跨平台应用。UniApp是一款基于V

使用Go语言和React Native构建跨平台通用应用程序的最佳实践使用Go语言和React Native构建跨平台通用应用程序的最佳实践Jun 17, 2023 am 11:56 AM

随着智能设备的不断普及,越来越多的应用程序需要同时兼容多种不同的平台,例如Android、iOS、Web等。为了满足这样的需求,跨平台开发逐渐成为了一种趋势。而使用Go语言和ReactNative构建跨平台通用应用程序也变得越来越流行。在本文中,我们将分享一些在这一过程中的最佳实践。了解Go语言和ReactNative的基础知识在开始构建跨平台通用应用程

UniApp实现React Native原生组件的扩展与使用方法UniApp实现React Native原生组件的扩展与使用方法Jul 04, 2023 pm 05:49 PM

UniApp是一款基于Vue.js生态的跨平台应用开发框架,它能够将开发者所编写的代码在多个平台上运行,如iOS、Android、H5等。而ReactNative是由Facebook开发的跨平台应用开发技术,它可以使用JavaScript编写代码,然后通过ReactNative的框架将代码转换为各个平台上的原生组件。在UniApp中,我们可以通过扩展Re

【整理分享】一些好用的React Native工具【整理分享】一些好用的React Native工具Apr 17, 2023 pm 07:11 PM

近几年在大前端的开发领域,选择跨端方案的公司和部门越来越多,曾一何时市面有不下10种跨端框架,但随着“生物进化论”的推动,目前市面上仅剩两种主流方案,就是经常听到的 React Native 和 Fl

dhcp端口号是什么dhcp端口号是什么Mar 06, 2023 pm 02:48 PM

DHCP服务的端口号是68和67。dhcp是一个局域网的网络协议,它通常被应用在大型的局域网络环境中,主要作用是集中的管理、分配IP地址,提升地址的使用率。DHCP协议采用UDP作为传输协议,主机发送请求消息到DHCP服务器的68号端口,DHCP服务器回应应答消息给主机的67号端口;这两个端口是正常的DHCP服务端口,可以理解为一个发送,一个接收。

使用Python和React Native构建实时移动应用程序使用Python和React Native构建实时移动应用程序Jun 17, 2023 am 08:43 AM

随着移动设备的普及,越来越多的企业开始关注移动应用开发。使用ReactNative和Python可以轻松地构建高性能的实时移动应用程序。在本文中,我们将探讨如何使用这两种技术来构建实时移动应用程序。ReactNative是一种基于JavaScript的开源框架,可以用于构建移动应用程序。ReactNative具有优秀的性能和易用性,这使得它成为了构建移

php用了哪些端口号php用了哪些端口号Aug 31, 2023 pm 04:44 PM

常用的PHP端口号有HTTP端口号(80)、HTTPS端口号(443)、FTP端口号(21)、SMTP端口号(25)、POP3端口号(110)、IMAP端口号(143)等。详细介绍:1、HTTP端口号(80),通过HTTP端口号,PHP应用程序可以接收和处理来自客户端的HTTP请求;2、HTTPS端口号(443),PHP应用程序可通过HTTPS端口号与客户端建立安全的连接等等。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor