Commit 9bf02f26 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

add back button component

See merge request !118
parents 38bafbf3 1f9b073e
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