Skip to content
Advertisement

MainApplication.java in React Native 0.61.0

I’m migrating my project from React Native 0.59.9 to 0.61.0 (not advisable, but I have my own reasons). In my existing project I have the following code in MainApplication.java:

JavaScript

In MainApplication.java in v0.61.0 the following code is auto-generated (corresponds to the code above):

JavaScript

Does it make sense that I would add the packages from the first part of the code to the second like:

JavaScript

Does this make sense?

Advertisement

Answer

You don’t need to add the packages anymore. RN0.60 and above supports auto-linking. I commented out my packages because they are no longer needed. enter image description here

You will definitely get a similar warning as the image below if you add them. enter image description here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement