Check out example codes for "sqlMessage: "Table 'Friends' already exists",". It will help you in understanding the concepts better.

Code Example 1

db.execSQL("create table if not exists table_name(rank int, correct_answer int, optionselect int);";

Learn ReactJs, React Native from akashmittal.com