apply same keyboard strategy in ios and android

This commit is contained in:
Roland Osborne 2025-01-15 20:56:32 -08:00
parent da8f329394
commit ff338801a9
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:windowSoftInputMode="adjustNothing"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -188,7 +188,7 @@ export function Conversation({close, openDetails, wide}: {close: ()=>void, openD
const containerStyle = state.layout === 'large' ? { ...styles.conversation, ...styles.largeConversation } : styles.conversation;
const headerStyle = state.layout === 'large' ? { ...styles.header, ...styles.largeHeader } : styles.header;
const padStyle = state.layout === 'large' ? styles.pad : styles.nopad;
const offset = state.layout === 'large' ? state.avoid - 64 : state.avoid - 128;
const offset = state.layout === 'large' ? state.avoid - 64 : state.avoid - 120;
return (
<View style={containerStyle}>
@ -295,7 +295,7 @@ export function Conversation({close, openDetails, wide}: {close: ()=>void, openD
autoComplete="off" autoCapitalize="none" autoCorrect={false} placeholder={state.strings.newMessage} placeholderTextColor={state.textColorSet ? state.textColor : undefined}
cursorColor={state.textColorSet ? state.textColor : undefined} value={state.message} onChangeText={value => actions.setMessage(value)} />
{ Platform.OS === 'ios' && avoid && (<View style={{ ...styles.avoid, height: offset }} />) }
{ avoid && (<View style={{ ...styles.avoid, height: offset }} />) }
<View style={styles.controls}>
<Pressable style={styles.control} onPress={addImage}><Surface style={styles.surface} elevation={2}><Icon style={styles.button} source="camera" size={24} color={Colors.primary} /></Surface></Pressable>