我想用react本机制作一个qrcode读取器,我使用的是暴露,我正在根据这里的官方文档遵循指南:
通过运行react-native-camera成功地安装了npm install react-native-camera --save,控制台中的命令react-native link react-native-camera如下所示,它给出了以下错误:
通过阅读文档,如果发现许多事情都依赖于react-native link (比如react-native link react-native-qrcode-scanner react-native link react-native-permi
我的应用程序在Android Studio上构建得很好,它在react-native run-android上运行得很好,但当我试图生成.apk时,它会用./gradlew assembleRelease命令失败。我得到以下错误。 错误消息 * What went wrong:
Could not determine the dependencies of task ':react-native-camera:compileMlkitReleaseAidl'.
> Could not resolve all task dependencies for configura
我有一个在iOS模拟器上成功运行的react-native项目,然而,当运行react-native run-android时,我得到了以下错误:
error Failed to install the app. Make sure you have the Android development environment set up
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
我已经下载了Android studio,设置了虚拟设备,安装了必要的JDK。
我该如何解决?
我有跟踪错误
error TS7016: Could not find a declaration file for module 'react-native-camera'. '/Users/ilja/Documents/Repositories/blok/node_modules/react-native-camera/index.js' implicitly has an 'any' type.
Try `npm install @types/react-native-camera` if it exists or add a new
我是react-native的初学者,我一直收到类似这样的错误
The SDK Build Tools revision (23.0.1) is too low for project ':react-native-camera'. Minimum required is 25.0.0
在 中对此进行了讨论,答案是为要设置的依赖项(在本例中为react-native-camera)编辑build.gradle
buildToolsVersion "25.0.0"
这是可行的,但随着依赖项数量的增加,它需要大量的人工干预。当npm更新包时,有没有办法自动处理这些
我的同事最近将react-native-camera添加到我的项目中。我合并了代码,当我运行npx react-native run-android时,我的构建失败了,并显示以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':ap
在尝试将我的pod更新到最新版本以便与iOS12.0一起工作时,我一直收到此错误。我已经在网上看到了这个错误的很好的文档,但目前我发现的解决方案似乎都不起作用。
In Podfile:
RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 10.5.0, which depends on
Firebase/CoreOnly (~> 7.4.0)
RNFBAuth (from `../node_modules/@react-native-firebase/au
我试图在<View>组件中显示来自自拍摄像头的摄像头数据,但我经常收到这个错误。我试过重新安装react-native-camera和使用expo-camera,但我完全没有想法。代码:
import {RNCamera, Camera} from 'react-native-camera'
import { View,Text,Screen,Image } from 'react-native';
import Button from 'apsl-react-native-button';
import React from
我试着用Jest测试我的。我的应用程序使用了一些本地模块,我甚至无法运行最初的测试。
我的应用程序使用具有本机依赖关系的组件react-native-camera。
初步测试:
import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-re
安装这个库时,我无法运行项目。我有错误:
What went wrong:
Execution failed for task ':react-native-camera:generateGeneralDebugRFile'.
Could not resolve all files for configuration ':react-native-camera:generalDebugCompileClasspath'.
Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.re
我正在使用构建一个应用程序,这表明最好的安装方式是通过CocoaPods,然而,当我尝试归档我的应用程序时,我遇到了10000个问题。
我想知道在使用时什么是最佳实践,以及如何导入/加载东西,以及是否是Cocoapods,这实际上影响了我的应用程序。
我最终完成了这个步骤,它在模拟器中运行,但是我不确定是否需要在我的程序中引用不同的豆荚,即使我可能会通过npm install安装它们。
任何技巧都会非常感谢,因为我想放弃所有的CocoaPods在一起,试图从零开始安装。
# Uncomment the next line to define a global platform for your
我正在尝试使用react-native-navigation.构建一个新的react原生应用程序。更早的时候,我们有一个应用程序,它使用的是react本机导航的v2.x,我能够正确地使用导航,其中的notch和statusBar被导航正确地处理了。但是使用6.x版本,我无法隐藏statusBar,或者您可以说是在statusBar后面绘制。见下面的截图与旧的和新的应用。
下面是来自MainActivity的代码片段(在应用程序(旧的和新的)中都是相同的)。
public class MainActivity extends NavigationActivity {
@Override