Skip to content

Commit 0710247

Browse files
authored
added defaultProps
1 parent c67854e commit 0710247

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/RichTextEditor.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ export default class RichTextEditor extends Component {
2222
customCSS: PropTypes.string,
2323
hiddenTitle: PropTypes.bool,
2424
enableOnChange: PropTypes.bool,
25-
footerHeight: PropTypes.number
25+
footerHeight: PropTypes.number,
26+
contentInset: PropTypes.object
27+
};
28+
29+
static defaultProps = {
30+
contentInset: {},
31+
style: {}
2632
};
2733

2834
constructor(props) {
@@ -647,4 +653,4 @@ const styles = StyleSheet.create({
647653
marginRight: -20,
648654
marginTop: 20
649655
}
650-
});
656+
});

0 commit comments

Comments
 (0)