properly load sqlite module
This commit is contained in:
parent
66ac82bb34
commit
5e9c0c12d2
|
@ -123,5 +123,7 @@ dependencies {
|
|||
compile "com.facebook.react:react-native:0.19.+"
|
||||
|
||||
compile project(":realm")
|
||||
compile project(':react-native-sqlite-storage')
|
||||
|
||||
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
|
||||
import io.realm.react.RealmReactPackage;
|
||||
import org.pgsqlite.SQLitePluginPackage;
|
||||
|
||||
public class MainActivity extends ReactActivity {
|
||||
|
||||
|
@ -36,7 +37,7 @@ public class MainActivity extends ReactActivity {
|
|||
@Override
|
||||
protected List<ReactPackage> getPackages() {
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage(), new RealmReactPackage()
|
||||
new MainReactPackage(), new RealmReactPackage(), new SQLitePluginPackage(this)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,3 +5,7 @@ include ':app'
|
|||
// realm dependency
|
||||
include ':realm'
|
||||
project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
|
||||
|
||||
include ':react-native-sqlite-storage'
|
||||
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')
|
||||
|
||||
|
|
Loading…
Reference in New Issue