启动画面图像开箱即用
I have a react native cli project which I have set an image for my splash screen.But when the image is rendered it goes out of the box and the image is not shown completely on the screen. Is there a way to set the image size fitted on the screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是如何将图像设置为启动屏幕的?你使用了react-native-splash-screen包吗?如果是这样,您可以在布局文件中设置它;
How did you set the image to the splash screen? Did you use the react-native-splash-screen package? If so, you could set this in your layout file;
您还没有提供代码。
像希望的那样改变scaleType
,它会起作用:)
你可以从这里获得帮助
https://developer.android.com/reference/android/widget/ImageView。比例类型
you have not provided the code.
change the scaleType like as
hopefully, it will work :)
you can get help from here
https://developer.android.com/reference/android/widget/ImageView.ScaleType