我在我的博览应用程序中使用了来自本机基础的组件,但是字体的错误再次激怒了n。请根据我的代码为我提供解决方案,以摆脱这个问题。提前谢谢
错误
--您开始加载字体"Roboto_medium",但在它完成加载之前使用它。
在使用字体之前,需要等待complete.node_modules\react-native\Libraries\YellowBox\YellowBox.js:59:8完成.我们建议在呈现应用程序之前加载所有字体,并在等待加载到errornode_modules\expo\build\environment\muteWarnings.fx.js:27:24 i
我尝试将react原生版本更新为最新版本,从0.59.8到0.60.3。但是,当我试图运行这个应用程序时,我得到了以下错误
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- native-base: https://github.com/GeekyAnts/NativeBase#readme
- react-native-code-push: https://microsoft.github.io/code-push
我在反应项目中使用本地第三方。我得到了以下错误:
error: Error: Unable to resolve module use-subscription from node_modules/native-base/src/core/color-mode/hooks.tsx: use-subscription could not be found within the project or in these directories:
node_modules/native-base/node_modules
node_modules
8 | import type { IH
嗨,我得到了错误,而我是通过命令编译代码,但代码运行使用Android Studio.Below的错误信息
bundling: UnableToResolveError: Unable to resolve module `react-native/Libraries/Renderer/shims/ReactNativePropRegistry` from `/home/rahul/React/Android /trixie/trixie/node_modules/native-base/dist/src/Utils/computeProps.js`: Module does not exis
因为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
我的应用程序包大小是19.7。我决定删除未使用的图标的反应-本机矢量图标。
因此,我在android/app/build.gradle中添加了以下代码
project.ext.vectoricons = [
iconFontNames: [ 'SimpleLineIcons.ttf'] // Name of the font files you want to copy
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
我把它放在前面,前面
apply
我试图站起来和Vue原住民一起滚动,每当我试图导航到初始屏幕之后,我就会遇到同样的错误。
警告: React.createElement: type无效--需要一个字符串(用于内置组件)或一个类/函数(用于复合组件),但got:未定义。您可能忘记从定义在其中的文件中导出组件,或者您可能混淆了默认导入和命名导入。
Check the render method of ReactVueComponent.
in ReactVueComponent (at SceneView.js:17)
in SceneView (at CardStack.js:466)
in RCTView (
当我从github、纱线安装、cd ios & pod安装、cd .、纱线ios .和/或当我运行的时候-本机运行-ios也是:
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
此外,当我在Xcode中打开.xcworkspace时,我得到了错误:
library not found for BugsnagReactNative
package.json是:
{
"name": "proj",
"vers
在删除库@react-native-community/datetimepicker之后,我得到了这个错误,我在react本机应用程序中没有使用它。我尝试过用相同的版本重新安装它,也尝试过更新它,但是没有什么效果。
ERROR Invariant Violation: Tried to register two views with the same name RNCAndroidDialogPicker
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling
我正在尝试使用react导航来实现堆栈导航。当我创建一个堆栈导航const并在我的默认屏幕中调用时,它给了我这个错误。
路由'Main‘应该声明一个屏幕。例如:从‘./ MyScreen’导入MyScreen;主页:{屏幕: MyScreen,}
我的StackNavigation代码在这里
import React from 'react';
import {View, Text } from 'react-native';
import Register from './Register';
import Main from
我已经升级了react-从0.64.1版升级到0.65.0-rc.3版,因为targetSdk=30需要从8月21日开始向Google发布一个包。我正在使用升级信件,现在我收到了./gradlew bundleRelease错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseAssets'.
> Could not resolve all files for configuration ':app:r