Eden Gottlieb před 6 roky
rodič
revize
c97afb15cd
2 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 4
    3
      src/RichTextEditor.js
  2. 2
    1
      src/RichTextToolbar.js

+ 4
- 3
src/RichTextEditor.js Zobrazit soubor

@@ -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
   }

+ 2
- 1
src/RichTextToolbar.js Zobrazit soubor

@@ -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 {ListView, View, TouchableOpacity, Image, StyleSheet} from 'react-native';
3 4
 import {actions} from './const';
4 5