小编pra*_*pra的帖子

React Native Android本地映像

我有这个

<Image style={styles.image} source={require('image!logo')}/>

哪里将logo.png添加到android/app/src/main/res文件夹中.

但图像没有显示(我已经重新运行react-native run-android).

我需要做一些其他的改变吗?

请注意,使用<Image source = {{uri:http:// path/to/image }} />有效.

android react-native

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

appengine cloudbuild.yaml 是否需要自定义运行时?

使用以下输出构建错误(使用 Rails 应用程序)

ERROR: (gcloud.app.deploy) There is a cloudbuild.yaml in the current directory, and the runtime field in /workspace/app.yaml is currently set to [runtime: ruby]. To use your cloudbuild.yaml to build a custom runtime, set the runtime field to [runtime: custom]. To continue using the [ruby] runtime, please remove the cloudbuild.yaml from this directory.
Run Code Online (Sandbox Code Playgroud)

google-app-engine google-cloud-build

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