Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rax-barcode 宽度处理异常 #390

Open
SteinNs opened this issue Aug 5, 2021 · 0 comments
Open

rax-barcode 宽度处理异常 #390

SteinNs opened this issue Aug 5, 2021 · 0 comments

Comments

@SteinNs
Copy link

SteinNs commented Aug 5, 2021

问题:
组件传入style.width,条形码canvas设置为了对应宽度,但是条形码未按宽度绘制,导致大量留白

复现代码:
const Code = (props) => {
const barCode = "3846085293"

return (

  {barCode && (
    <BarCode
      data={barCode}
      style={{
        width: 320,
        height: 80
      }}
    />
  )}
  
</View>

);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant