fix: restore CameraScreen visibility on Home screen
This commit is contained in:
@@ -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',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user