当我尝试执行npm start时,它可以正常工作,但是当我尝试通过expo运行我的应用程序时,该过程将持续到100%,然后再没有任何反应。我没有得到那儿的确切问题。我在package.json中有以下内容。...请帮助我解决此问题。
{
  "name": "ProMeeting",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "~29.0.0",
    "react-native-scripts": "^1.14.0",
    "react-test-renderer": "16.3.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@babel/preset-react": "^7.0.0-beta.56",
    "expo": "^29.0.0",
    "firebase": "^5.3.1",
    "native-base": "^2.7.2",
    "react": "16.3.1",
    "react-native": "^0.55.4",
    "react-native-firebase": "^4.3.8",
    "react-native-vector-icons": "^5.0.0",
    "react-navigation": "^2.11.2"
  }
}
Run Code Online (Sandbox Code Playgroud) 我目前正在使用react-navigation堆栈和选项卡导航。
每次用户导航到特定屏幕时是否可以重新渲染组件?我想确保componentDidMount()每次到达特定屏幕时都重新运行,因此我通过调用适当的动作创建者从服务器获取最新数据。
我应该考虑哪些策略?我很确定这是一个常见的设计模式,但我没有看到记录的例子。
我正在使用react-native和EXPO CLI来构建android apk文件。但是我无法上传到Play商店。我收到警告消息
警告此版本不符合Google Play 64位要求
以下APK或应用捆绑包可用于64位设备,但它们只有32位本机代码:1。
从2019年8月1日开始,所有发行版都必须符合Google Play 64位要求。
我正在使用的版本
"dependencies": {
    "expo": "^32.0.0",
    "prop-types": "^15.7.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-navigation": "^3.4.1"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },Run Code Online (Sandbox Code Playgroud)
帮我按照Google Play 64位要求构建应用程序捆绑包。
我expo在执行命令后尝试安装,exp start但我得到:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我正在尝试使用 npm start 和 expo 从 ubuntu 上的 github 存储库运行我的本机代码。当我运行 npm start 时,出现以下错误:
“无法确定您的项目使用哪个原生 SDK 版本,因为该模块expo未安装。请安装它yarn add expo并重试。”
我已经尝试过“纱线添加博览会”,但这似乎不起作用,因为我无法让纱线工作并且它无法识别“添加”。我也没有发现关于这个问题的任何东西。有人知道发生了什么吗?
我正在使用并尝试在一个裸项目react native中使用expo ,但是每当我尝试使用命令运行应用程序时,我都会收到此错误:npm run android
Execution failed for task ':expo-modules-core:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':expo-modules-core:androidJdkImage'.
   > Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for JdkImageTransform: /home/dukizwe/Android/Sdk/platforms/android-31/core-for-system-modules.jar.
         > jlink executable /usr/lib/jvm/java-14-openjdk-amd64/bin/jlink does not exist.
Run Code Online (Sandbox Code Playgroud)
我使用的是linux操作系统,Android studio和JDK都已正确安装。
文件夹内部的/usr/lib/jvm/结构如下所示:
我不知道为什么它在java-14-openjdk-amd64文件夹中查找,因为在该文件夹中没有jlink可执行文件。
在android studiosi中SDK Location指向java-11-openjdk. 有什么帮助吗?
我正在尝试使用Expo和Create React Native App为我的React Native应用程序生成.ipa和.apk文件.我成功构建了应用程序,并且能够让它在iOS和Android设备上运行,这要归功于以下文档:https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps. HTML
构建结束后,我的控制台会显示类似的内容
然后exp.host/@myname/myapp我在我的设备上打开,应用程序通过Expo客户端显示.
但是在文档的第4点,据说是这样的
完成后,您将看到.apk(Android)或.ipa(iOS)文件的网址 - 这是您的应用.
我有点困惑.没有在这个过程中我看到我的电脑上任何地方生成的任何ipa或apk文件.我错过了什么吗?我如何实际生成文件?
如何使用react-native链接或如何使用exponent在IOS和Android中手动链接第三方库.
我试图链接react-native-image-crop-picker但无法在exponent中使用.
每当我尝试运行expo start或npm start它的 IP 不是我的 LAN IP 而是我的 WSL2 eth0 IP,这将导致我的手机无法连接到博览会。
我已经尝试REACT_NATIVE_PACKAGER_HOSTNAME使用export命令进行设置,它也会更改与 expo 相关的浏览器中的 ip,但我认为它不会在该 ip 上运行,因为我的手机再次无法连接(我也关闭了防火墙)
对我来说,期望的是能够在我的手机上运行我的世博会代码,而无需使用将使用互联网的隧道选项。
我正在尝试在 Android 模拟器 (Genymotion) 上使用 Expo 设置 Detox 但我遇到了一个无法解决的错误....
我已经安装了必要的软件包:
在官方展会网站上下载了 Exponent.apk
设置我的 package.json :
"detox": {
    "test-runner": "jest",
    "configurations": {
      "android": {
        "binaryPath": "bin/Exponent.apk",
        "build": "npm run android",
        "type": "android.attached",
        "device": {
          "adbName": "192.168.58.101:5555"
        }
      }
    }
  }
Run Code Online (Sandbox Code Playgroud)
在 e2e 文件夹上设置 config.json :
{
    "setupFilesAfterEnv": ["./init.ts"],
    "testEnvironment": "node",
    "reporters": ["detox/runners/jest/streamlineReporter"],
    "verbose": true
}
Run Code Online (Sandbox Code Playgroud)
设置我的 init.ts 文件:
import {cleanup, init} from "detox";
import * as adapter from "detox/runners/jest/adapter";
const config = require("../package.json").detox;
jest.setTimeout(120000);
jasmine.getEnv().addReporter(adapter);
beforeAll(async () => …Run Code Online (Sandbox Code Playgroud) expo ×10
react-native ×10
android ×3
reactjs ×3
npm ×2
64-bit ×1
apk ×1
build ×1
detox ×1
exponentjs ×1
ipa ×1
java ×1
java-11 ×1
javascript ×1
npm-install ×1
sharp ×1