android: fix initializing soloader from Activity context

It has to be an application context.
This commit is contained in:
Saúl Ibarra Corretgé 2021-09-16 15:12:15 +02:00 committed by Saúl Ibarra Corretgé
parent adbb5f8ead
commit 06d8956bdb
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class ReactInstanceManagerHolder {
return;
}
SoLoader.init(activity, /* native exopackage */ false);
SoLoader.init(activity.getApplication(), /* native exopackage */ false);
List<ReactPackage> packages
= new ArrayList<>(Arrays.asList(