Skip to content

Commit

Permalink
fix: microphone persmission request wasn't appearing (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
developerantoniosousa committed Sep 11, 2021
1 parent 58e5862 commit 7613775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/Splash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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}>
Expand Down

0 comments on commit 7613775

Please sign in to comment.