fix: Fix AppState.removeListener warning by using new API (#419)

* refactor: suppress AppState.removeListener warning by deprecation

AppState.AddEventListener returns a remove function subscription,
which replaces the removeListener method

* fix: Property 'remove' does not exist on type 'void'

* chore: add missing trailing comma

* chore: update react-native static types version
This commit is contained in:
Antonio Sousa
2021-09-22 08:25:15 -03:00
committed by GitHub
parent ffb4a188a2
commit 1a4fd7a233
3 changed files with 13 additions and 4 deletions

View File

@@ -35,7 +35,7 @@
"@react-native-community/eslint-config": "^3.0.0",
"@react-native-community/eslint-plugin": "^1.1.0",
"@types/react": "^17.0.19",
"@types/react-native": "^0.64.13",
"@types/react-native": "^0.65.0",
"@types/react-native-vector-icons": "^6.4.6",
"@types/react-native-video": "^5.0.5",
"babel-plugin-module-resolver": "^4.1.0",