Skip to content

Commit f41002a

Browse files
authored
chore: Fix README badge and apply lint (#205)
1 parent 9e45fd0 commit f41002a

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ export const App = () => {
173173
});
174174

175175
const onRemoteNotification = (notification) => {
176-
const isClicked = notification.getData().userInteraction === 1
176+
const isClicked = notification.getData().userInteraction === 1;
177177

178178
if (isClicked) {
179-
// Navigate user to another screen
179+
// Navigate user to another screen
180180
} else {
181-
// Do something else with push notification
181+
// Do something else with push notification
182182
}
183183
};
184-
}
184+
};
185185
```
186186

187187
# Reference
@@ -405,9 +405,9 @@ Removes the event listener. Do this in `componentWillUnmount` to prevent memory
405405

406406
**Parameters:**
407407

408-
| Name | Type | Required | Description |
409-
| ------- | -------- | -------- | ----------- |
410-
| type | string | Yes | Event type. |
408+
| Name | Type | Required | Description |
409+
| ---- | ------ | -------- | ----------- |
410+
| type | string | Yes | Event type. |
411411

412412
---
413413

@@ -471,6 +471,7 @@ See what push permissions are currently enabled.
471471
- `authorizationStatus` :AuthorizationStatus
472472

473473
For a list of possible values of `authorizationStatus`, see `PushNotificationIOS.AuthorizationStatus`. For their meanings, refer to https://developer.apple.com/documentation/usernotifications/unauthorizationstatus
474+
474475
---
475476

476477
### `getInitialNotification()`
@@ -595,8 +596,8 @@ getThreadID();
595596

596597
Gets the thread ID on the notification
597598

598-
[build-badge]: https://img.shields.io/circleci/project/github/react-native-community/push-notification-ios/master.svg?style=flat-square
599-
[build]: https://circleci.com/gh/react-native-community/push-notification-ios
599+
[build-badge]: https://github.com/react-native-push-notification-ios/push-notification-ios/workflows/Build/badge.svg
600+
[build]: https://github.com/react-native-push-notification-ios/push-notification-ios/actions
600601
[version-badge]: https://img.shields.io/npm/v/@react-native-community/push-notification-ios.svg?style=flat-square
601602
[package]: https://www.npmjs.com/package/@react-native-community/push-notification-ios
602603
[license-badge]: https://img.shields.io/npm/l/@react-native-community/push-notification-ios.svg?style=flat-square

js/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ class PushNotificationIOS {
277277
*
278278
* See https://reactnative.dev/docs/pushnotificationios.html#removeeventlistener
279279
*/
280-
static removeEventListener(
281-
type: PushNotificationEventName,
282-
) {
280+
static removeEventListener(type: PushNotificationEventName) {
283281
invariant(
284282
type === 'notification' ||
285283
type === 'register' ||

0 commit comments

Comments
 (0)