Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
make components transparent
  • Loading branch information
markburns committed Sep 9, 2015
commit cec92bf498c804f3c2c3732b8c14627524658373
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}