question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EventEmitter deprecated in React Native 0.65

See original GitHub issue

Receiving a deprecation warning for Dripsy.Text:

EventEmitter.removeListener('change', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`. 
Dripsy.Text@http://192.168.114.127:8081/...

Specific code that it is referencing with deprecation notice is this:

const Subtitle = () => (
  <Text
    variant="thick.h1"
    sx={{
      color: titleColor ? titleColor : secondaryColor,
      marginBottom: 1,
    }}>
    {subtitle}
  </Text>
);

Deprecation notice is referring to this change: https://github.com/facebook/react-native/commit/14f7a2b70754c92804d746959d1ff091bf49af69

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
nandorojocommented, Sep 29, 2021
Screen Shot 2021-09-29 at 5 15 13 PM

I see, so this should do it. Will push to the v3 @canary

0reactions
nandorojocommented, Sep 29, 2021

The version that works for me is 3.0.0-alpha.39 (I just published again)

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Warning: Receiving warning from the console
Once you are sure that the deprecated use is happening in a dependency you cannot control, it is possible to silence these warnings....
Read more >
rcteventemitter deprecated | The AI Search Engine You Control
Although this is not a bug per se, react-native-webview is not optimised for RN version >= 0.65. When I build Android I get...
Read more >
Keyboard - React Native
The Keyboard module allows you to listen for native events and react to them, as well as make changes to the keyboard, like...
Read more >
types/react-native/index.d.ts - UNPKG
The CDN for @types/react-native. ... 169, * for removing the subscription lies with the EventEmitter. ... 371, * @deprecated Use NativeMethods instead.
Read more >
Changelog | React Native SDK | API References - Voximplant
Update native Android and iOS modules to use Voximplant Android SDK 2.34.0 and Voximplant iOS ... Fix for #132: event emitter warnings on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found