Android Issue: Exception in native call from JS
See original GitHub issue
This occurs on Android when changing FlatList data too rapidly
In addition to that there is a ref issue in the code - you assign an unnecessary ref and also block on the way the forwarded ref
<FlatList
{...props}
ref={(ref) => {
// @ts-ignore
flRef.current = ref;
typeof forwardedRef === 'function' && forwardedRef(ref);
}}
/>
I’ll submit a PR for the refs however, I still would like an insight on why it drops that error
Issue Analytics
- State:
- Created 3 years ago
- Comments:37
Top Results From Across the Web
Exception in native call from JS null · Issue #23418 - GitHub
The exception occurs on Android devices with only 4.x version. It does not occur on 5 and higher Android versions. I guess that...
Read more >E/unknown:React: Exception in native call - Stack Overflow
I resolve this, by deleting the dependency in android\settings.gradle file. That not specified in the build.gradle file. This fix my problem.
Read more >Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >[Solved]-E/unknown:React: Exception in native call-React Native
Firestore Document get request promise doesn't resolve. How do I solve this problem? How do I pass reference to Navigator into renderScene? ......
Read more >Addressing common errors in React Native - LogRocket Blog
All of your app's JavaScript is bundled into the index.android.bundle file. If the bundle file is unavailable or not correctly packaged, you'll ...
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
Have published
0.0.9with latest changes. Thanks once again 😃I usually have 5-10 items in the list in the beginning, but with
0.0.9-dev.1it seems to work most of the time (with the first one working every time). Around 80% of the times it works for me but once it even crashed with the same error if I scrolled very quickly in both directions. Haven’t been able to make it crash again though. For my usecase, this is probably good enough, but might not be for everyone.EDIT: 80% might be around 90-95% instead, it is working quite well now.