I have use this command on my project:
react-native upgrade
And I'm getting the error when I try to build the app:
android.app.Application cannot be cast to com.facebook.react.ReactApplication
I really don't know how to fix that. Any tip?
As of January 19, 2021, Facebook React Native SDK will no longer be officially supported by Facebook.
React is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody on facebook.com.
Adding the Cast buttonA Cast-enabled application displays the Cast button in each of its activities. Clicking on the Cast button displays a list of Cast devices which a user can select. If the user was playing content locally on the sender device, selecting a Cast device starts or resumes playback on that Cast device.
Adding the following to AndroidManifest.xml should solve the error:
<application
android:name=".MainApplication"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With