Skip to content

Commit c77a25c

Browse files
sesmnecolas
authored andcommitted
[fix] Improve PermissionsAndroid mock
Close #1837
1 parent 4a1b31e commit c77a25c

File tree

1 file changed

+10
-1
lines changed
  • packages/react-native-web/src/exports/PermissionsAndroid

1 file changed

+10
-1
lines changed
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
export default {};
1+
const promiseMock = () => Promise.resolve(false);
2+
export default {
3+
PERMISSIONS: {},
4+
RESULTS: {},
5+
checkPermission: promiseMock,
6+
check: promiseMock,
7+
requestPermission: promiseMock,
8+
request: promiseMock,
9+
requestMultiple: promiseMock
10+
};

0 commit comments

Comments
 (0)