import React, { Component } from "react"; import { Platform, StyleSheet, View, TouchableOpacity, Image } from "react-native"; import { scale, verticalScale, moderateScale } from "react-native-size-matters"; import Icon from "react-native-vector-icons/dist/MaterialCommunityIcons"; import Text from "react-native-text"; import { width, height } from "../../config/screen"; import Size from "../../config/size"; import theme from "../../config/colors"; const size = new Size(); export default class SignInUpHeader extends Component { backAction() { this.props.navigation.goBack(); } render() { return ( {this.props.back ? ( this.backAction()} /> ) : ( )} ); } }