diff --git a/src/components/common/AirshipToast.tsx b/src/components/common/AirshipToast.tsx index 449ec09a57f..29b0788be47 100644 --- a/src/components/common/AirshipToast.tsx +++ b/src/components/common/AirshipToast.tsx @@ -1,15 +1,15 @@ import * as React from 'react' -import { Animated, Text } from 'react-native' +import { Animated } from 'react-native' import type { AirshipBridge } from 'react-native-airship' import { cacheStyles, type Theme, useTheme } from '../services/ThemeContext' +import { EdgeText } from '../themed/EdgeText' interface Props { bridge: AirshipBridge children?: React.ReactNode autoHideMs?: number - allowFontScaling?: boolean // The message to show in the toast, before any other children: message: string } @@ -19,13 +19,7 @@ const DEFAULT_AUTO_HIDE_MS = 3000 export const AirshipToast: React.FC = props => { const theme = useTheme() const styles = getStyles(theme) - const { - autoHideMs = DEFAULT_AUTO_HIDE_MS, - bridge, - children, - message, - allowFontScaling = true - } = props + const { autoHideMs = DEFAULT_AUTO_HIDE_MS, bridge, children, message } = props // Opacity values are inlined in the animations below // Animation state: @@ -73,9 +67,9 @@ export const AirshipToast: React.FC = props => { return ( {message != null ? ( - + {message} - + ) : null} {children} diff --git a/src/components/scenes/DevTestScene.tsx b/src/components/scenes/DevTestScene.tsx index f55742da0a5..674d043f072 100644 --- a/src/components/scenes/DevTestScene.tsx +++ b/src/components/scenes/DevTestScene.tsx @@ -114,7 +114,7 @@ export const DevTestScene: React.FC = props => { Airship.show(bridge => ( )).catch((error: unknown) => { console.log(error)