我的玩笑脚本在反应-本机-调制解调器上失败了。为什么玩笑在这一点上失败了
误差
● Test suite failed to run
TypeError: Cannot read property 'minor' of undefined
at Object.<anonymous> (node_modules/react-native-modalize/lib/utils/devices.js:20:76)
at Object.<anonymous> (node_modules/react-native-modali
我试图在Android Emulator上运行一个react原生应用程序,但该应用程序在启动后显示此错误。 ? 我不清楚它是在抱怨Android的权限,还是来自expo权限声明为依赖于expo-av和expo-image-picker的其他expo库。 你能帮我一下吗? 这是build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsV
我正在开发一个跨平台应用程序,并希望在android中呈现一个复选框,在IOS中显示一个开关。为此,我试图从下面的页面Platform.select中使用react原生文档中的功能。
import {
Modal,
SwitchIOS,
Platform,
} from 'react-native';
import React from 'react';
import CheckBox from '@react-native-community/checkbox';
class MeetingDisplay e
我正在尝试在现有的React Native项目上设置测试。当我使用Jest运行测试时,测试失败并显示以下错误:
Test suite failed to run
...etc/__app__/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
我见过这个问题被问了好几次,但似乎没有任何答案能解决我的问题(有些答案现在可能已经过时了)
我有一个进程正在使用8081端口,这是我无法杀死的。所以我不得不:
react-native start --port 8082
到目前一切尚好。
关于iOS的问题
当我执行react-native run-ios时,我在终端Port 8081 already in use, packager is either not running or not running correctly.中得到以下错误。我已经看到多个答案在AppDelegate.m中说要更改某些内容,但是在该文件中没有任何声明端口的内容