Skip to content

Commit

Permalink
no "window" in react native
Browse files Browse the repository at this point in the history
Summary:
There is no "window" in react native. And by the way fix the indent.
Closes #10182

Differential Revision: D3974090

Pulled By: javache

fbshipit-source-id: e0e47e15364abff5bcb136d988e234fc8e1f0a8b
  • Loading branch information
sunnylqm authored and Facebook Github Bot committed Oct 5, 2016
1 parent 9a7e4b4 commit 1941450
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libraries/Components/Keyboard/Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ const KeyboardEventEmitter = new NativeEventEmitter(KeyboardObserver);
* }
*
* componentWillUnmount () {
* this.keyboardDidShowListener.remove();
* this.keyboardDidHideListener.remove();
* this.keyboardDidShowListener.remove();
* this.keyboardDidHideListener.remove();
* }
*
* _keyboardDidShow () {
* window.alert('Keyboard Shown');
* alert('Keyboard Shown');
* }
*
* _keyboardDidHide () {
* window.alert('Keyboard Hidden');
* alert('Keyboard Hidden');
* }
*
* render() {
Expand Down

0 comments on commit 1941450

Please sign in to comment.