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
This commit is contained in:
sunnylqm 2016-10-05 04:40:49 -07:00 committed by Facebook Github Bot
parent 9a7e4b4902
commit 1941450649
1 changed files with 4 additions and 4 deletions

View File

@ -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() {