#16 How To Open Pre Populated SQLite Database In React Native 0.60+ ?

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 50

  • @umairsaeed5055
    @umairsaeed5055 4 роки тому +3

    Thanks alot
    After 1.5 month searching on youtube i found your video
    That one is awesome
    Now I am going to continue my work.
    Thanks

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому +1

      Glad to hear that brother 😇🙏🏻

    • @umairsaeed5055
      @umairsaeed5055 4 роки тому

      Today I followed exactly the same method. I checked for android but it didn't connect. What is the problem? Please help me

  • @varunkhera5461
    @varunkhera5461 4 роки тому +1

    Thanks for the great Tutorial.I created a db file using DB Browser for SQLite on Mac...I followed all the steps you mentioned but still when I run the App in the local database folder 'library/localdatabase/'. it seems that there is always override on my original database file......

  • @KalaiVani-fw7ki
    @KalaiVani-fw7ki 3 роки тому +1

    Hi bro after done with executesql alert is not coming with length of the row.

    • @ItzErHarinder
      @ItzErHarinder  3 роки тому

      It means database is not copied over there. You are missing something.

    • @KalaiVani-fw7ki
      @KalaiVani-fw7ki 3 роки тому +1

      @@ItzErHarinder ok let me check also FYI I am working with windows 10 and checking in android alone

    • @ItzErHarinder
      @ItzErHarinder  3 роки тому

      It should work. Try to delete the app and try again.

    • @shobrisyaiful658
      @shobrisyaiful658 3 роки тому

      how to fix it? my react native v 0.67

  • @vikassonwani773
    @vikassonwani773 4 роки тому +1

    hello, bro i have followed same steps as your for android, in my code database is opening but query is not running in tx.executeSql function. when console tx it is returning some undefined in error and success object. please help me.

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому

      Clear build folder, delete the app and rebuild again.

    • @vikassonwani773
      @vikassonwani773 4 роки тому +1

      @@ItzErHarinder I have cleared build after your suggetion. but i am getting your point of "delete the app"

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому

      Delete the app from android device and reinstall.

    • @vikassonwani773
      @vikassonwani773 4 роки тому

      @@ItzErHarinder I have done this but still it is same postion.
      db.transaction((tx) => {
      console.log(tx)
      tx.executeSql('select * from demo', [], (tx, results) => {
      console.log("Query completed");
      });
      });
      {"db": {"dbname": "sqlite.db", "openError": [Function anonymous], "openSuccess": [Function anonymous], "openargs": {"dblocation": "nosync", "name": "sqlite.db"}}, "error": undefined, "executes": [{"error": [Function anonymous], "params": [Array], "sql": "BEGIN", "success": null}], "fn": [Function anonymous], "readOnly": false, "success": undefined, "txlock": true}
      NOT executing tx.executeSql

    • @shobrisyaiful658
      @shobrisyaiful658 3 роки тому

      how to fix it? my react native v 0.67

  • @วรัญญูวัฒนโรจนาพร

    I have a little problem.
    db.transaction((tx) => {
    console.log('run') // this code is working
    tx.executeSql('SELECT * FROM users', [], (tx, res) => {
    console.log('Query completed');
    // this code isn't working
    });
    });
    Thank you.

  • @vikassonwani773
    @vikassonwani773 4 роки тому +1

    What are the good option for local storage except for async storage?

  • @prajnahegde503
    @prajnahegde503 4 роки тому +1

    Hey, this tutorial is amazing.. I was trying this from 2 days... Only thing which I missed was npx react-native link. Thanks to you. Please make video tutorials for redux with react-native from scratch.

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому +1

      After firebase series; redux will start 😊

  • @denisfs5526
    @denisfs5526 4 роки тому +1

    Thanks for sharing, you help me a lot.

  • @indiohellfox
    @indiohellfox 4 роки тому +1

    Thanks, you really help me! As a tip for the next video, try to be more dynamic! Again, thanks!

  • @roopa_iks
    @roopa_iks 4 роки тому

    Hi iam getting error like undefined is not n object at db.transaction

  • @ardhendugatait4366
    @ardhendugatait4366 2 роки тому

    Can we use .sqlite file instead .db file

  • @littleremix7302
    @littleremix7302 4 роки тому +1

    Nice video sir

  • @darioalves7739
    @darioalves7739 3 роки тому +1

    Hello brother , one suggestion : Do the same video but with Expo !

    • @ItzErHarinder
      @ItzErHarinder  3 роки тому

      Thanks for the idea!

    • @niteews92
      @niteews92 Рік тому

      @@ItzErHarinder Any progress on a video using react-native-sqlite-storage with Expo?

  • @trandinhthang9812
    @trandinhthang9812 2 роки тому

    Hi Bro. Do you know how to "Use pre-populated database file file local storage on phone"

  • @CreativeJE
    @CreativeJE 4 роки тому +4

    Nice tutorial but please turn off all those click sounds they are pretty annoying or better just turn off the sound.

  • @oguzhan2393
    @oguzhan2393 3 роки тому +1

    thanks. but in android also need to use www folder. I am already hearing thanks to me also :D

  • @chirpieful
    @chirpieful 4 роки тому +1

    Good video but please improve on the audio quality. There is a lot of annoying sounds

  • @badboy-ke6hr
    @badboy-ke6hr 3 роки тому

    Can anybody know how to use in expo

  • @littleremix7302
    @littleremix7302 4 роки тому +1

    Please make simple social media using react-native and mysqli

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому

      Means?

    • @littleremix7302
      @littleremix7302 4 роки тому +1

      @@ItzErHarinder means make a simple app which have features like social media using mysql database

    • @littleremix7302
      @littleremix7302 4 роки тому +1

      Is it possible to make an app like this using mysql and react native?

    • @ItzErHarinder
      @ItzErHarinder  4 роки тому

      Chat like app?

    • @littleremix7302
      @littleremix7302 4 роки тому +1

      @@ItzErHarinder yes