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

iPhone X: Remove the internal shadow of react-native-stack-navigator when using safearea #2836

Closed
afilp opened this issue Jan 27, 2018 · 3 comments

Comments

@afilp
Copy link

afilp commented Jan 27, 2018

I have the same problem as here:
https://stackoverflow.com/questions/48361898/how-to-remove-internal-shadow-of-react-native-stacknavigator-when-using-safearea

I am not sure if we can use the cardStyle fix with react-native-router-flux.

Version

Tell us which versions you are using:
"react-native-router-flux": "^4.0.0-beta.27",
"react-native": "0.52.0",

Expected behaviour

No shadow on blank statusbar

Actual behaviour

It shows a shadow
image

 <Scene
                        key="Main"
                        component={Main}
                        initial
                        hideNavBar
                        panHandlers={null}
                    />
@timqha
Copy link

timqha commented Feb 11, 2018

Try this:

<Router getSceneStyle={() => ({
          elevation: 0,
          shadowOpacity: 0,
          borderBottomWidth: 0,
        })}
>

@VasiliyPolyakov
Copy link

@timqha Thank you. It is awesome. It helped me and I fixed this problem related to internal shadow.

@daviscabral
Copy link
Collaborator

Closing this issue as it seems the fix provided by @timqha has worked for everyone.

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

4 participants