import React, { ReactNode } from 'react'; import { StyleProp, StyleSheet, ViewStyle } from 'react-native'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Alert, { AlertType } from '../../../Base/Alert'; import { useAppThemeFromContext, mockTheme } from '../../../../util/theme'; interface Props { /** * Warning message to display (Plain text or JSX) */ warningMessage: ReactNode; style?: StyleProp; } const styles = StyleSheet.create({ icon: { paddingTop: 4, paddingRight: 8, }, }); const WarningMessage = ({ warningMessage, style }: Props) => { const { colors } = useAppThemeFromContext() || mockTheme; return ( ( )} > {warningMessage} ); }; export default WarningMessage;