HamburgerIcon.js
858 Bytes
import React, {Component} from 'react';
import { withNavigation } from 'react-navigation';
import { DrawerActions } from 'react-navigation-drawer';
import { TouchableOpacity } from "react-native-gesture-handler";
import {View,Text} from 'react-native'
import {AsyncStorage} from 'react-native'
class HamburgerIcon extends Component{
state={
visible:false,
pushData:[],
not_checked:0
}
componentDidMount() {
}
render() {
return (
<TouchableOpacity
style={{
marginLeft:10,
}}
onPress={()=>{
this.props.navigation.dispatch(DrawerActions.openDrawer())
}}>
<Text style={{color:"white",fontSize:18}}>
메뉴
</Text>
</TouchableOpacity>
)
};
}
export default withNavigation(HamburgerIcon);