chore(sample): fix run of expo sample (#4284)
* chore: fix expo sample tun * chore: update ios sample files
This commit is contained in:
@@ -2,6 +2,7 @@ package com.anonymous.ExpoExample
|
||||
|
||||
import android.app.Application
|
||||
import android.content.res.Configuration
|
||||
import com.brentvatne.react.ReactVideoPackage
|
||||
|
||||
import com.facebook.react.PackageList
|
||||
import com.facebook.react.ReactApplication
|
||||
@@ -22,8 +23,9 @@ class MainApplication : Application(), ReactApplication {
|
||||
object : DefaultReactNativeHost(this) {
|
||||
override fun getPackages(): List<ReactPackage> {
|
||||
// Packages that cannot be autolinked yet can be added manually here, for example:
|
||||
// packages.add(new MyReactNativePackage());
|
||||
return PackageList(this).packages
|
||||
var packages = PackageList(this).packages
|
||||
packages.add(ReactVideoPackage());
|
||||
return packages
|
||||
}
|
||||
|
||||
override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
|
||||
|
Reference in New Issue
Block a user