Browse Source

added defaultProps

iyegoroff 8 years ago
parent
commit
07102478e1
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/RichTextEditor.js

+ 8
- 2
src/RichTextEditor.js View File

@@ -22,7 +22,13 @@ export default class RichTextEditor extends Component {
22 22
     customCSS: PropTypes.string,
23 23
     hiddenTitle: PropTypes.bool,
24 24
     enableOnChange: PropTypes.bool,
25
-    footerHeight: PropTypes.number
25
+    footerHeight: PropTypes.number,
26
+    contentInset: PropTypes.object
27
+  };
28
+
29
+  static defaultProps = {
30
+    contentInset: {},
31
+    style: {}
26 32
   };
27 33
 
28 34
   constructor(props) {
@@ -647,4 +653,4 @@ const styles = StyleSheet.create({
647 653
     marginRight: -20,
648 654
     marginTop: 20
649 655
   }
650
-});
656
+});