Skip to content

Commit f67fa55

Browse files
committed
fix and update for drawer
1 parent a42cf19 commit f67fa55

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

ignite-base/App/Containers/Styles/RootStyle.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import {StyleSheet} from 'react-native'
22
import {Fonts, Metrics, Colors} from '../../Themes/'
33

4+
// For some reason this doesn't want ot be a stylesheet
5+
export const drawerStyles = {
6+
drawer: {shadowColor: '#000000', shadowOpacity: 0.8, shadowRadius: 3, backgroundColor: Colors.background}
7+
}
8+
49
const RootStyle = StyleSheet.create({
510
applicationView: {
611
flex: 1
@@ -26,6 +31,7 @@ const RootStyle = StyleSheet.create({
2631
height: 200,
2732
alignSelf: 'center'
2833
}
34+
2935
})
3036

3137
export default RootStyle

ignite-base/App/Root.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import DebugSettings from './Config/DebugSettings'
99
import './Config/PushConfig'
1010

1111
// Styles
12-
import styles from './Containers/Styles/RootStyle'
12+
import styles, {drawerStyles} from './Containers/Styles/RootStyle'
1313

1414
const store = configureStore()
1515

@@ -27,7 +27,7 @@ export default class RNBase extends React.Component {
2727
renderDrawerContent () {
2828
return (
2929
<View style={{marginTop: 30, padding: 10}}>
30-
<Text>
30+
<Text style={{color: 'white'}}>
3131
Drawer Content Goes Here!
3232
</Text>
3333
</View>
@@ -46,7 +46,7 @@ export default class RNBase extends React.Component {
4646
<Drawer
4747
ref={(ref) => { this.drawer = ref }}
4848
content={this.renderDrawerContent()}
49-
styles={styles.drawer}
49+
styles={drawerStyles}
5050
openDrawerOffset={100}
5151
type='static'
5252
tapToClose

ignite-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"react-native": "^0.26.1",
2626
"react-native-animatable": "^0.6.0",
2727
"react-native-device-info": "^0.9.3",
28-
"react-native-drawer": "^2.2.2",
28+
"react-native-drawer": "^2.2.3",
2929
"react-native-i18n": "0.0.8",
3030
"react-native-push-notification": "^1.0.7",
3131
"react-native-vector-icons": "^2.0.2",

ignite-base/package.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"react-native": "^0.26.1",
2626
"react-native-animatable": "^0.6.0",
2727
"react-native-device-info": "^0.9.3",
28-
"react-native-drawer": "^2.2.2",
28+
"react-native-drawer": "^2.2.3",
2929
"react-native-i18n": "0.0.8",
3030
"react-native-push-notification": "^1.0.7",
3131
"react-native-vector-icons": "^2.0.2",

0 commit comments

Comments
 (0)