amis-rpc-design/node_modules/@react-navigation/elements/src/MissingIcon.tsx

19 lines
427 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import { StyleProp, StyleSheet, Text, TextStyle } from 'react-native';
type Props = {
color?: string;
size?: number;
style?: StyleProp<TextStyle>;
};
export function MissingIcon({ color, size, style }: Props) {
return <Text style={[styles.icon, { color, fontSize: size }, style]}></Text>;
}
const styles = StyleSheet.create({
icon: {
backgroundColor: 'transparent',
},
});