fix(app): auto-grow text input on iOS

Remove explicit height style on iOS TextInput - only use minHeight/maxHeight
to allow native auto-sizing. Web still uses explicit height for controlled
sizing via onContentSizeChange measurement.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Mohamed Boudra
2026-01-10 23:47:37 +07:00
parent f073be0b98
commit 5aebb418df
+11 -6
View File
@@ -491,14 +491,19 @@ export const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
placeholderTextColor={theme.colors.mutedForeground} placeholderTextColor={theme.colors.mutedForeground}
style={[ style={[
styles.textInput, styles.textInput,
{ IS_WEB
height: inputHeight, ? {
minHeight: MIN_INPUT_HEIGHT, height: inputHeight,
maxHeight: MAX_INPUT_HEIGHT, minHeight: MIN_INPUT_HEIGHT,
}, maxHeight: MAX_INPUT_HEIGHT,
}
: {
minHeight: MIN_INPUT_HEIGHT,
maxHeight: MAX_INPUT_HEIGHT,
},
]} ]}
multiline multiline
scrollEnabled={inputHeight >= MAX_INPUT_HEIGHT} scrollEnabled={IS_WEB ? inputHeight >= MAX_INPUT_HEIGHT : true}
onContentSizeChange={handleContentSizeChange} onContentSizeChange={handleContentSizeChange}
editable={!isDictating && isConnected && !disabled} editable={!isDictating && isConnected && !disabled}
onKeyPress={ onKeyPress={