我有这个
<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 }} />有效.
使用以下输出构建错误(使用 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)