Skip to content

Commit

Permalink
Removed react-native-dismiss-keyboard and fixed CI. Fixes rnc-archive#43
Browse files Browse the repository at this point in the history
  • Loading branch information
raynor85 authored and DanielMSchmidt committed Nov 9, 2017
1 parent f571206 commit d092c20
Show file tree
Hide file tree
Showing 5 changed files with 2,437 additions and 397 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
.*/node_modules/react-native/.*
.*/node_modules/metro-bundler/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
Expand Down
32 changes: 0 additions & 32 deletions flow-typed/npm/react-native-dismiss-keyboard_vx.x.x.js

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@
"menu"
],
"license": "MIT",
"dependencies": {
"react-native-dismiss-keyboard": "1.0.0"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
Expand All @@ -103,6 +100,8 @@
"flow-bin": "^0.42.0",
"lint-staged": "^3.3.1",
"pre-commit": "^1.2.2",
"prettier": "^0.19.0"
"prettier": "^0.19.0",
"react": "16.0.0-alpha.12",
"react-native": "0.48.1"
}
}
5 changes: 2 additions & 3 deletions src/DrawerLayout.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @flow
import React, { Component } from 'react';
import dismissKeyboard from 'react-native-dismiss-keyboard';
import {
Animated,
Dimensions,
Keyboard,
PanResponder,
StyleSheet,
TouchableWithoutFeedback,
Expand Down Expand Up @@ -107,7 +107,7 @@ export default class DrawerLayout extends Component {
}

if (this.props.keyboardDismissMode === 'on-drag') {
dismissKeyboard();
Keyboard.dismiss();
}

this._lastOpenValue = value;
Expand Down Expand Up @@ -169,7 +169,6 @@ export default class DrawerLayout extends Component {
const animatedOverlayStyles = { opacity: overlayOpacity };
const pointerEvents = drawerShown ? 'auto' : 'none';


return (
<View
style={{ flex: 1, backgroundColor: 'transparent' }}
Expand Down
Loading

0 comments on commit d092c20

Please sign in to comment.