This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
interaktive-systeme/components/common/plus/plus.tsx
2023-12-04 23:31:05 +01:00

28 lines
No EOL
664 B
TypeScript

import { View, Text, ViewProps, StyleSheet } from 'react-native'
import { AntDesign } from '@expo/vector-icons'
import React from 'react'
const Plus = (props : ViewProps) => {
return (
<View style={[style.plus, props.style]}>
{props.children}
<AntDesign name='plus' color={"white"} size={20}></AntDesign>
</View>
)
}
const style = StyleSheet.create({
plus:{
position: "absolute",
right: 20,
bottom: 20,
zIndex: 1,
backgroundColor: "orange",
padding: 20,
borderRadius: 500,
height: 60,
width: 60,
alignItems: 'center',
justifyContent: "center"
}
})
export default Plus