feat: mobile app package (#1075)
This commit is contained in:
16
packages/mobile/src/Components/Circle.ts
Normal file
16
packages/mobile/src/Components/Circle.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import styled from 'styled-components/native'
|
||||
|
||||
type Props = {
|
||||
size?: number
|
||||
backgroundColor?: string
|
||||
borderColor?: string
|
||||
}
|
||||
|
||||
export const Circle = styled.View<Props>`
|
||||
width: ${props => props.size ?? 12}px;
|
||||
height: ${props => props.size ?? 12}px;
|
||||
border-radius: ${props => (props.size ?? 12) / 2}px;
|
||||
background-color: ${props => props.backgroundColor};
|
||||
border-color: ${props => props.borderColor};
|
||||
border-width: 1px;
|
||||
`
|
||||
Reference in New Issue
Block a user