From e7536289cbb4380dc82dcd70737e165727cbbb92 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 9 Nov 2022 15:57:49 -0600
Subject: Add scene creator

---
 src/view/com/util/ErrorMessage.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/view/com/util/ErrorMessage.tsx')

diff --git a/src/view/com/util/ErrorMessage.tsx b/src/view/com/util/ErrorMessage.tsx
index 3acea1cab..834cd598f 100644
--- a/src/view/com/util/ErrorMessage.tsx
+++ b/src/view/com/util/ErrorMessage.tsx
@@ -5,9 +5,11 @@ import {colors} from '../../lib/styles'
 
 export function ErrorMessage({
   message,
+  numberOfLines,
   onPressTryAgain,
 }: {
   message: string
+  numberOfLines?: number
   onPressTryAgain?: () => void
 }) {
   return (
@@ -19,7 +21,9 @@ export function ErrorMessage({
           size={16}
         />
       </View>
-      <Text style={styles.message}>{message}</Text>
+      <Text style={styles.message} numberOfLines={numberOfLines}>
+        {message}
+      </Text>
       {onPressTryAgain && (
         <TouchableOpacity style={styles.btn} onPress={onPressTryAgain}>
           <FontAwesomeIcon
-- 
cgit 1.4.1

