Update push example #400
Annotations
2 errors and 12 warnings
Run npm run eslint:
example/src/PushController.tsx#L25
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
Run npm run eslint
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run npm run eslint:
example/src/PushController.tsx#L1
Replace `"@react-native-community/push-notification-ios";` with `'@react-native-community/push-notification-ios'`
|
Run npm run eslint:
example/src/PushController.tsx#L2
Replace `"react";` with `'react'`
|
Run npm run eslint:
example/src/PushController.tsx#L3
Replace `"react-native-push-notification";` with `'react-native-push-notification'`
|
Run npm run eslint:
example/src/PushController.tsx#L4
Replace `"xmtp-react-native-sdk";` with `'xmtp-react-native-sdk'`
|
Run npm run eslint:
example/src/PushController.tsx#L11
Replace `"YOUR_SERVER_ADDRESS",·token.token·as·string);` with `'YOUR_SERVER_ADDRESS',·token.token·as·string)`
|
Run npm run eslint:
example/src/PushController.tsx#L13
Replace `"xmtp-react-native-example-dm"` with `'xmtp-react-native-example-dm'`
|
Run npm run eslint:
example/src/PushController.tsx#L14
Replace `"XMTP·React·Native·Example"` with `'XMTP·React·Native·Example'`
|
|
|
|
Loading