mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 01:55:17 +00:00
apply same keyboard strategy in ios and android
This commit is contained in:
parent
da8f329394
commit
ff338801a9
@ -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" />
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user