basic React Native SQLite script returning undefined which causes error

后端 未结 3 1698
醉酒成梦
醉酒成梦 2021-01-27 12:14

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 w

相关标签:
3条回答
  • 2021-01-27 12:26

    You need change MainApplication.java with:

    import org.pgsqlite.SQLitePluginPackage;

    and

    in getPackages:

    new SQLitePluginPackage()

    0 讨论(0)
  • 2021-01-27 12:35

    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

    0 讨论(0)
  • 2021-01-27 12:41

    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

    0 讨论(0)
提交回复
热议问题