Skip to content

Commit acb5cf1

Browse files
Merge pull request #58 from leandrosimoes/develop
Update example project RN version to 0.71.0
2 parents 245fc5a + 889240d commit acb5cf1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+8267
-8280
lines changed

.husky/commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
cd package
5+
yarn commitlint --edit $1

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
cd package
5+
yarn lint

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,21 @@ AppRegistry.registerHeadlessTask(RNAndroidNotificationListenerHeadlessJsName, ()
8484

8585
For more details, see the `example/` project in this repository
8686

87-
## FAQ
87+
## FAQ & Known issues
8888

89-
"There are some limitations regarding the use of the Headless JS by this module that I should care about?"
89+
**There are some limitations regarding the use of the Headless JS by this module that I should care about?**
9090

9191
Yes, there are some nuances that you should concern about. For example, since Headless JS runs in a standalone "Task" you can't interact directly with it by the touch UI.
9292
For more information about using Headless JS in React Native, I suggest you take a look at the official documentation [here](https://reactnative.dev/docs/headless-js-android).
9393

9494
***
9595

96-
"I keep receiving the warning `registerHeadlessTask or registerCancellableHeadlessTask called multiple times for the same key '${taskKey}'`, is that a problem?
96+
**I keep receiving the warning `registerHeadlessTask or registerCancellableHeadlessTask called multiple times for the same key '${taskKey}'`, is that a problem?**
9797

9898
No, this warning is here, where you can see that the task providers are stored in a set, and there's no way to delete them, so react is just complaining about the fact that we are overwriting it.
9999

100100
***
101+
102+
**I allowed the notifications, and the module shows that the notifications are allowed but even then the notifications are not retrieved. There is anything else that I can do in this case?**
103+
104+
It is known that old Android versions and device particularities sometimes require a reboot or even to be turned off completely and then turned on again to have the notification listener working properly.

example/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

example/.eslintrc

Lines changed: 4 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,4 @@
1-
{
2-
"root": true,
3-
"extends": [
4-
"defaults",
5-
"airbnb-typescript-prettier",
6-
"prettier"
7-
],
8-
"globals": {
9-
"__DEV__": true
10-
},
11-
"parser": "@typescript-eslint/parser",
12-
"parserOptions": {
13-
"useJSXTextNode": true,
14-
"project": "./tsconfig.json",
15-
"tsconfigRootDir": "."
16-
},
17-
"rules": {
18-
"@typescript-eslint/no-unused-vars": "off",
19-
"unused-imports/no-unused-imports": "error",
20-
"unused-imports/no-unused-vars": [
21-
"warn",
22-
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
23-
],
24-
"import-helpers/order-imports": [
25-
"warn",
26-
{
27-
"newlinesBetween": "always",
28-
"groups": [
29-
"/^react/",
30-
"/^@/",
31-
"module",
32-
["parent", "sibling", "index"],
33-
],
34-
"alphabetize": { "order": "asc", "ignoreCase": true }
35-
}
36-
],
37-
"radix": 0,
38-
"no-prototype-builtins": 0,
39-
"no-return-await": 0,
40-
"no-empty": 0,
41-
"no-param-reassign": 0,
42-
"react-hooks/exhaustive-deps": 0,
43-
"react/no-array-index-key": 0,
44-
"react/require-default-props": 0,
45-
"@typescript-eslint/ban-ts-ignore": 0,
46-
"@typescript-eslint/interface-name-prefix": 0,
47-
"react/jsx-props-no-spreading": 0,
48-
"react/function-component-definition": 0,
49-
"react/static-property-placement": 0,
50-
"react/jsx-filename-extension": [
51-
1,
52-
{
53-
"extensions": [
54-
".js",
55-
".jsx",
56-
".ts",
57-
".tsx"
58-
]
59-
}
60-
],
61-
"@typescript-eslint/no-empty-function": 0,
62-
"import/prefer-default-export": 0,
63-
"import/extensions": 0,
64-
"import/named": 0,
65-
"import/no-named-as-default": 0,
66-
"import/no-named-as-default-member": 0
67-
},
68-
"plugins": [
69-
"import",
70-
"jsx-a11y",
71-
"prettier",
72-
"react",
73-
"react-hooks",
74-
"@typescript-eslint",
75-
"import-helpers",
76-
"unused-imports"
77-
],
78-
"settings": {
79-
"import/resolver": {
80-
"node": {
81-
"extensions": [".js", ".ts", ".jsx", ".tsx"],
82-
"paths": ["src"]
83-
}
84-
}
85-
}
86-
}
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
};

example/.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/.gitignore

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23+
ios/.xcode.env.local
2324

2425
# Android/IntelliJ
2526
#
@@ -28,32 +29,35 @@ build/
2829
.gradle
2930
local.properties
3031
*.iml
32+
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
3136

3237
# node.js
3338
#
3439
node_modules/
3540
npm-debug.log
3641
yarn-error.log
3742

38-
# BUCK
39-
buck-out/
40-
\.buckd/
41-
*.keystore
42-
!debug.keystore
43-
4443
# fastlane
4544
#
4645
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
4746
# screenshots whenever they are needed.
4847
# For more information about the recommended setup visit:
4948
# https://docs.fastlane.tools/best-practices/source-control/
5049

51-
*/fastlane/report.xml
52-
*/fastlane/Preview.html
53-
*/fastlane/screenshots
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
5454

5555
# Bundle artifact
5656
*.jsbundle
5757

58-
# CocoaPods
58+
# Ruby / CocoaPods
5959
/ios/Pods/
60+
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*

example/.prettierrc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
{
2-
"trailingComma": "es5",
3-
"tabWidth": 4,
4-
"semi": false,
5-
"singleQuote": true,
6-
"jsxSingleQuote": true,
7-
"jsxBracketSameLine": true,
8-
"endOfLine": "auto"
9-
}
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

example/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.6

0 commit comments

Comments
 (0)