import { NavigationContainer } from '@react-navigation/native' import React from 'react' import { createNativeStackNavigator } from '@react-navigation/native-stack' import { PermissionsPage } from './PermissionsPage' import { MediaPage } from './MediaPage' import { CameraPage } from './CameraPage' import { CodeScannerPage } from './CodeScannerPage' import type { Routes } from './Routes' import { Camera } from 'react-native-vision-camera' import { GestureHandlerRootView } from 'react-native-gesture-handler' import { StyleSheet } from 'react-native' import { DevicesPage } from './DevicesPage' const Stack = createNativeStackNavigator() export function App(): React.ReactElement | null { const cameraPermission = Camera.getCameraPermissionStatus() const microphonePermission = Camera.getMicrophonePermissionStatus() console.log(`Re-rendering Navigator. Camera: ${cameraPermission} | Microphone: ${microphonePermission}`) const showPermissionsPage = cameraPermission !== 'granted' || microphonePermission === 'not-determined' return ( ) } const styles = StyleSheet.create({ root: { flex: 1, }, })