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.

Compile error after updating React - signature of getJSEventName() changed

See original GitHub issue

I’ve updated react to 16.6.0-alpha.8af6728 (This was required as a workaround, as I also updated ReactNative to 0.57.3. Updating ReactNative was required because it includes a workaround for an issue when updating Gradle plugin to 3.2.0)

After updating I got an error in: RecyclerViewBackedScrollViewManager

The error was due to a signature change of the method getJSEventName(). in: getExportedCustomDirectEventTypeConstants() error: ScrollEventType.SCROLL.getJSEventName()

Adding an enum parameter solves the compilation problem, but I don’t know whether this is a good fix. I also don’t know which of the enums makes most sense. I tested with ScrollEventType.SCROLL and it seems to work with some simple use cases. I haven’t done extensive testing yet though.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

1reaction
henrikracommented, May 13, 2019

Since this fix hasn’t been merged yet I have forked this library and I published the fixed version to npm. You can install version of react-native-recyclerview-list which supports React Native 0.57.3 and up with npm i react-native-recyclerview-fixed.

You can use that version until the maintainer of this library wakes up 😴

0reactions
sterboncommented, Dec 14, 2018

@Sterbon PR #33 fixes this

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · godness84/react-native-recyclerview-list - GitHub
Contribute to godness84/react-native-recyclerview-list development by ... Compile error after updating React - signature of getJSEventName() changed.
Read more >
react-signature-canvas - npm
A React wrapper component around signature_pad. Unopinionated and heavily updated fork of react-signature-pad. Latest version: 1.0.6, ...
Read more >
Hooks API Reference - React
If you update a State Hook to the same value as the current state, React ... It has the same signature as useEffect...
Read more >
How To Build a Digital Signature Pad in React - Common Ninja
React signature canvas is a wrapper component around signature_pad based on HTML5 canvas for drawing signatures. To get started with it ...
Read more >
React Hooks cheat sheet: Best practices with examples
Editor's note: This React Hooks tutorial was last updated in ... React useState and setState don't make changes directly to the state object ......
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