I have created a sample test app to test out sqlite3 with React-Native. As part of my testing I'm intentionally inserting a duplicate record into a table to catch and deal with the error. The app is correctly going into the error callback but Im also getting a mystery warning that I cannot determine the cause from: warning - exception while invoking a callback: {"code":0}
C:\React\SqliteSandbox\DB.tsx:119 Cb Error //<-- Completely expected from error callback
C:\React\SqliteSandbox\node_modules\react-native-sqlite-storage\lib\sqlite.core.js:94 warning - exception while invoking a callback: {"code":0} //<-- I have no idea where this comes from?
C:\React\SqliteSandbox\ScreenOne.tsx:31 ScreenOne Insert Error: [object Object] //<-- this is from the calling button that catches the promise rejection
Context
Trying to evaluate Sqlite for React-Native project to replace Realm DB
Your Environment
React Native SQLite Storage Version used: react-native-sqlite-storage: ^6.0.1
React Native version used: react-native: 0.65.1
Operating System and version (simulator or device): Android 7.1.1
I have created a sample test app to test out sqlite3 with React-Native. As part of my testing I'm intentionally inserting a duplicate record into a table to catch and deal with the error. The app is correctly going into the error callback but Im also getting a mystery warning that I cannot determine the cause from:
warning - exception while invoking a callback: {"code":0}
My insert statement looks like this:
My logs look like this:
Context
Trying to evaluate Sqlite for React-Native project to replace Realm DB
Your Environment