Basic React Native Sqlite Script Returning Undefined Which Causes Error
I'm trying to learn to use react-native-sqlite-storage as described on this page here: https://github.com/andpor/react-native-sqlite-storage I am working on a windows machine tryin
Solution 1:
the problem is the library is not linked to link they suggest two ways
- with pod (advanced)
- with
rnpm link(easy) but this command is deprecated
so to link the library you should use the
react-native link react-native-sqlite-storage
this command is equal to rnpm link but not deprecated
if automatic build failing try with manual linking for iOS manually linking ios and android manually linking android
Solution 2:
lstat command error is generating on windows due to permission issues or npm version issues.
You can do 2 things to pass this. 1.Open terminal in admin mode . 2.upgrade/degrade npm version
For plugin installation, configure manually
Solution 3:
You need change MainApplication.java with:
import org.pgsqlite.SQLitePluginPackage;
and
in getPackages:
new SQLitePluginPackage()
Post a Comment for "Basic React Native Sqlite Script Returning Undefined Which Causes Error"