图像组件中的图像未完全拉伸

时间:2019-12-05 21:49:16

标签: react-native

Set ANSI_PADDING ON

exec [dbo].[Proc]
           @languageID =1,
           @company_typeID =4,
           @company_name =N'Company Name'

Set ANSI_PADDING OFF

this image

您可以看到其中的书可触摸不透明性,并且组件很好,但是宽度没有完全伸展,我尝试更改所有resize模式属性的枚举值,但似乎没有任何作用

1 个答案:

答案 0 :(得分:0)

尝试设置imageStyle

 <ImageBackground
    imageStyle={{
      resizeMode: 'contain',
      overflow: 'visible',
   }}
   style={{ overflow: 'visible',
          resizeMode: 'contain'}}>