标签: create-react-native-app

将Ignite与create-react-native-app一起使用

从理论上讲,您似乎应该能够create-react-native-app通过执行以下命令来使用Ignite及其样板:

ignite attach
ignite add ir-boilerplate
Run Code Online (Sandbox Code Playgroud)

然后将样板应用程序代码复制到项目目录中.

现在create-react-native-app,这与世博会紧密结合,这不符合预期.Ignite代码会导致Expo框架中出现各种错误.从我的阅读来看,似乎Ignite依赖与Expo提供的内容相冲突.

一个单独的士兵一起攻击世博会冲突的解决方案,但这只是为了世博而不是create-react-native-app.此外,我显然更喜欢更受支持的解决方案.

所以...有没有人在新的create-react-native-app集成了Expo 的Ignite样板中运行?

如果这不可行,你会推荐什么?我认为可以安全地假设Ignite必须更新以支持Expo,特别是现在它已根深蒂固create-react-native-app.如果我今天使用Ignite进行开发,那么create-react-native-app当Ignite支持时,我是否可以将我的工作迁移到框架中?

谢谢!

react-native expo create-react-native-app

6
推荐指数
1
解决办法
2583
查看次数

运行create-react-native-app测试时出现FSEvents错误

我正在运行时,下面的错误yarn run testcreate-react-native-app:

$ yarn run test
yarn run v1.0.1
$ node node_modules/jest/bin/jest.js --watch
2017-09-13 14:53 node[2839] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2017-09-13 14:53 node[2839] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2017-09-13 14:53 node[2839] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2017-09-13 14:53 node[2839] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1022:11) …
Run Code Online (Sandbox Code Playgroud)

node.js watchman create-react-native-app

6
推荐指数
1
解决办法
1635
查看次数

RN博览会:分离vs弹出

我目前有一个使用Expo构建在React Native中的应用程序(create-react-native-app),该应用程序需要一些本机代码。据我了解,有两个选项可用于下拉到纯本机反应,弹出和分离。到现在为止,我已经使用了相当数量的Expo API,因此必须分离到ExpoKit。我的理解正确吗,如果我纯粹弹出(而不是与ExpoKit分离),那么我使用的当前Expo工具将无法工作?

感谢任何反馈!

react-native expo create-react-native-app

6
推荐指数
1
解决办法
2249
查看次数

React Native中的StatusBar颜色

如何StatusBarreact-native不编辑Android特定文件的情况下更改组件的背景颜色?

Docs ,我可以使用backgroundColor财产.但它失败了.barStyle属性,setBarStyle&& setBackgroundColor静态方法也不能正常工作.

只有hidden财产有效.

我正在使用create-react-native-app,用Expo建造.

android statusbar react-native expo create-react-native-app

5
推荐指数
2
解决办法
8494
查看次数

在没有"弹出"项目的情况下,在expo(create-react-native-app)中使用Firebase google身份验证的任何方法

