Skip to content

Commit b8adb13

Browse files
committed
Remove annoying alert
1 parent 8be8119 commit b8adb13

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

example/App.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,7 @@ export default class App extends React.Component<{}, State> {
8181

8282
Permissions.request(permission, options)
8383
.then(result => {
84-
this.setState({
85-
status: {...this.state.status, [permission]: result},
86-
});
87-
88-
if (result != 'authorized') {
89-
Alert.alert(
90-
'Whoops!',
91-
'There was a problem getting your permission. Please enable it from settings.',
92-
[{text: 'Cancel', style: 'cancel'}],
93-
);
94-
}
84+
this.setState({status: {...this.state.status, [permission]: result}});
9585
})
9686
.catch(error => console.warn(error));
9787
};

0 commit comments

Comments
 (0)