Added: Link and Text component, Named links for components..., Tab layout
This commit is contained in:
15
frontend/components/Link.js
Normal file
15
frontend/components/Link.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Link as EXLink } from "expo-router";
|
||||
|
||||
const Link = (props) => {
|
||||
const defaultStyles = {
|
||||
color: "white",
|
||||
};
|
||||
|
||||
return (
|
||||
<EXLink style={[defaultStyles, props.style]} href={props.href}>
|
||||
{props.children}
|
||||
</EXLink>
|
||||
);
|
||||
};
|
||||
|
||||
export default Link;
|
||||
Reference in New Issue
Block a user