GeekyAnts / GeekyAnts/NativeBase

EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated

Open
#5,539 6 comments 0 reactions 0 assignees View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.

### CodeSandbox/Snack link

private project

### Steps to reproduce

1. Launch the app
2. Warning will appear

```
EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.
HybridProvider@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.****&modulesOnly=false&runModule=true:205845:24
ResponsiveQueryProvider@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.****&modulesOnly=false&runModule=true:134223:14
RNCSafeAreaProvider
SafeAreaProvider@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.****&modulesOnly=false&runModule=true:145976:24
NativeBaseConfigProviderProvider@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.****&modulesOnly=false&runModule=true:127219:27
NativeBaseProvider@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.****&modulesOnly=false&runModule=true:205734:33
```

### NativeBase Version

3.4.5
3.4.21
3.4.22

### Platform

- [X] Android
- [ ] CRA
- [ ] Expo
- [X] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

This happened on react-native 0.68.2

It was mentioned on #5446 but seems like it got forgotten, #5446 had a different react-native version too, which was rn 0.69.6.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.