mirror of
https://github.com/balzack/databag.git
synced 2025-05-04 15:35:16 +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>
|
</ScrollView>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
<TextInput multiline={true} mode="outlined" style={{ ...styles.message, fontSize: state.textSize }}
|
<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}
|
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}
|
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)} />
|
cursorColor={state.textColorSet ? state.textColor : undefined} value={state.message} onChangeText={value => actions.setMessage(value)} />
|
||||||
|
@ -23,7 +23,7 @@ export function useSession() {
|
|||||||
if (status === 'disconnected') {
|
if (status === 'disconnected') {
|
||||||
disconnecting.current = setTimeout(() => {
|
disconnecting.current = setTimeout(() => {
|
||||||
updateState({ disconnected: true });
|
updateState({ disconnected: true });
|
||||||
}, 2000);
|
}, 4000);
|
||||||
} if (status === 'connected') {
|
} if (status === 'connected') {
|
||||||
clearTimeout(disconnecting.current);
|
clearTimeout(disconnecting.current);
|
||||||
updateState({ disconnected: false });
|
updateState({ disconnected: false });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user