我正在尝试建立反应原生项目的ios版本,android版本正在运行。我不能让ios版本在mac上运行,尝试使用expo,或者只使用模拟器。 ? 在运行expo start之后,以下是错误: Error: RNFirebase core module was not found natively on iOS, ensure you have correctly included the RNFirebase pod in your projects `Podfile` and have run `pod install`.
Invariant Violation: "main"
我正在尝试显示来自react-native-modalbox的模式框。
下面的代码显示了错误“不变违规:元素类型无效:需要一个字符串或类/函数,但得到的是:未定义的。您可能忘记了从定义组件的文件中导出组件。”
// React
import * as React from "react";
import * as RN from "react-native";
import { connect } from "react-redux";
// Managers
import { StyleManager } from "../../..
技术
React(17.0.2)React Native(0.66.4)TypeScript(4.4.4)Storybook @storybook/react-native(5.3.25)@storybook/react-native-server(5.3.23)
我面对的是什么
在我的故事书中,我面临着下面的反应钩子错误。
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the followin
我在做一个反应本土的项目。我已经安装,链接和使用了很多软件包很长时间。但是现在由npm安装软件包是成功的,它是在package.json添加的,但是当我从包中导入一些功能到我的项目文件时,应用程序崩溃会显示如下消息:
"undefined is not a object (evaluating '_react.PropTypes.array')
"undefined is not a object (evaluating '_react.PropTypes.bool')
"undefined is not a object (
我已经尝试使用在我的应用程序中集成instagram登录,它目前的抛出错误,我已经做了下面的更改,使它工作也试图遵循一个特定的解决方案在,但似乎没有工作,任何帮助将不胜感激。
ERROR Invariant Violation: View config getter callback for component `RCTModalHostView` must be a function (received `undefined`).
This error is located at:
in RCTModalHostView (at Modal.js:258)
in Modal (at I
在我的RN 0.62.2应用程序/Android模拟器中,我正在寻找一种方法来关闭显示图像的模式,只需轻触屏幕,而不是放置关闭按钮。下面是这个应用应该做的事情: 1. an image is displayed on screen
2. clicking the image pops up a modal screen which fill the width of the whole screen.
3. user can zoom in and out of the image on modal screen
4. as soon as a user taps the modal s