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

请问,导航条支持背景图片或者透明背景吗? #23

Open
why001 opened this issue Dec 18, 2019 · 1 comment
Open

请问,导航条支持背景图片或者透明背景吗? #23

why001 opened this issue Dec 18, 2019 · 1 comment

Comments

@why001
Copy link

why001 commented Dec 18, 2019

请问,导航条支持背景图片或者透明背景吗?

@summer88123
Copy link
Collaborator

summer88123 commented Dec 18, 2019

目前不支持背景图片。
透明背景这样设置

<NaviBar 
    style={{
         normalView: {backgroundColor:'transparent'}
    }}
/>

不过通常背景透明需要配和下面的列表向上滚动,可以这样设置

<NaviBar 
    isAbsolute={true}
    style={{
         absoluteView: {backgroundColor:'transparent'}
    }}
/>

这样整个NaviBar是通过absolute的方式悬浮在顶部的

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

2 participants