Skip to content

Commit fd99b32

Browse files
committed
Update project dependencies
1 parent eeedc79 commit fd99b32

File tree

7 files changed

+3603
-3479
lines changed

7 files changed

+3603
-3479
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ checkNotifications().then(({status, settings}) => {
770770

771771
Request notifications permission status and get notifications settings values.
772772

773-
You cannot request notifications permissions on Windows. Disabling or enabling notifications can only be done through the App Settings.
773+
You cannot request notifications permissions on Windows. Disabling or enabling notifications can only be done through the App Settings.
774774
You cannot request notifications permissions on Android. `requestNotifications` is the same than `checkNotifications` on this platform.
775775

776776
```ts
@@ -790,9 +790,7 @@ type NotificationSettings = {
790790
notificationCenter?: boolean;
791791
};
792792

793-
function requestNotifications(
794-
options: NotificationOption[],
795-
): Promise<{
793+
function requestNotifications(options: NotificationOption[]): Promise<{
796794
status: PermissionStatus;
797795
settings: NotificationSettings;
798796
}>;
@@ -932,20 +930,20 @@ If you are requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, there won't be a `Alway
932930

933931
When requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, if the user choose `Allow While Using App`, a provisional "always" status will be granted. The user will see `While Using` in the settings and later will be informed that your app is using the location in background. That looks like this:
934932

935-
![alt text](https://camo.githubusercontent.com/e8357168f4c8e754adfd940fc065520de838a21a80001839d5e740c18893ec67/68747470733a2f2f636d732e717a2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30392f696f732d31332d6c6f636174696f6e732d7465736c612d31393230783938322e6a70673f7175616c6974793d37352673747269703d616c6c26773d3132303026683d3930302663726f703d31 "Screenshot")
933+
![alt text](https://camo.githubusercontent.com/e8357168f4c8e754adfd940fc065520de838a21a80001839d5e740c18893ec67/68747470733a2f2f636d732e717a2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30392f696f732d31332d6c6f636174696f6e732d7465736c612d31393230783938322e6a70673f7175616c6974793d37352673747269703d616c6c26773d3132303026683d3930302663726f703d31 'Screenshot')
936934

937-
Subsequently, if you are requesting `LOCATION_ALWAYS` permission, there is no need to request `LOCATION_WHEN_IN_USE`. If the user accepts, `LOCATION_WHEN_IN_USE` will be granted too. If the user denies, `LOCATION_WHEN_IN_USE` will be denied too.
935+
Subsequently, if you are requesting `LOCATION_ALWAYS` permission, there is no need to request `LOCATION_WHEN_IN_USE`. If the user accepts, `LOCATION_WHEN_IN_USE` will be granted too. If the user denies, `LOCATION_WHEN_IN_USE` will be denied too.
938936

939937
### Testing with Jest
940938

941939
If you don't already have a Jest setup file configured, please add the following to your Jest configuration file and create the new `jest.setup.js` file in project root:
942940

943941
```js
944-
setupFiles: ['<rootDir>/jest.setup.js']
942+
setupFiles: ['<rootDir>/jest.setup.js'];
945943
```
946944

947945
You can then add the following line to that setup file to mock the `NativeModule.RNPermissions`:
948946

949947
```js
950-
jest.mock('react-native-permissions', () => require('react-native-permissions/mock'))
948+
jest.mock('react-native-permissions', () => require('react-native-permissions/mock'));
951949
```

0 commit comments

Comments
 (0)