问题标签 [expo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
firebase - 使用 create-react-native-app 和 firebase 登录 google(使用指数)
通过这段代码。
}
它可以获得用户名警报,但无法通过收到此错误将令牌发送到 Firebase。
请问有什么问题
javascript - 为什么我的 React Native 应用程序无法在我的设备上运行
我希望能够在Expo
(点击保存后用于测试 React Native 代码的 iPhone 应用程序)上测试我的应用程序,但我似乎无法克服我遇到的这个错误Terminal
。我之前运行过我的应用程序Expo
没有任何问题,但现在尝试在我的应用程序中包含导航器后,我得到了一个错误。
首先我这样做:
然后我想在我的应用程序中包含一个导航器,所以我继续这样做:
npm install --save react-navigation
在那之后,为了Expo
跑步,我做了:
npm start
当我这样做时npm start
,我得到这个错误Terminal
:
firebase - 在没有“弹出”项目的情况下在博览会(create-react-native-app)中使用 Firebase google 身份验证的任何方式
作为问题,在 firebase 中使用 google 登录需要设置 google-service 但如果您使用 create-react-native-app 创建新的 react-native 项目,则将没有“android”或“ios”文件夹(接受使用“eject ") 那么,有人对我有什么建议吗?但是我也不知道如何在我的项目中设置 google-service(即使我“弹出”项目)。
android - 无法加载 exp:// 出了点问题
我使用 Expo XDE 创建了一个项目。我检查了这个无法加载 expo 应用程序:出了点问题,但我已经启用了“绘制其他应用程序”。当我扫描此 QR 码时它可以工作https://expo.io/@ajaysaini/first-proj但当我在 XDE 的 android 设备上运行它时它不会。
main.js
当我在设备上运行它时,它在 android 设备上显示以下错误。我多次尝试在 XDE 中重新启动,但对我没有帮助。
错误:
谁能帮我出了什么问题?
encryption - 在 React Native 和 Expo 中加密敏感数据
我正在使用 React Native 和Expo开发移动应用程序,提供安全解决方案。项目所有者希望在应用程序中存储敏感的授权密钥,用于与 REST 服务器联系并访问受保护的数据。他要求至少对这些密钥进行加密,并且尽可能难以从外部读取。
我知道topis:
和 about KeyChain
,但它们不包括加密和博览会问题。
那么,在 React Native Expo应用程序中尽可能保存这些数据的最佳和通用解决方案是什么?
reactjs - React-Navigation 不起作用需要完美的解决方案
我正在使用 React-Navigation 和 expo sdk 创建反应原生应用程序。
这是我的 app.js 页面代码:
在应用程序页面中,我正在导出两个组件名称主页和设置页面
Home.js 页面代码:
Setting.js 页面代码为:
我的问题是我试图在我的应用程序上使用标签导航器,这两个页面名为 Home.js 和 Settings.js 但它不起作用,并且在 expo sdk 加载后打开空白页面(甚至没有错误返回)!谁能告诉我我在这段代码上的错误是什么,或者标签导航器没有出现或显示或工作的问题是什么!!!!
react-native - Why would a react-native alert component render twice when the visibility state was not changed?
I have an alert component that renders twice as soon as I add code to componentWillMount in the main component. The project is an expo project
I've worked around it by setting the property controlling the visibility of the alert component to false and then calling this.startAlert() which changes the visibility state within the componentWillMount procedure. Before the workaround the visibility state was only changed after pressing a button on the dialog.
This works. It shows the alert dialog once. this.startAlert() ; is executed in the promise.
Whereas this fails. The alert component is shown twice. this.startAlert() ; is called outside of the fetch promise.
Why would a react-native alert component render twice when the visibility state was not changed ?
Edit: Code that sets the address.
javascript - 为什么不出现文本输入框?
我想把事情分解成组件。在我的App.js
文件中,我希望看到来自<CreateAccount/>
组件的文本输入框。问题是它给了我一个错误。只要我包含<View></View>
,我的背景就会消失(只有一个白屏),我会在物理设备的左上角看到Email
(从)。placeholder
我想让文本输入框直接位于标题下方My App
。整个 React Native 与常规的 HTML 和 CSS 是如此不同,所以我想知道为什么会在我的情况下发生这种情况,我能做些什么来解决它?
这是App.js
文件:
这是BackGround.js
文件:
这是CreateAccount
文件: