Commit 1f9b073e authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

add back button compenent

parent 38bafbf3
import React, { useEffect, useState } from "react";
import { StyleSheet, View, Text, Pressable, ImageBackground, TouchableOpacity, Image, SafeAreaView } from 'react-native';
import { useNavigation } from '@react-navigation/native';
export default function BackButton(props) {
const navigation = useNavigation();
const { path } = props;
return (
<TouchableOpacity onPress={() => {
navigation.navigate(path);
}} style={{ flexDirection: "row", marginTop: -220, marginLeft: 10, width: "50%", height: "50%", }}>
<Image source={require('../assets/result/4.png')} resizeMode='contain' style={{ flex: .1 }} />
</TouchableOpacity>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment