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:
parent
9a7e4b4902
commit
1941450649
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue