Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

No transparent background in the navigated routing Components #394

Open
Benjamin5050 opened this issue Jan 22, 2017 · 2 comments
Open

No transparent background in the navigated routing Components #394

Benjamin5050 opened this issue Jan 22, 2017 · 2 comments

Comments

@Benjamin5050
Copy link

I have a very basic app and I am using ex-navigation for navigation.

App.js (note the backgroundColor):

export default class App extends Component {
    render() {
        return (
            <View style={{flex: 1, backgroundColor: 'lightblue'}}>
                <TabEntry/>
            </View>
        );
    }
}

TabEntry:

const Router = createRouter(() => ({
    notification: () => Notification,
}));

const defaultRouteConfig = {
    navigationBar: {
        title: 'notify',
        tintColor: 'blue',
        backgroundColor: 'green',
    },
};

export default class TabEntry extends React.Component {
    render() {
        return (
            <NavigationProvider router={Router}>
                <StackNavigation
                    initialRoute={Router.getRoute('notification')}
                    defaultRouteConfig={defaultRouteConfig}
                />
            </NavigationProvider>
        )
    }
}

class Notification extends React.Component {
    render() {
        return (
            <View>
                <Text>NOTIFICATION!!!</Text>
            </View>
        )
    }
}

Since, there is a backgroundColor in the parent Component, but no backgroundColor in its child component, it should have displayed a lightblue background. But instead the background is white. How can I make it transparent?

@ranjeev75
Copy link

#402 I get the same issue

@pawlowskim
Copy link

I have exactly the same problem. As you can see above, I made PR for this issue. Hope it will be investigated asap.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants