From 1941450649a0434bc5b8f762c19758ac33ecaceb Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Wed, 5 Oct 2016 04:40:49 -0700 Subject: [PATCH] no "window" in react native Summary: There is no "window" in react native. And by the way fix the indent. Closes https://github.com/facebook/react-native/pull/10182 Differential Revision: D3974090 Pulled By: javache fbshipit-source-id: e0e47e15364abff5bcb136d988e234fc8e1f0a8b --- Libraries/Components/Keyboard/Keyboard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index c2aa1b134..445897a54 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/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() {