Regression in `v0.63.1-2`: `Invariant Violation: No callback found`
See original GitHub issueDescription
First of all, thank you all for the amazing work on this library. I was very happy to see nextFocusUp implemented recently, so I updated to the latest version, but unfortunately it broke my app.
Since the upgrade, the app either refuses to launch or crashes. Here’s the logcat with the error in question:
11-18 21:45:51.975 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
11-18 21:45:52.125 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
11-18 21:45:52.207 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 0 and callID 0 for module <unknown>. Args: '[{"app_state":"active"}]'
11-18 21:45:52.316 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 6 and callID 3 for module <unknown>. Args: '[{"app_state":"active"}]'
11-18 21:45:52.641 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 142 and callID 71 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 36 | \\u001b[39m \\u001b[36mvar\\u001b[39m args \\u00...(truncated)..."]'
11-18 21:45:52.718 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 144 and callID 72 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 17 | \\u001b[39m }\\u001b[0m\\n\\u001b[0m \\u001b[90m 18 |...(truncated)..."]'
11-18 21:45:52.790 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 146 and callID 73 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 36 | \\u001b[39m \\u001b[36mvar\\u001b[39m args \\u00...(truncated)..."]'
11-18 21:45:52.860 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 148 and callID 74 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 17 | \\u001b[39m }\\u001b[0m\\n\\u001b[0m \\u001b[90m 18 |...(truncated)..."]'
11-18 21:45:52.935 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 150 and callID 75 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 36 | \\u001b[39m \\u001b[36mvar\\u001b[39m args \\u00...(truncated)..."]'
11-18 21:45:53.002 11649-11819/com.app_reactnative E/ReactNativeJS: Invariant Violation: No callback found with cbID 152 and callID 76 for module <unknown>. Args: '["{\"codeFrame\":{\"content\":\"\\u001b[0m \\u001b[90m 36 | \\u001b[39m \\u001b[36mvar\\u001b[39m args \\u00...(truncated)..."]'
This message also shows up as an Exception in the app. There’s one more error apart from this:
11-18 21:58:16.387 24190-24190/com.app_reactnative E/unknown:NativeViewHierarchyManager: Unable to update properties for view tag -1
com.facebook.react.uimanager.IllegalViewOperationException: ViewManager for tag -1 could not be found.
at com.facebook.react.uimanager.NativeViewHierarchyManager.resolveViewManager(NativeViewHierarchyManager.java:109)
at com.facebook.react.uimanager.NativeViewHierarchyManager.updateProperties(NativeViewHierarchyManager.java:133)
at com.facebook.react.uimanager.UIImplementation.synchronouslyUpdateViewOnUIThread(UIImplementation.java:291)
at com.facebook.react.uimanager.UIManagerModule.synchronouslyUpdateViewOnUIThread(UIManagerModule.java:400)
at com.facebook.react.animated.PropsAnimatedNode.restoreDefaultValues(PropsAnimatedNode.java:73)
at com.facebook.react.animated.NativeAnimatedNodesManager.restoreDefaultValues(NativeAnimatedNodesManager.java:337)
at com.facebook.react.animated.NativeAnimatedModule$19.execute(NativeAnimatedModule.java:440)
at com.facebook.react.animated.NativeAnimatedModule$2.execute(NativeAnimatedModule.java:158)
at com.facebook.react.uimanager.UIViewOperationQueue$UIBlockOperation.execute(UIViewOperationQueue.java:571)
at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:917)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1028)
at com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:48)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1088)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:779)
at android.view.Choreographer.doCallbacks(Choreographer.java:592)
at android.view.Choreographer.doFrame(Choreographer.java:559)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:767)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5604)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:984)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
I was able to trace the problem back to v0.63.1-2 (it still works fine in 1-1).
I don’t have a reproducible example, but I can work on it if needed. Here’s the diff between v0.63.1-1 and v0.63.1-2..
React Native version:
System:
OS: macOS 10.15.7
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 542.63 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.3 - /var/folders/0g/h2n42hjj70lbz_r2_zw681bm0000gn/T/yarn--1605733585637-0.9636438045664422/node
Yarn: 1.22.5 - /var/folders/0g/h2n42hjj70lbz_r2_zw681bm0000gn/T/yarn--1605733585637-0.9636438045664422/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
Android SDK:
API Levels: 23, 28, 29, 30
Build Tools: 24.0.3, 25.0.0, 28.0.3, 29.0.2, 30.0.2
System Images: android-30 | Google APIs Intel x86 Atom, android-Q | Android TV Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_265 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
I get this error right after running the app in debug mode on a physical Android Fire TV device.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
Invariant Violation: no callback found with cbID for module ...
In my case this was due to a mismatch between the JS react-native version and the native version. Near the top of the...
Read more >View config getter callback for component `div` must be a ...
ERROR Invariant Violation: View config getter callback for component `div` must be a function (received `undefined`).
Read more >Debabala Swain Machine Learning and Information 2020 | PDF
Debabala Swain Machine Learning and Information 2020 - Free ebook download as PDF File (.pdf), Text File (.txt) or read book online for...
Read more >Invariant Violation: no callback found with cbID for module ...
In my case this was due to a mismatch love of them between the JS react-native version and localtext the native version. Near...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You might be having a different issue. Please create a new issue, and if possible include a test case that reproduces the issue. It is recommended to use yarn for react-native based repos.
Could you open the issue again?