mirror of
https://github.com/urosran/cally.git
synced 2025-07-15 09:45:20 +00:00
added new reminder modal
This commit is contained in:
34
components/ui/ButtonOutlined.tsx
Normal file
34
components/ui/ButtonOutlined.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import { StyleSheet, View } from "react-native";
|
||||
import React from "react";
|
||||
import { Text, Button } from "react-native-ui-lib";
|
||||
|
||||
interface ButtonProps {
|
||||
title: string;
|
||||
size: keyof typeof Button.sizes;
|
||||
onPress: () => void;
|
||||
}
|
||||
|
||||
const ButtonOutlined = (props: ButtonProps) => {
|
||||
const { size, onPress, title } = props;
|
||||
return (
|
||||
<Button style={styles.button} size={size} onPress={onPress} avoidMinWidth>
|
||||
<Text text80L style={styles.buttonText}>
|
||||
{title}
|
||||
</Text>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
export default ButtonOutlined;
|
||||
const styles = StyleSheet.create({
|
||||
button: {
|
||||
backgroundColor: "white",
|
||||
color: "black",
|
||||
borderColor: "lightgray",
|
||||
borderWidth: 1,
|
||||
borderRadius: 5,
|
||||
padding: 0,
|
||||
marginHorizontal: 0
|
||||
},
|
||||
buttonText: {
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user