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 <View
style={[ style={[
StyleSheet.absoluteFill, 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 <CameraScreen
countdownDuration={settings.countdownDuration} countdownDuration={settings.countdownDuration}
@@ -210,11 +210,11 @@ export default function App() {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: 'green', backgroundColor: '#000',
}, },
loadingContainer: { loadingContainer: {
flex: 1, flex: 1,
backgroundColor: 'red', backgroundColor: '#000',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },