mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Dismiss keyboard
This commit is contained in:
parent
70c75af225
commit
4adc9b30fb
@ -89,11 +89,9 @@ class OneDriveLoginScreenComponent extends React.Component {
|
||||
<ScreenHeader navState={this.props.navigation.state} />
|
||||
<WebView
|
||||
source={source}
|
||||
style={{marginTop: 20}}
|
||||
onNavigationStateChange={(o) => { this.webview_load(o); }}
|
||||
onError={(error) => { this.webview_error(error); }}
|
||||
/>
|
||||
|
||||
<Button title="Retry" onPress={() => { this.retryButton_click(); }}></Button>
|
||||
</View>
|
||||
);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import { BackHandler } from 'react-native';
|
||||
import { BackHandler, Keyboard } from 'react-native';
|
||||
import { connect, Provider } from 'react-redux'
|
||||
import { createStore } from 'redux';
|
||||
import { StackNavigator, addNavigationHelpers } from 'react-navigation';
|
||||
@ -104,6 +104,8 @@ const reducer = (state = defaultState, action) => {
|
||||
}
|
||||
|
||||
newState.historyCanGoBack = navHistory.length >= 2;
|
||||
|
||||
Keyboard.dismiss(); // TODO: should probably be in some middleware
|
||||
break;
|
||||
|
||||
// Replace all the notes with the provided array
|
||||
|
Loading…
Reference in New Issue
Block a user