react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Hi, I'm trying to add sqlite support to my Android app but am getting the following error:

Open FredOleary opened this issue 8 years ago • 1 comments

Requiring unknown module "493".If you are sure the module is there, try restarting Metro Bundler. You may also want to run yarn, or npm install (depending on your environment). unknownModuleError

The error message doesn't say what the "unknownModule" is but this happened only after I added sqlite. I see the react-native-sqlite-storage package in the android studio project and the project builds with no errors so I suspect the apk isn't correct since I get the above error at runtime. (I'm running on a virtual tablet) Any ideas much apprectiated

FredOleary avatar May 22 '18 00:05 FredOleary

Ok. Found it. You really do need to restart the Metro Bundler after making changes to native code. E.g. adding the SQLLite reference

FredOleary avatar May 22 '18 17:05 FredOleary