123456789101112131415161718192021222324252627282930 |
- import React,{Component} from 'react';
- import {View,Image,TouchableOpacity} from 'react-native';
- import Device from '../tool/Device'
- class BackButton extends Component{
- constructor(props){
- super(props)
- }
- render(){
- const {Icon,Click} =this.props
-
- return (
- <TouchableOpacity onPress={
- ()=>{
- Click()
- }
- }>
- <View style={{paddingRight:Device.scale(11),paddingLeft:Device.scale(11)}}>
- <Image source={Icon} style={[{height:Device.scale(20),width:Device.scale(17.5)},this.props.style]}></Image>
- </View>
- </TouchableOpacity>
-
- )
- }
- }
- export default BackButton;
|