UNPKG

@uiw/react-native

Version:
27 lines 597 B
import React from 'react'; import { View, StyleSheet } from 'react-native'; export default function Winglink(props) { let { style, size, ...restProps } = props; let sizeStyle = {}; if (typeof size === 'number') { sizeStyle.marginHorizontal = size; } else if (size && styles[size]) { sizeStyle = styles[size]; } return <View testID="RNE__WingBlank__view" {...restProps} style={[sizeStyle, style]} />; } const styles = StyleSheet.create({ default: { marginHorizontal: 12 }, small: { marginHorizontal: 6 }, large: { marginHorizontal: 16 } });