React-native-router-flux: iPhone X: Remove the internal shadow of react-native-stack-navigator when using safearea

Created on 27 Jan 2018  路  3Comments  路  Source: aksonov/react-native-router-flux

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} />

Most helpful comment

Try this:

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

All 3 comments

Try this:

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maphongba008 picture maphongba008  路  3Comments

vinayr picture vinayr  路  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

basdvries picture basdvries  路  3Comments

jgibbons picture jgibbons  路  3Comments