@@ -41,7 +41,7 @@ class App extends Component {
4141 this . state . value = [ getInitialObject ( ) ] ;
4242
4343 this . editor = null ;
44-
44+
4545 }
4646
4747 onStyleKeyPress = ( toolType ) => {
@@ -305,49 +305,47 @@ class App extends Component {
305305 flexDirection : 'column' ,
306306 justifyContent : 'flex-end' ,
307307 } }
308- >
309- < MenuProvider style = { { flex : 1 } } >
310-
311- < TouchableWithoutFeedback onPress = { Keyboard . dismiss } >
308+ >
309+ < MenuProvider style = { { flex : 1 } } >
310+ < TouchableWithoutFeedback onPress = { Keyboard . dismiss } >
312311 < View style = { styles . main } >
313312 < CNRichTextEditor
314313 ref = { input => this . editor = input }
315314 onSelectedTagChanged = { this . onSelectedTagChanged }
316315 onSelectedStyleChanged = { this . onSelectedStyleChanged }
317316 value = { this . state . value }
318- style = { { backgroundColor : '#fff' , padding : 10 } }
317+ style = { { backgroundColor : '#fff' } }
319318 styleList = { defaultStyles }
320319 //foreColor=''
321320 onValueChanged = { this . onValueChanged }
322321 //onRemoveImage={this.onRemoveImage}
323322 />
324323 </ View >
325- </ TouchableWithoutFeedback >
326-
327- < View style = { {
328- minHeight : 35
329- } } >
330-
331- < CNToolbar
332- size = { 28 }
333- bold = { < MaterialCommunityIcons name = "format-bold" /> }
334- italic = { < MaterialCommunityIcons name = "format-italic" /> }
335- underline = { < MaterialCommunityIcons name = "format-underline" /> }
336- lineThrough = { < MaterialCommunityIcons name = "format-strikethrough-variant" /> }
337- body = { < MaterialCommunityIcons name = "format-text" /> }
338- title = { < MaterialCommunityIcons name = "format-header-1" /> }
339- heading = { < MaterialCommunityIcons name = "format-header-3" /> }
340- ul = { < MaterialCommunityIcons name = "format-list-bulleted" /> }
341- ol = { < MaterialCommunityIcons name = "format-list-numbers" /> }
342- image = { this . renderImageSelector ( ) }
343- foreColor = { this . renderColorSelector ( ) }
344- highlight = { this . renderHighlight ( ) }
345- selectedTag = { this . state . selectedTag }
346- selectedStyles = { this . state . selectedStyles }
347- onStyleKeyPress = { this . onStyleKeyPress } />
348- </ View >
324+ </ TouchableWithoutFeedback >
325+
326+ < View style = { {
327+ minHeight : 35
328+ } } >
329+
330+ < CNToolbar
331+ size = { 28 }
332+ bold = { < MaterialCommunityIcons name = "format-bold" /> }
333+ italic = { < MaterialCommunityIcons name = "format-italic" /> }
334+ underline = { < MaterialCommunityIcons name = "format-underline" /> }
335+ lineThrough = { < MaterialCommunityIcons name = "format-strikethrough-variant" /> }
336+ body = { < MaterialCommunityIcons name = "format-text" /> }
337+ title = { < MaterialCommunityIcons name = "format-header-1" /> }
338+ heading = { < MaterialCommunityIcons name = "format-header-3" /> }
339+ ul = { < MaterialCommunityIcons name = "format-list-bulleted" /> }
340+ ol = { < MaterialCommunityIcons name = "format-list-numbers" /> }
341+ image = { this . renderImageSelector ( ) }
342+ foreColor = { this . renderColorSelector ( ) }
343+ highlight = { this . renderHighlight ( ) }
344+ selectedTag = { this . state . selectedTag }
345+ selectedStyles = { this . state . selectedStyles }
346+ onStyleKeyPress = { this . onStyleKeyPress } />
347+ </ View >
349348 </ MenuProvider >
350-
351349 </ KeyboardAvoidingView >
352350 ) ;
353351 }
0 commit comments