1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +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

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