Skip to content

Commit c97afb1

Browse files
author
Eden Gottlieb
committed
Support RN 0.51.0
1 parent 484d2bc commit c97afb1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/RichTextEditor.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
23
import WebViewBridge from 'react-native-webview-bridge-updated';
34
import {InjectedMessageHandler} from './WebviewMessageHandler';
45
import {actions, messages} from './const';
@@ -92,7 +93,7 @@ export default class RichTextEditor extends Component {
9293
const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight - spacing;
9394
this.setEditorHeight(editorAvailableHeight);
9495
}
95-
96+
9697
onBridgeMessage(str){
9798
try {
9899
const message = JSON.parse(str);
@@ -352,7 +353,7 @@ export default class RichTextEditor extends Component {
352353
selectionChangeListeners: [...this.state.selectionChangeListeners, listener]
353354
});
354355
}
355-
356+
356357
enableOnChange() {
357358
this._sendAction(actions.enableOnChange);
358359
}

src/RichTextToolbar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import {ListView, View, TouchableOpacity, Image, StyleSheet} from 'react-native';
34
import {actions} from './const';
45

0 commit comments

Comments
 (0)