问题标签 [create-react-native-app]
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.
react-native - React - 原生导航抽屉式导航嵌套导航
目前在我正在构建的 react-native 应用程序中,我有一个包含两个屏幕的 Drawer Navigator。对于导航,我使用的是 react-navigation。 https://reactnavigation.org/docs/intro/
代码如下,
尽管登录位于抽屉导航器中,但我希望登录屏幕没有抽屉导航功能,但主屏幕将登录和主屏幕作为抽屉导航器中的两个选项。但是,现在登录屏幕也有抽屉导航器。有没有办法让登录抽屉导航功能消失?
react-native - 将 Ignite 与 create-react-native-app 一起使用
create-react-native-app
从理论上讲,您似乎应该能够通过执行以下命令来使用 Ignite 及其样板:
然后将样板应用程序代码复制到项目目录中。
现在它create-react-native-app
与 Expo 紧密结合,这并不像预期的那样工作。Ignite 代码会导致 Expo 框架内的各种错误。根据我的阅读,Ignite 依赖项似乎与 Expo 提供的内容冲突。
一个孤独的士兵想出了一个解决世博冲突的办法,但这只是为了世博而不是为了世博create-react-native-app
。此外,我显然更喜欢受支持的解决方案。
create-react-native-app
那么...有没有人在与 Expo 集成的新版本中运行 Ignite 样板?
如果这不可行,你会推荐什么?我认为可以肯定地假设 Ignite 必须更新以支持 Expo,尤其是现在它已经根深蒂固于create-react-native-app
. 如果我今天使用 Ignite 进行开发,当 Ignite 支持它时,我是否能够将我的工作迁移到create-react-native-app
框架中?
谢谢!
macos - 创建 React Native App ScrollView 示例错误
我通过在终端中发出 CreateNative GetStarted 步骤创建了 CRNA 应用程序
这将创建应用程序 AwesomeProject 并且里面是App.js
应用程序的文件。我将此文件的内容替换为有关如何使用位于http://facebook.github.io/react-native/docs/using-a-scrollview.html的 ScrollView 的演示内容
这是我从上面的链接复制的代码
但是,这会在终端显示错误,如下所示,在设备上显示模块./img/favicon.png
未知。我尝试将 img 目录和 favicon.png 文件添加到 AwesomeProject 的根目录以及 node_modules 内部,但错误仍然存在。
请注意,我昨天刚开始学习 ReactNative,我正在一个一个地浏览示例,但是这个 ScrollView 示例失败了。请提供明确的解释如何解决这个问题。
10:13:14 PM: Failed building JavaScript bundle
CRNA 应用程序一启动,终端就会显示“ ”。
node.js - create-react-native npm start 挂起
在成功 create-react-native 之后,我尝试使用 npm start 初始化项目。即使在 2 小时后,它也没有完成加载。基本示例在等待后已经完成了几次,但是当我添加更高级的代码时,它永远不会完成。我使用 npm 4.2.0 和节点 7.10.0。我无法找出 npm start 的作用。需要下载很多吗?如果是这样,我可能知道为什么它永远不会结束,因为我在印度某个偏远的地方,互联网非常糟糕。
....永远挂起
react-native - CRNA project stuck at "Starting packager..."
I can't start any CRNA project because it gets stuck at "Starting packager", I tried many projects but the problem still remains. It always gets stuck at "Starting packager..."
I'm using react-native@0.46.4 and expo@19.0.1 on ubuntu 16.04
PS: I even tried a blank project and starter projects so I think the problem is with CRNA itself.
Note npm shows me an unmet dependency error with expo and react:
I tried these solutions but the problem remains: https://github.com/react-community/create-react-native-app/issues/203
wordpress - How do I use the `fetch()` function in React Native to retrieve posts from WordPress REST API?
I'm using the create-react-app to build an React Native app that would show a list posts from WordPress. I have a problem fetching the data from WordPress. I think I'm not fully understanding how the fetch()
function works.
This is what I have at the moment:
This is the warning that I get:
Possible Unhandled Promise Rejection (id:0)
TypeError: Network request failed
Thanks in advanced for any help :)
node.js - 是否可以将 GetStream.io 与使用 Create React Native App 构建的 React Native 应用程序集成而不弹出?
我正在尝试使用 getstream.io 的客户端功能(特别是提要拉取和实时更新)在使用 react-native 构建的本机应用程序上构建流。当我尝试使用从服务器传递的令牌在 javascript 代码中初始化客户端时,出现错误:
[Error: Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);]
但是,当我添加秘密和 appId 时(出于测试目的,我会非常警惕这样的部署)我收到错误:
[Error: You are publicly sharing your private key. Dont use the private key while in the browser.]
有没有办法让客户端版本使用 Expo(Create React Native App 默认)运行而不从 Create React Native App 弹出?
facebook-login - 如何使用 facebook 登录与 Create-react-native-app
我试图找到一种方法来使用 Facebook 登录和适用于 Android 和 IOS 的 Create-react-native-app。那可能吗?这一切似乎都很新……
reactjs - Unmet peer dependencies for create-react-native-app
I'm trying React Native out using create-react-native-app version 1.0.0. Upon trying to create a new project, I get the following errors and warnings in the middle of the logs:
and
and
What is the proper way to resolve these issues?