|
@@ -1,4 +1,5 @@
|
1
|
|
-import React, {Component, PropTypes} from 'react';
|
|
1
|
+import React, {Component} from 'react';
|
|
2
|
+import PropTypes from 'prop-types';
|
2
|
3
|
import WebViewBridge from 'react-native-webview-bridge-updated';
|
3
|
4
|
import {InjectedMessageHandler} from './WebviewMessageHandler';
|
4
|
5
|
import {actions, messages} from './const';
|
|
@@ -92,7 +93,7 @@ export default class RichTextEditor extends Component {
|
92
|
93
|
const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight - spacing;
|
93
|
94
|
this.setEditorHeight(editorAvailableHeight);
|
94
|
95
|
}
|
95
|
|
-
|
|
96
|
+
|
96
|
97
|
onBridgeMessage(str){
|
97
|
98
|
try {
|
98
|
99
|
const message = JSON.parse(str);
|
|
@@ -352,7 +353,7 @@ export default class RichTextEditor extends Component {
|
352
|
353
|
selectionChangeListeners: [...this.state.selectionChangeListeners, listener]
|
353
|
354
|
});
|
354
|
355
|
}
|
355
|
|
-
|
|
356
|
+
|
356
|
357
|
enableOnChange() {
|
357
|
358
|
this._sendAction(actions.enableOnChange);
|
358
|
359
|
}
|