I are not able to create database on Android 11, we are having same problem as in issue below:
https://github.com/andpor/react-native-sqlite-storage/issues/462
I are using "react-native-litesync":
This is the code I am using to create the database:
const db = SQLite.openDatabase(
{
name: 'test.db',
},
on_db_open,
on_error,
)
I have placed the test.db file in "android/app/src/main/assets/test.db"
on console, I am getting Error: "[error: could not open database]"
with no further information
Can someone advise a solution.