在运行npx时获取错误-- Android模拟器中的本机CLI
命令:npx react-native run-android
error: BUILD FAILED in 3s
at makeError (D:\TestProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\TestProject\node_modules\@react-native-community\cli-platform-android\node
我在另一个项目中遇到了问题,它指向了我正在使用的test导航抽屉,所以我决定打开一个测试文件,尝试重新创建这个问题。
我从ran导航网站复制代码并运行它,它给了我这个错误。
ERROR TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplicatio
我试图制作一个简单的动画,在那里我的形象会褪色。
下面的代码我正在导入{useSpring, animated} from 'react-spring'。我创建了简单的useSpring函数logoLoadingScreen。然后,我在图像样式设计中添加了函数,但是没有显示任何动画。
import React from 'react';
import {useSpring, animated} from 'react-spring'
import {View,Text,StyleSheet,Image} from 'react-nativ
来自碎片的卡片组件-react不起作用
当我运行react-native run-android时,会得到一个错误:
未找到div.Help名称的视图配置,谢谢。
import React from "react";
import PropTypes from "prop-types";
import { StyleSheet, Text, View, Alert, Image } from 'react-native';
import { Card } from "shards-react";
class User e
我在浏览器控制台中收到一些错误
Warning: Element: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop.
Warning: Element: `key` is not a prop. Trying to access it will result in `
因为ViewPropTypes已经从“react原生”中删除了,并且使用它的包没有更新。此错误出现在生成应用程序之后。
ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
ERROR Invariant Violation: Module AppRegistry is not a registered callabl
当前行为
使用react-native-tab-view v1.0.0时,出现错误:
Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, o
我建立了一个列表,包括一个搜索表单,用Redux在React.js中按关键字过滤列表。
这是控制器组件的一部分:
const mapStateToProps = (state) => {
// make a sorted array of the keys in the items object
var sortedItems = Object.keys(state.items).sort(function(a, b) {
if(state.items[a].name.toLowerCase() < state.items[b].name.toLow
我试图用reactnative构建一个移动应用程序,并在android仿真器上进行测试,但是当我使用npm运行android程序时,它就失败了。我尝试修改gradle.build文件(将sdk版本升级到31 ..)但什么都不管用。npm安装工作正常,没有任何漏洞。
这是命令的输出:
>react-native run-android
warn Package react-native-vector-icons has been ignored because it contains invalid configuration. Reason: "dependen