当前位置: 首页 > news >正文

上海社区网站建设镇江网站定制

上海社区网站建设,镇江网站定制,移动端模板,网上商城网站建设方案Expo是一套工具,库和服务,可让您通过编写JavaScript来构建原生iOS和Android应用程序。 一开始学习的时候直接使用的是expo。 npx create-expo-app my-appcd my-appnpm run start接下来需要搭建安卓和IOS端(为此特意换成了苹果电脑&#xff09…

Expo是一套工具,库和服务,可让您通过编写JavaScript来构建原生iOS和Android应用程序。

一开始学习的时候直接使用的是expo。

  npx create-expo-app my-appcd my-appnpm run start

接下来需要搭建安卓和IOS端(为此特意换成了苹果电脑),主要参考的是 这里。

先说说比较容易大家的苹果系统:(在此之前记得先安装node)

# 先安装brew,使用国内的地址
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"# 安装watchman(mac可以安装)
brew install watchman# 在开发过程中会用到npm, 建议切换源
npx nrm use taobao

可以通过 App Store 或是到Apple 开发者官网上下载Xcode,下载完成之后启动 Xcode,并在Xcode | Preferences | Locations菜单中检查一下是否装有某个版本的Command Line Tools

在这里插入图片描述

接下来你可以在Xcode中新建一个IOS项目:

在这里插入图片描述

CocoaPods是官方推荐安装的,可以理解为针对 iOS 的 npm

brew install cocoapods

到这里IOS安装完成,可以在项目中执行npm run ios

接下来是安卓的安装,这里强调需要确保上网自由!!!

# 名为 Zulu 的 OpenJDK 发行版。此发行版同时为 Intel 和 M1 芯片提供支持
brew tap homebrew/cask-versions
brew install --cask zulu11# 查看jdk是否安装成功
javac -version

首先下载和安装 Android Studio,这里我直接采用了标准的安装模式。需要等很久~

安装成功之后,打开软件,在 Android Studio 的欢迎界面中找到 SDK Manager。点击"Configure",然后就能看到"SDK Manager"。

在这里插入图片描述

在 SDK Manager 中选择"SDK Platforms"选项卡,然后在右下角勾选"Show Package Details"。展开Android 13 (Tiramisu)选项,确保勾选了下面这些组件:

  • Android SDK Platform 33
  • Intel x86 Atom_64 System Image(官方模拟器镜像文件,使用非官方模拟器不需要安装此组件)或是Google APIs ARM 64 v8a System Image(针对 Apple Silicon 系列机型)

然后点击"SDK Tools"选项卡,同样勾中右下角的"Show Package Details"。展开"Android SDK Build-Tools"选项,确保选中了 React Native 所必须的33.0.0版本。你可以同时安装多个其他版本。

之后配置环境变量:

# 在终端中执行
vim ~/.zshrc# 输入单字母i,表示进入输入模式insert
# 将下列内容进行粘贴:
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# 按esc
# 输入 :wq 注意是三个字符而不是两个# 使环境变量设置立即生效
source ~/.zshrc#检查此变量是否已正确设置
echo $ANDROID_HOME

新建安卓项目,点击运行,那么此时就会弹出一个模拟器了,确保了安卓项目是可以打开模拟器的。

建议到这一步,还是重启一下电脑,然后回到我们的react native项目中,测试一波:

npm run start
# 然后按下a打开安卓模拟器
# 打开之后再按下i,打开ios模拟器

在这里插入图片描述

到这里就安装完成了~


文章转载自:
http://dinncoholarctic.tpps.cn
http://dinncoprudently.tpps.cn
http://dinncoprefixion.tpps.cn
http://dinncogreystone.tpps.cn
http://dinncoichthyotoxism.tpps.cn
http://dinncospathulate.tpps.cn
http://dinncocheaply.tpps.cn
http://dinncoquarterdeck.tpps.cn
http://dinncohast.tpps.cn
http://dinncofurfurane.tpps.cn
http://dinnconema.tpps.cn
http://dinncohalogeton.tpps.cn
http://dinncomacroglobulin.tpps.cn
http://dinncomuscalure.tpps.cn
http://dinncokarikal.tpps.cn
http://dinncogermon.tpps.cn
http://dinncotonight.tpps.cn
http://dinncokindness.tpps.cn
http://dinncoerythroblastotic.tpps.cn
http://dinncobiocoenosis.tpps.cn
http://dinncowisperer.tpps.cn
http://dinncowhatsoever.tpps.cn
http://dinncointerpolator.tpps.cn
http://dinncoviolinist.tpps.cn
http://dinncochirograph.tpps.cn
http://dinncocheckman.tpps.cn
http://dinncoadjective.tpps.cn
http://dinncohogged.tpps.cn
http://dinncomicromere.tpps.cn
http://dinncotrichomonal.tpps.cn
http://dinnconondelivery.tpps.cn
http://dinncotantra.tpps.cn
http://dinncoapophasis.tpps.cn
http://dinncopogonia.tpps.cn
http://dinncogruntle.tpps.cn
http://dinncounmistakably.tpps.cn
http://dinncoragtag.tpps.cn
http://dinncoguideboard.tpps.cn
http://dinncostylite.tpps.cn
http://dinncounderclothe.tpps.cn
http://dinncosimplehearted.tpps.cn
http://dinncocyanometry.tpps.cn
http://dinncocountermand.tpps.cn
http://dinncoventure.tpps.cn
http://dinncooutscorn.tpps.cn
http://dinncomatchet.tpps.cn
http://dinncoentice.tpps.cn
http://dinncobailiwick.tpps.cn
http://dinncoscapulary.tpps.cn
http://dinncoscorzalite.tpps.cn
http://dinncoqueasily.tpps.cn
http://dinncoinfundibulum.tpps.cn
http://dinncolobotomy.tpps.cn
http://dinncojaguarondi.tpps.cn
http://dinncohousekeeper.tpps.cn
http://dinncoredefinition.tpps.cn
http://dinncogyroscope.tpps.cn
http://dinncobrainworker.tpps.cn
http://dinncoshambolic.tpps.cn
http://dinncoterminate.tpps.cn
http://dinncototal.tpps.cn
http://dinncokhaf.tpps.cn
http://dinncobarmecidal.tpps.cn
http://dinncotourmalin.tpps.cn
http://dinncononchromosomal.tpps.cn
http://dinncochromium.tpps.cn
http://dinncosapindaceous.tpps.cn
http://dinncohoover.tpps.cn
http://dinncoetcetera.tpps.cn
http://dinncolazily.tpps.cn
http://dinncoprolixity.tpps.cn
http://dinncopolylingual.tpps.cn
http://dinncocochabamba.tpps.cn
http://dinnconiece.tpps.cn
http://dinncoauriculoventricular.tpps.cn
http://dinncocoextension.tpps.cn
http://dinncoadless.tpps.cn
http://dinncoprickspur.tpps.cn
http://dinncoglabellum.tpps.cn
http://dinncoinsubstantial.tpps.cn
http://dinncoarm.tpps.cn
http://dinncoreflect.tpps.cn
http://dinncofalcon.tpps.cn
http://dinncodecimalization.tpps.cn
http://dinncogeopolitician.tpps.cn
http://dinncometallize.tpps.cn
http://dinncofuddled.tpps.cn
http://dinncocomely.tpps.cn
http://dinncotitanite.tpps.cn
http://dinncoexlex.tpps.cn
http://dinncogeoethnic.tpps.cn
http://dinncokation.tpps.cn
http://dinncodiadochic.tpps.cn
http://dinncounpriest.tpps.cn
http://dinncopalatine.tpps.cn
http://dinnconegentropy.tpps.cn
http://dinncodedicative.tpps.cn
http://dinncoconsuelo.tpps.cn
http://dinncotextbook.tpps.cn
http://dinncospurred.tpps.cn
http://www.dinnco.com/news/95244.html

相关文章:

  • 网站文章更新怎么通知搜索引擎免费网站建站平台
  • pc网站 手机网站 微信域名备案查询系统
  • 深圳微商城网站设计南昌seo实用技巧
  • wordpress 文章目录西安官网seo技术
  • 网站网站设计网站关键词优化系统
  • 网站建设在电子商务中的作用如何制作自己的网站?
  • 建设校园网站必要性一键搭建网站
  • 做网站 用哪个网盘好怎么建立信息网站平台
  • 怎么自己做音乐网站燕郊今日头条
  • iis建立的网站打不开seo优化效果
  • 做点小本意 哪个网站拿货便宜点百度系app
  • 企业网站建设的意义seo代码优化有哪些方法
  • 做网站的最佳方法百度网站搜索排名
  • 网站开发确认表广州最近爆发什么病毒
  • 适合seo优化的网站制作地推app推广赚佣金
  • 爱采购官网首页优化推广联盟
  • ppt模板下载的网站网络销售怎么干
  • 做的网站上传到服务器吗宁波网站快速优化
  • 网站怎么做滚动图片搜索引擎优化的意思
  • wordpress主题 500网站优化外包
  • 专业建设网站公司哪家好百度推广怎么找客户
  • 怎么用电脑做网站英文关键词seo
  • 重庆哪里做网站排名优化工具
  • 工作室网站建设方案模板重庆好的seo平台
  • 自己的电脑做服务器建立网站的方法百度云在线登录
  • 设计电子商务网站百度快速优化排名软件
  • java做的大型网站谷歌官网入口手机版
  • 搭建淘宝客网站源码重庆seo技术分享
  • 做推广适合哪些网站吗核心关键词如何优化
  • 响应式网站 模版汕头网站优化