diff --git a/app/components/TextBox.tsx b/app/components/TextBox.tsx index 979312d..6e20694 100644 --- a/app/components/TextBox.tsx +++ b/app/components/TextBox.tsx @@ -16,7 +16,7 @@ const TextBox: React.FC = ({ body, varname, setValue, - lines = 0, + lines = undefined, keyboardType = 'default', multiline = false, }) => { @@ -24,11 +24,11 @@ const TextBox: React.FC = ({ {name} 1 || multiline} + multiline={(!!lines && lines > 1) || multiline} numberOfLines={lines} style={{ ...styles.input, - textAlignVertical: lines > 1 ? `top` : `center`, + textAlignVertical: lines && lines > 1 ? `top` : `center`, }} value={body[varname]?.toString() ?? ''} onChangeText={(value) => {