Skip to content

Commit

Permalink
Merge pull request #6 from markburns/master
Browse files Browse the repository at this point in the history
make components transparent
  • Loading branch information
Pavlo Aksonov committed Sep 10, 2015
2 parents 93f19c0 + cec92bf commit 0fb5032
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Router extends React.Component {
}
var child = Component ? <Component navigator={navigator} route={route} {...route.passProps}/> : React.Children.only(this.routes[route.name].children)
return (
<View style={{flex:1}}>
<View style={styles.transparent}>
{navBar}
{child}
</View>
Expand Down Expand Up @@ -205,7 +205,7 @@ class Router extends React.Component {
);
}
return (
<View style={{flex:1}}>
<View style={styles.transparent}>
<Navigator
renderScene={this.renderScene.bind(this)}
configureScene={(route) => { return route.sceneConfig;}}
Expand All @@ -231,6 +231,10 @@ var styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
},
transparent: {
flex:1,
backgroundColor: "transparent"
}
});

module.exports = {Router, Container, Actions, API, PageStore, Route, Animations, Schema, FetchStore, FetchActions, alt}

0 comments on commit 0fb5032

Please sign in to comment.