@@ -94,14 +94,10 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
94
94
return ;
95
95
}
96
96
97
- // console.log(`[tabStrip.insert] 1 [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
98
-
99
97
const items = tabStrip . items || [ ] ; // Annoyingly, it's the consumer's responsibility to ensure there's an array there!
100
98
if ( typeof atIndex === 'undefined' || atIndex === items . length ) {
101
- // console.log(`[tabStrip.insert] 2a [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
102
99
tabStrip . _addChildFromBuilder ( 'items' , child . nativeView as TabStripItem ) ;
103
100
} else {
104
- // console.log(`[tabStrip.insert] 2b [${parent} > ${child} @${atIndex}] => [${parent.childNodes}]`);
105
101
const itemsClone = items . slice ( ) ;
106
102
itemsClone . splice ( atIndex , 0 , child . nativeView as TabStripItem ) ;
107
103
tabStrip . items = itemsClone ;
@@ -154,7 +150,6 @@ export function registerTabNavigationBase(opts: RegisterTabsOptions = {}): void
154
150
// keep these good practices in case it's ever refactored.
155
151
156
152
if ( child . nodeRole === 'label' ) {
157
- console . log ( `[tabStripItem.insert] LABEL [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
158
153
if ( child . nativeView instanceof Label === false ) {
159
154
if ( enableDebugLogging ) {
160
155
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
164
159
165
160
tabStripItem . label = child . nativeView as Label ;
166
161
} else if ( child . nodeRole === 'image' ) {
167
- console . log ( `[tabStripItem.insert] IMAGE [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
168
162
if ( child . nativeView instanceof Image === false ) {
169
163
if ( enableDebugLogging ) {
170
164
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
174
168
175
169
tabStripItem . image = child . nativeView as Image ;
176
170
} else {
177
- console . log ( `[tabStripItem.insert] OTHER [${ parent } > ${ child } @${ atIndex } ] => [${ parent . childNodes } ]` ) ;
178
171
if ( enableDebugLogging ) {
179
172
warn (
180
173
`Unable to add child "${ child . nativeView . constructor . name } " to <tabStripItem> as it does not have a nodeRole specified; ` +
0 commit comments