Skip to content

Commit 4e35503

Browse files
committed
Remove comments
1 parent 52a2016 commit 4e35503

File tree

3 files changed

+2
-80
lines changed

3 files changed

+2
-80
lines changed

example/App.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const getTopPadding = () => {
2020
return 35; // Android
2121
};
2222

23-
type CurrentScreen = 'home' | 'image' | 'video' | 'videoLayer' | 'fullScreenPlayer';
23+
type CurrentScreen = 'home' | 'image' | 'video' | 'videoLayer';
2424

2525
export default function App() {
2626
const [currentScreen, setCurrentScreen] = useState<CurrentScreen>('home');
@@ -41,8 +41,6 @@ export default function App() {
4141
return <AdvancedVideoDemo />;
4242
case 'videoLayer':
4343
return <VideoLayerDemo onBack={navigateHome} />;
44-
case 'fullScreenPlayer':
45-
return <FullScreenPlayerDemo />;
4644
default:
4745
return renderHomeScreen();
4846
}
@@ -85,16 +83,6 @@ export default function App() {
8583
Full-screen video with overlay controls
8684
</Text>
8785
</TouchableOpacity>
88-
89-
<TouchableOpacity
90-
style={[styles.button, styles.fullScreenPlayerButton]}
91-
onPress={() => navigateToScreen('fullScreenPlayer')}
92-
>
93-
<Text style={styles.buttonTitle}>🎭 Full Screen Player With Layer</Text>
94-
<Text style={styles.buttonDescription}>
95-
Immersive full-screen player with interactive layers
96-
</Text>
97-
</TouchableOpacity>
9886
</View>
9987

10088
<View style={styles.footerContainer}>

example/FullScreenPlayerDemo.tsx

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/widgets/video/layer/CLDVideoLayer.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)