You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust the import from import com.facebook.react.soloader.OpenSourceMergedSoMapping
to import com.facebook.react.soloader.OpenSourceMergedSoMapping;
notice the ;
In additon to the import this part seams to need some adjustmens @OverRide
public void onCreate() {
super.onCreate();
SoLoader.init(this, OpenSourceMergedSoMapping);
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
DefaultNewArchitectureEntryPoint.load();
}
}
should be: @OverRide
public void onCreate() {
super.onCreate();
try {
SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
} catch (IOException e) {
throw new RuntimeException(e);
}
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
DefaultNewArchitectureEntryPoint.load();
}
}
}
according to facebook/react-native#47633
Why is it important?
To keep the content relevant
Who needs this?
The devs
When should this happen (use version numbers if needed)?
Soon
The text was updated successfully, but these errors were encountered:
Description
The java version of the https://reactnative.dev/docs/integration-with-existing-apps?android-language=java#updating-your-application-class has some errors.
What is the problem?
It would throw an error you copy and paste it.
How can we address it?
Adjust the import from
import com.facebook.react.soloader.OpenSourceMergedSoMapping
to
import com.facebook.react.soloader.OpenSourceMergedSoMapping;
notice the
;
In additon to the import this part seams to need some adjustmens
@OverRide
public void onCreate() {
super.onCreate();
}
should be:
@OverRide
public void onCreate() {
super.onCreate();
try {
SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
} catch (IOException e) {
throw new RuntimeException(e);
}
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
DefaultNewArchitectureEntryPoint.load();
}
}
}
according to facebook/react-native#47633
Why is it important?
To keep the content relevant
Who needs this?
The devs
When should this happen (use version numbers if needed)?
Soon
The text was updated successfully, but these errors were encountered: