@@ -94,14 +94,10 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
9494 return ;
9595 }
9696
97- // console.log(`[tabStrip.insert] 1 [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
98-
9997 const items = tabStrip . items || [ ] ; // Annoyingly, it's the consumer's responsibility to ensure there's an array there!
10098 if ( typeof atIndex === 'undefined' || atIndex === items . length ) {
101- // console.log(`[tabStrip.insert] 2a [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
10299 tabStrip . _addChildFromBuilder ( 'items' , child . nativeView as TabStripItem ) ;
103100 } else {
104- // console.log(`[tabStrip.insert] 2b [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
105101 const itemsClone = items . slice ( ) ;
106102 itemsClone . splice ( atIndex , 0 , child . nativeView as TabStripItem ) ;
107103 tabStrip . items = itemsClone ;
@@ -154,7 +150,6 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
154150 // keep these good practices in case it's ever refactored.
155151
156152 if ( child . nodeRole === 'label' ) {
157- console . log ( `[tabStripItem.insert] LABEL [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
158153 if ( child . nativeView instanceof Label === false ) {
159154 if ( enableDebugLogging ) {
160155 warn ( `Unable to add child "${ child . nativeView . constructor . name } " to the items of <tabStripItem> as it is not an instance of Label.` ) ;
@@ -164,7 +159,6 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
164159
165160 tabStripItem . label = child . nativeView as Label ;
166161 } else if ( child . nodeRole === 'image' ) {
167- console . log ( `[tabStripItem.insert] IMAGE [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
168162 if ( child . nativeView instanceof Image === false ) {
169163 if ( enableDebugLogging ) {
170164 warn ( `Unable to add child "${ child . nativeView . constructor . name } " to the items of <tabStripItem> as it is not an instance of Image.` ) ;
@@ -174,7 +168,6 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
174168
175169 tabStripItem . image = child . nativeView as Image ;
176170 } else {
177- console . log ( `[tabStripItem.insert] OTHER [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
178171 if ( enableDebugLogging ) {
179172 warn (
180173 `Unable to add child "${ child . nativeView . constructor . name } " to <tabStripItem> as it does not have a nodeRole specified; ` +
0 commit comments