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

Override navigationCard styles #66

Open
NewOldMax opened this issue Nov 22, 2016 · 0 comments
Open

Override navigationCard styles #66

NewOldMax opened this issue Nov 22, 2016 · 0 comments

Comments

@NewOldMax
Copy link

Hi!
Thanks for this awesome library!

I have image on background in my app.

const style = {
    image: {
        flex: 1,
        width: null,
        height: null,
        resizeMode: 'cover',
    },
}

const Root = (props) => (
    <Image source={require('../assets/img/background.jpg')} style={style.image}>
        {props.children}
    </Image>
);

image

So, if I'm try to using <TabsRoute path="/" component={Root} transition="horizontal-pager">, then i have gray background instead image. I found in styles.js

navigationCard: {
    ...absoluteFillObject,
    overflow: 'hidden',
  },

Making this

navigationCard: {
    ...absoluteFillObject,
    backgroundColor: 'transparent',
    overflow: 'hidden',
  },

solve my issue.

Is there a way to override those styles?

Version

Dependency Version
react-router-native 2.0.0-beta.0
react-router N/A
react-native 0.37.0
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