basic React Native SQLite script returning undefined which causes error

后端 未结 3 1725
醉酒成梦
醉酒成梦 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: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

提交回复
热议问题