fix: microphone persmission request wasn't appearing (#418)
This commit is contained in:
parent
58e586220e
commit
76137751b8
@ -47,7 +47,7 @@ export const Splash: NavigationFunctionComponent = ({ componentId }) => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (cameraPermissionStatus === 'authorized' && microphonePermissionStatus !== 'not-determined') {
|
||||
if (cameraPermissionStatus === 'authorized' && microphonePermissionStatus === 'authorized') {
|
||||
Navigation.setRoot({
|
||||
root: {
|
||||
stack: {
|
||||
@ -77,7 +77,7 @@ export const Splash: NavigationFunctionComponent = ({ componentId }) => {
|
||||
</Text>
|
||||
</Text>
|
||||
)}
|
||||
{microphonePermissionStatus === 'not-determined' && (
|
||||
{microphonePermissionStatus !== 'authorized' && (
|
||||
<Text style={styles.permissionText}>
|
||||
Vision Camera needs <Text style={styles.bold}>Microphone permission</Text>.
|
||||
<Text style={styles.hyperlink} onPress={requestMicrophonePermission}>
|
||||
|
Loading…
Reference in New Issue
Block a user