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(() => {
|
useEffect(() => {
|
||||||
if (cameraPermissionStatus === 'authorized' && microphonePermissionStatus !== 'not-determined') {
|
if (cameraPermissionStatus === 'authorized' && microphonePermissionStatus === 'authorized') {
|
||||||
Navigation.setRoot({
|
Navigation.setRoot({
|
||||||
root: {
|
root: {
|
||||||
stack: {
|
stack: {
|
||||||
@ -77,7 +77,7 @@ export const Splash: NavigationFunctionComponent = ({ componentId }) => {
|
|||||||
</Text>
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{microphonePermissionStatus === 'not-determined' && (
|
{microphonePermissionStatus !== 'authorized' && (
|
||||||
<Text style={styles.permissionText}>
|
<Text style={styles.permissionText}>
|
||||||
Vision Camera needs <Text style={styles.bold}>Microphone permission</Text>.
|
Vision Camera needs <Text style={styles.bold}>Microphone permission</Text>.
|
||||||
<Text style={styles.hyperlink} onPress={requestMicrophonePermission}>
|
<Text style={styles.hyperlink} onPress={requestMicrophonePermission}>
|
||||||
|
Loading…
Reference in New Issue
Block a user