Section for how to update Android code is wrong. I used the default instructions for building a React Native bare project and the generated Android code looks totally different than what the expo doc above shows, so I have no idea what I’m supposed to change the code to in order to add Expo.
e.g Expo doc thinks that MainActivity’s createReactActivityDelegate() should originally be:
return new MainActivityDelegate(this, getMainComponentName());
but it’s actually:
return new DefaultReactActivityDelegate(
this,
getMainComponentName(),
// If you opted-in for the New Architecture, we enable the Fabric Renderer.
DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
// If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
);