作为问题,对于使用gobase in firebase登录需要设置google-service但是如果使用create-react-native-app创建新的react-native项目则不会有"android"或"ios"文件夹(接受使用"弹出" ")所以,有人对我有建议吗?但是我也不知道如何在我的项目中设置google-service(甚至我"弹出"项目).

google-authentication firebase google-play-services expo create-react-native-app

5
推荐指数
2
解决办法
5202
查看次数

React - 本机导航抽屉式导航嵌套导航

目前,在我正在构建的反应本机应用程序中,我有一个包含两个屏幕的抽屉导航器。对于导航,我使用反应导航。 https://reactnavigation.org/docs/intro/

代码如下,

import { DrawerNavigator } from 'react-navigation'
export  default drawernav = DrawerNavigator(
     {
        Login: {Screen: Login},
        Main : {Screen: Main }
     }
) 
Run Code Online (Sandbox Code Playgroud)

虽然登录位于抽屉导航器内,但我希望登录屏幕没有抽屉导航功能,但主屏幕将登录和主屏幕作为抽屉导航器中的两个选项。但是,现在登录屏幕还有抽屉式导航器。有没有办法让登录抽屉式导航功能消失?

react-native react-navigation create-react-native-app

5
推荐指数
1
解决办法
3346
查看次数

AsyncStorage与Expo.SQLite

我正在创建和下载,上传,存储许多图像的应用程序。我正在尝试查看如何最好地管理数据以提高性能。

我正在使用Redux来存储我的应用程序的状态,并且我使用redux-persist来将状态存储在AsyncStorage中。

但我也了解到create-react-native-app在expo包中还提供了一个称为SQLite的模块。(https://docs.expo.io/versions/latest/sdk/sqlite.html)。

我试图找出在哪里存储我的数据是一个好主意。

我应该将所有图像(base64编码)存储到redux吗?这可能多达100mb的数据。还是我应该将图像存储到SQLite中(假设数据像sqlite“ .db”文件一样平放)?

sqlite asyncstorage expo create-react-native-app

5
推荐指数
1
解决办法
1143
查看次数

create-react-native-app 显示新警告

使用 create-react-native-app 创建新应用程序现在会生成新警告。我需要做些什么来纠正警告?例如,我将如何更新列出的组件:

 ExpoRootComponent, RootErrorBoundary, Text, View
Run Code Online (Sandbox Code Playgroud)

这是新的警告:(所有这些都可以忽略吗?create-react-native-app 会更新为使用 0.55.x 吗?)

14:30:04: Warning: componentWillMount is deprecated and will be removed in 
the next major version. Use componentDidMount instead. As a temporary 
workaround, you can rename to UNSAFE_componentWillMount.

Please update the following components: ExpoRootComponent, 
RootErrorBoundary, Text, View

Learn more about this warning here:
xxx:/fb.me/react-async-component-lifecycle-hooks
- node_modules\react-native\Libraries\ReactNative\YellowBox.js:82:15 in warn
- node_modules\react-native\Libraries\Renderer\ReactNativeRenderer- 
dev.js:5706:19 in printWarning
- ... 21 more stack frames from framework internals
14:30:06: Warning: componentWillReceiveProps is deprecated and will be 
removed …
Run Code Online (Sandbox Code Playgroud)

react-native create-react-native-app

5
推荐指数
1
解决办法
1193
查看次数

React Native:捆绑失败 - 无法解析模块“AccessibilityInfo”

错误:捆绑失败:

错误:无法解析模块: Haste 模块映射AccessibilityInfo中不存在模块D:\MyApp\node_modules\react-native\Libraries\react-native\react-native-implementation.jsAccessibilityInfo

react-native create-react-native-app

5
推荐指数
1
解决办法
7109
查看次数

expo/react Native 和 SECRET API KEYS

我对 expo 和 react-native(create-react-native-app)很陌生,我面临一个问题,经过多次研究,我看到了问题,但没有看到解决方案。

我开发了我的应用程序,它应该只是前端,不需要数据库或身份验证,但我仍然需要使用 Google Places API 和电子邮件发送提供商 API(可能是 sendgrid、mailjet ...),我正面临着这个问题我认为我不会是第一个面临的问题:

  • 我在哪里存储我所有的 API KEY 和 API SECRET KEY?有没有一种(简单的)安全的方法来做到这一点,而不必进行身份验证和/或完整的后端。

我到处都读到你不应该在你的应用程序中存储任何秘密密钥,我明白为什么。但是我在任何地方都找不到简单的解决方案?

我找到了以下包:

https://github.com/goatandsheep/react-native-dotenv 但我怀疑它是否解决了这个问题,因为它还保留了应用程序中的所有内容。

我发现以下自述文件:

https://github.com/EQimper/blog/blob/master/content/post/where-do-i-put-secret-key-in-expo-project.md 但我真的不认为它使任何安全.

我真的希望有人能引导我找到解决这个问题的最简单的方法。如果解决方案是:有一个后端并使用此身份验证服务,请多加开发它(任何教程或其他信息?)

看到我的应用程序已完全准备就绪,但出于安全原因我无法将其放到网上,这让我非常沮丧。

非常感谢。

api-key react-native expo create-react-native-app

5
推荐指数
1
解决办法
3678
查看次数