UNPKG

swiftui-react-native

Version:

A React Native component library inspired by SwiftUI

22 lines (19 loc) 551 B
import { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native'; import { Modifiers, NativeModifiersProp } from '../../utils/modifiers'; import { SystemName } from '../Image/types'; export type NativeLabelProps = { systemImage: SystemName; title: string; modifiers?: NativeModifiersProp; style?: StyleProp<ViewStyle>; onEvent?: ( e: NativeSyntheticEvent<{ [key: string]: any; }> ) => void; }; export type LabelProps = { systemImage?: SystemName; title?: string; style?: StyleProp<ViewStyle>; } & Modifiers;