@@ -37,7 +37,6 @@ export class CLDVideoLayer extends React.Component<CLDVideoLayerProps, CLDVideoL
3737 // Get initial orientation
3838 const { width, height } = Dimensions . get ( 'window' ) ;
3939 const initialIsLandscape = width > height ;
40- console . log ( '🏗️ Initial orientation setup:' , { width, height, initialIsLandscape } ) ;
4140
4241 this . state = {
4342 status : null ,
@@ -123,9 +122,7 @@ export class CLDVideoLayer extends React.Component<CLDVideoLayerProps, CLDVideoL
123122 if ( this . state . isControlsVisible ) {
124123 this . startAutoHideTimer ( ) ;
125124 }
126-
127- // Listen for orientation changes
128- console . log ( '🚀 Setting up orientation listener. Initial state:' , this . state . isLandscape ) ;
125+
129126
130127 // Try multiple approaches for orientation detection
131128 this . orientationSubscription = Dimensions . addEventListener ( 'change' , this . handleOrientationChange ) ;
@@ -135,12 +132,9 @@ export class CLDVideoLayer extends React.Component<CLDVideoLayerProps, CLDVideoL
135132 const { width, height } = Dimensions . get ( 'window' ) ;
136133 const isLandscape = width > height ;
137134 if ( isLandscape !== this . state . isLandscape ) {
138- console . log ( '🔄 Orientation detected via polling:' , { width, height, isLandscape } ) ;
139135 this . setState ( { isLandscape } ) ;
140136 }
141137 } , 500 ) ;
142-
143- console . log ( '✅ Orientation listener registered' ) ;
144138 }
145139
146140 componentWillUnmount ( ) {
@@ -161,14 +155,7 @@ export class CLDVideoLayer extends React.Component<CLDVideoLayerProps, CLDVideoL
161155 handleOrientationChange = ( { window } : any ) => {
162156 const { width, height } = window ;
163157 const isLandscape = width > height ;
164- console . log ( '🔄 Orientation change detected:' , {
165- width,
166- height,
167- isLandscape,
168- currentState : this . state . isLandscape
169- } ) ;
170158 if ( isLandscape !== this . state . isLandscape ) {
171- console . log ( '📱 Updating orientation state to:' , isLandscape ) ;
172159 this . setState ( { isLandscape } ) ;
173160 }
174161 } ;
@@ -307,9 +294,6 @@ export class CLDVideoLayer extends React.Component<CLDVideoLayerProps, CLDVideoL
307294
308295 // Get responsive styles based on current orientation
309296 const responsiveStyles = getResponsiveStyles ( isLandscape ) ;
310-
311- // Debug log for render
312- console . log ( '🎨 Rendering with isLandscape:' , isLandscape ) ;
313297
314298 return (
315299 < TouchableOpacity
0 commit comments