React native 如何修复';undefined不是对象(评估';NativeModules[“SQLite”][方法]';)';

React native 如何修复';undefined不是对象(评估';NativeModules[“SQLite”][方法]';)';,react-native,react-native-sqlite-storage,React Native,React Native Sqlite Storage,我无法在我的应用程序中使用“react native sqlite storage”。我正在使用expo构建纯react原生应用程序 我已经尝试重新安装react-native,但没有成功 这是我的package.json- "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "exp

我无法在我的应用程序中使用“react native sqlite storage”。我正在使用expo构建纯react原生应用程序

我已经尝试重新安装react-native,但没有成功

这是我的package.json-

"main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "@expo/vector-icons": "^10.0.1",
    "axios": "^0.18.0",
    "expo": "^32.0.0",
    "native-base": "^2.12.1",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-camera": "^2.10.0",
    "react-native-camera-kit": "^8.0.0",
    "react-native-easy-grid": "^0.2.1",
    "react-native-sqlite-storage": "^3.3.10",
    "react-navigation": "^3.11.0",
    "realm": "^2.28.1"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },
  "private": true
}

库未链接到其本机代码。 如果您正在使用Expo,您可以使用


如果要使用react native sqlite存储,则必须弹出应用程序并链接库,如图所示

库未链接到其本机代码。 如果您正在使用Expo,您可以使用

如果要使用react native sqlite storage,则必须弹出应用程序并链接库,如图所示