We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be8119 commit b8adb13Copy full SHA for b8adb13
example/App.js
@@ -81,17 +81,7 @@ export default class App extends React.Component<{}, State> {
81
82
Permissions.request(permission, options)
83
.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
- }
+ this.setState({status: {...this.state.status, [permission]: result}});
95
})
96
.catch(error => console.warn(error));
97
};
0 commit comments