1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Dismiss keyboard

This commit is contained in:
Laurent Cozic 2017-07-10 22:44:55 +01:00
parent 70c75af225
commit 4adc9b30fb
2 changed files with 3 additions and 3 deletions

View File

@ -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>
);

View File

@ -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