We are using React Native for more than 2 years now, however, recently (mainly on M1 machines) we are facing problems in debug mode when using the latest React Native versions (say 0.66 and above) With these latest RN versions
We are using React Native for more than 2 years now, however, recently (mainly on M1 machines) we are facing problems in debug mode when using latest React Native versions (say 0.66 and above) With these latest RN versions we are using latest version of react-navigation/drawer as well which internally uses react-native-reanimated. This reanimated library is majorly causing trouble in debug mode.
To resolve above issue added below block of snippet in apps’ build.gradle file
And thus here was our solution which worked on M1 machine which was nothing else than to downgrade the existing React Native version to:
Please make sure you’re also running
“react-native link” command, libraries are saying that they support auto-linking but not all are and that solved the issue for us.
Few of other important points are:
1. If you encounter duplicate resources issue run command -
rm -rf android/app/src/main/res/raw*
rm -rf android/app/src/main/res/drawable*
2. If you encounter "unknown: ReactNative: Exception in native call"
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
This works well in all modes and we could now debug the issues. I hope you will find the post insightful and if there’s any update you want us to provide please don’t hesitate to contact or please comment below.
Have you ever thought, how one app can work on different platforms? That's because of cross-platform development frameworks like Flutter and React Native. But, which one is better? Read this blog to find out
The world of data analytics is full of bewildering acronyms, new technologies, and rapidly evolving best practices. One way to get a better handle on this complex field is to explore what the functions are that your business analytics tools should have to help you improve your company’s bottom line.
To keep pace with swift development, we needed a test framework which able to handle all the current and future Quality Assurance requirements for Web Applications and microservices, routinely carry out testing/monitoring of individual Product Dashboards...