File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -46,22 +46,24 @@ export default class Toolbar extends NativeBaseComponent {
4646
4747 return (
4848 < View { ...this . prepareRootProps ( ) } >
49- { this . props . children [ 0 ] &&
49+ { ! Array . isArray ( this . props . children ) &&
50+ < View >
51+ { this . props . children }
52+ </ View > }
53+
54+ { Array . isArray ( this . props . children ) &&
5055 < View >
5156 { this . props . children [ 0 ] }
5257 </ View > }
53- { this . props . children [ 1 ] &&
58+ { Array . isArray ( this . props . children ) &&
5459 < View >
5560 { this . props . children [ 1 ] }
5661 </ View > }
57- { this . props . children [ 2 ] &&
62+ { Array . isArray ( this . props . children ) &&
5863 < View >
59- { this . props . children [ 2 ] }
60- </ View > }
61- { ! Array . isArray ( this . props . children ) &&
62- < View >
63- { this . props . children }
64+ { this . props . children [ 2 ] }
6465 </ View > }
66+
6567 </ View >
6668 ) ;
6769 }
You can’t perform that action at this time.
0 commit comments