mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 18:15:19 +00:00
adjusting keyboard input on thread
This commit is contained in:
parent
7f14abbc88
commit
3b9c1abab4
@ -277,6 +277,7 @@ export function Conversation({close, openDetails, wide}: {close: ()=>void, openD
|
||||
</ScrollView>
|
||||
</Animated.View>
|
||||
<TextInput multiline={true} mode="outlined" style={{ ...styles.message, fontSize: state.textSize }}
|
||||
blurOnSubmit={true} onSubmitEditing={sendMessage} returnKeyType="send"
|
||||
textColor={state.textColorSet ? state.textColor : undefined} outlineColor="transparent" activeOutlineColor="transparent"spellcheck={false}
|
||||
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)} />
|
||||
|
@ -23,7 +23,7 @@ export function useSession() {
|
||||
if (status === 'disconnected') {
|
||||
disconnecting.current = setTimeout(() => {
|
||||
updateState({ disconnected: true });
|
||||
}, 2000);
|
||||
}, 4000);
|
||||
} if (status === 'connected') {
|
||||
clearTimeout(disconnecting.current);
|
||||
updateState({ disconnected: false });
|
||||
|
Loading…
x
Reference in New Issue
Block a user