|
@@ -4,7 +4,8 @@ import {
|
4
|
4
|
Text,
|
5
|
5
|
View
|
6
|
6
|
} from 'react-native';
|
7
|
|
-import RichTextEditor from 'react-native-ZSSRichTextEditor'
|
|
7
|
+import {RichTextEditor, RichTextToolbar} from 'react-native-ZSSRichTextEditor'
|
|
8
|
+import KeyboardSpacer from 'react-native-keyboard-spacer';
|
8
|
9
|
|
9
|
10
|
export default class RichTextExample extends Component {
|
10
|
11
|
|
|
@@ -21,6 +22,10 @@ export default class RichTextExample extends Component {
|
21
|
22
|
style={styles.richText}
|
22
|
23
|
initialHTML={'Hello <b>World</b> <p>this is a new paragraph</p> <p>this is another new paragraph</p>'}
|
23
|
24
|
/>
|
|
25
|
+ <RichTextToolbar
|
|
26
|
+ getEditor={() => this.richtext}
|
|
27
|
+ />
|
|
28
|
+ <KeyboardSpacer/>
|
24
|
29
|
</View>
|
25
|
30
|
);
|
26
|
31
|
}
|