Added: Link and Text component, Named links for components..., Tab layout
This commit is contained in:
13
frontend/components/Text.js
Normal file
13
frontend/components/Text.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import { Text as RNText } from "react-native";
|
||||
|
||||
const Text = (props) => {
|
||||
// Apply your default text color and any other styles here
|
||||
const defaultStyles = {
|
||||
color: "white", // Set the default text color to white
|
||||
};
|
||||
|
||||
return <RNText style={[defaultStyles, props.style]}>{props.children}</RNText>;
|
||||
};
|
||||
|
||||
export default Text;
|
||||
Reference in New Issue
Block a user