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

navTransparent does't work well on android #2834

Closed
UrielShimony opened this issue Jan 26, 2018 · 2 comments
Closed

navTransparent does't work well on android #2834

UrielShimony opened this issue Jan 26, 2018 · 2 comments

Comments

@UrielShimony
Copy link

Version

"react-native-router-flux": "^4.0.0-beta.28"
"react-native": "0.52.1",

Expected behaviour

like in ios, completely transparent
image

Actual behaviour

image

i have a very very thin white line in the bottom of the nav bar, looking like 3D/zIndex upper layer

                    **<Scene key='scene1' component={component1}
                           drawer={true}
                           navTransparent={true}
                    />**

                    <Scene key='creators' component={creatorScreen} title={'Creators'} back/>
                </Drawer>
            </Stack>

Thanks for the helpers

@ljmkimqx
Copy link

I resolved it. Don't use navTransparent. use

navigationBarStyle={{
position: 'absolute',
backgroundColor: 'transparent',
zIndex: 100,
top: 0,
left: 0,
right: 0,
borderBottomWidth: 0,
elevation: 0,
}}

like this:
<Scene
key='scene1'
component={component1}
navigationBarStyle={{
position: 'absolute',
backgroundColor: 'transparent',
zIndex: 100,
top: 0,
left: 0,
right: 0,
borderBottomWidth: 0,
elevation: 0,
}}
/>

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists

@aksonov aksonov closed this as completed Aug 8, 2018
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

3 participants