fix: restore CameraScreen visibility on Home screen

This commit is contained in:
2026-06-10 23:26:49 +02:00
parent 851d7b16a0
commit 2ce2de8960
+4 -4
View File
@@ -150,9 +150,9 @@ export default function App() {
<View
style={[
StyleSheet.absoluteFill,
currentScreen !== 'camera' && { opacity: 0, zIndex: -10, transform: [{ translateX: -10000 }] }
(currentScreen === 'preview' || currentScreen === 'admin') && { opacity: 0, zIndex: -10, transform: [{ translateX: -10000 }] }
]}
pointerEvents={currentScreen === 'camera' ? 'auto' : 'none'}
pointerEvents={(currentScreen === 'preview' || currentScreen === 'admin') ? 'none' : 'auto'}
>
<CameraScreen
countdownDuration={settings.countdownDuration}
@@ -210,11 +210,11 @@ export default function App() {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'green',
backgroundColor: '#000',
},
loadingContainer: {
flex: 1,
backgroundColor: 'red',
backgroundColor: '#000',
justifyContent: 'center',
alignItems: 'center',
},