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

Merge branch 'it18218640' into 'master'

add color result interface

See merge request !119
parents 9bf02f26 0100c936
import React, { useEffect, useState } from "react";
import { StyleSheet, View, Text, Pressable, ImageBackground, TouchableOpacity, Image } from 'react-native';
import { SafeAreaView } from "react-native-safe-area-context";
import Orientation from 'react-native-orientation-locker';
import { useNavigation } from "@react-navigation/native";
import BackButton from "../../component/BackButton";
export default function ColorResult() {
const navigation = useNavigation();
React.useEffect(() => {
const unsubscribe = navigation.addListener("focus", () => {
// The screen is focused
// Call any action
Orientation.unlockAllOrientations();
Orientation.lockToLandscape();
});
return unsubscribe;
}, [navigation]);
return (
<SafeAreaView>
<View>
<ImageBackground style={styles.image} source={require("../../assets/result/2.jpg")}>
<BackButton path="Home"/>
</ImageBackground>
</View>
</SafeAreaView>
)
}
const styles = StyleSheet.create({
body: {
flex: 1,
},
image: {
width: "100%",
height: "100%",
},
})
\ No newline at end of file
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