|
@@ -34,7 +34,6 @@ export default class BaseContainer extends React.Component<Props, State> {
|
34
|
34
|
};
|
35
|
35
|
|
36
|
36
|
toggle() {
|
37
|
|
- console.log('coucou');
|
38
|
37
|
this.setState({
|
39
|
38
|
isOpen: !this.state.isOpen,
|
40
|
39
|
});
|
|
@@ -47,23 +46,29 @@ export default class BaseContainer extends React.Component<Props, State> {
|
47
|
46
|
|
48
|
47
|
render() {
|
49
|
48
|
return (
|
50
|
|
- <CustomSideMenu navigation={this.props.navigation} isOpen={this.state.isOpen}
|
51
|
|
- onChange={(isOpen) => this.updateMenuState(isOpen)}>
|
52
|
|
- <Container>
|
53
|
|
- <CustomHeader navigation={this.props.navigation} title={this.props.headerTitle}
|
54
|
|
- leftButton={
|
55
|
|
- <Touchable
|
56
|
|
- style={{padding: 6}}
|
57
|
|
- onPress={() => this.toggle()}>
|
58
|
|
- <CustomMaterialIcon
|
59
|
|
- color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
60
|
|
- icon="menu"/>
|
61
|
|
- </Touchable>
|
62
|
|
- }
|
63
|
|
- rightButton={this.props.headerRightButton}/>
|
64
|
|
- {this.props.children}
|
65
|
|
- </Container>
|
66
|
|
- </CustomSideMenu>
|
|
49
|
+ <View style={{
|
|
50
|
+ backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor,
|
|
51
|
+ width: '100%',
|
|
52
|
+ height: '100%'
|
|
53
|
+ }}>
|
|
54
|
+ <CustomSideMenu navigation={this.props.navigation} isOpen={this.state.isOpen}
|
|
55
|
+ onChange={(isOpen) => this.updateMenuState(isOpen)}>
|
|
56
|
+ <Container>
|
|
57
|
+ <CustomHeader navigation={this.props.navigation} title={this.props.headerTitle}
|
|
58
|
+ leftButton={
|
|
59
|
+ <Touchable
|
|
60
|
+ style={{padding: 6}}
|
|
61
|
+ onPress={() => this.toggle()}>
|
|
62
|
+ <CustomMaterialIcon
|
|
63
|
+ color={Platform.OS === 'ios' ? ThemeManager.getCurrentThemeVariables().brandPrimary : "#fff"}
|
|
64
|
+ icon="menu"/>
|
|
65
|
+ </Touchable>
|
|
66
|
+ }
|
|
67
|
+ rightButton={this.props.headerRightButton}/>
|
|
68
|
+ {this.props.children}
|
|
69
|
+ </Container>
|
|
70
|
+ </CustomSideMenu>
|
|
71
|
+ </View>
|
67
|
72
|
);
|
68
|
73
|
}
|
69
|
74
|
}
|