Permalink
Browse files

no "window" in react native

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...
1 parent 9a7e4b4 commit 1941450649a0434bc5b8f762c19758ac33ecaceb @sunnylqm sunnylqm committed with Facebook Github Bot Oct 5, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 Libraries/Components/Keyboard/Keyboard.js
@@ -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() {

0 comments on commit 1941450

Please sign in to comment.