How to use SwiperJS with Ionic (Swiper in Ionic Framework with React)

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • With the IonSlides being deprecated in v6 of Ionic - We need to look for other ways to implement a touch slider within our Ionic Framework mobile apps.
    Luckily, the IonSlides within the Ionic Framework used SwiperJS under the hood (as pointed out in the documentation), and now being available for all JavaScript frameworks, we're able to reach for this package to handle this functionality for us.
    This is a tutorial where I take you through an example of the usage of the SwiperJS slides within a travel style app, then show you a step by step guide on the code implementation.
    #############################
    🔗 Ionic React Travel App UI (with code)
    ionicreacthub.com/ionic-react...
    🔗 Tutorial code
    github.com/alanmontgomery/ion...
    🔗 SwiperJS modern mobile touch slider
    swiperjs.com
    🔗 SwiperJS React documentation
    swiperjs.com/react
    🔗 IonSlides documentation (for reference)
    ionicframework.com/docs/api/s...
    🎉 Reach out to me
    / 93alan
    💙 UI Examples with Code and Live Demos
    ionicreacthub.com
    #############################
    00:00 Introduction
    00:20 IonSlides brief mention
    01:02 What is SwiperJS?
    01:52 App example with SwiperJS
    03:08 Code Tutorial
    #ionic #capacitor #webnative #swiperjs #react #reactjs #ionicreact
  • ХоббиХобби

Комментарии • 39

  • @AlanMontgomery
    @AlanMontgomery  3 года назад +5

    Hey guys! Make sure to leave a little like please! Subscribe if you enjoyed this video and to get more in the near future!

  • @connygu
    @connygu 2 года назад +1

    Great job, Alan! I am just searching this!!!

  • @musanzawanga2083
    @musanzawanga2083 2 года назад +1

    Your videos very comprehensive. Drop more content like this! 💙

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +2

      Wow thank you so much! I have a lot of content planned starting in the next few weeks.. 🙌

    • @musanzawanga2083
      @musanzawanga2083 2 года назад

      @@AlanMontgomery Awesome. Can't wait! 👍

  • @jpxcar
    @jpxcar 2 года назад +1

    Great video, thanks!

  • @theday1journey703
    @theday1journey703 2 года назад +1

    adding the slider to my app... and putting you in the background for coding along!

    • @AlanMontgomery
      @AlanMontgomery  2 года назад

      Aw that’s great man thanks so much! Glad I can help out!

  • @yannicknana
    @yannicknana 3 года назад +1

    Loving your content !

    • @AlanMontgomery
      @AlanMontgomery  3 года назад

      Thanks so much man! Means a lot to me 😀😀🙏 hopefully this was helpful!

  • @mafiakingc
    @mafiakingc 2 года назад +1

    You are awesome man ❤️❤️

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      Thanks so much for that man! Means a lot! Glad you liked it!! Hope to see you around here :)

  • @blakebedford-palmer6676
    @blakebedford-palmer6676 3 года назад +1

    Interesting! I have been using Ion-Slides to do kind of tinder style swiping

    • @AlanMontgomery
      @AlanMontgomery  3 года назад

      Awesome! Hopefully this video will help you convert to SwiperJS then! 😀

  • @JoshuaMorony
    @JoshuaMorony 3 года назад +1

    Nice one Alan!

  • @MrAvelino2010
    @MrAvelino2010 Год назад +1

    how do you start a project with js instead typescript

  • @mdmoinuddinkamal3412
    @mdmoinuddinkamal3412 2 года назад +1

    Thanks for .very helpful content brother. you can make new content for react.js or others javascript libraries.

    • @AlanMontgomery
      @AlanMontgomery  2 года назад

      No problem at all I’m glad it’s helpful! Yes for sure, new content coming in the next week 💪

  • @MrAvelino2010
    @MrAvelino2010 Год назад +1

    Can you make series of reac ionic routes, tabs, nested routes, params etc the doc it´s not clear and there´s no good examples provide

    • @AlanMontgomery
      @AlanMontgomery  Год назад +1

      Have a look at this playlist
      Ionic Tab Bar/Tabs
      ruclips.net/p/PLaeoIQ5GBVooYaCdARSkpc8diEasoBm_q

  • @gtanmoy
    @gtanmoy 2 года назад +1

    Nice video!...How do you get the live view of the app in your real device! If you have any video about how to get the live view in our real mobile device using ionic react please let me know

    • @AlanMontgomery
      @AlanMontgomery  2 года назад

      Hey ! Thanks so much for the comment. I actually get asked this a lot so I have planned a video "How to" for this specific topic!

  • @justinrubinssonaugustine703
    @justinrubinssonaugustine703 2 года назад +1

    hi. do you know if this could be used with the ionreactrouter to be like a swipe able tab?

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      This definitely could work. We could move the router on swipes. I’ve noted this as a video idea as I’ve a batch of new video content coming in the next few weeks.

    • @justinrubinssonaugustine703
      @justinrubinssonaugustine703 2 года назад +1

      @@AlanMontgomery that's great news! I have been trying to figure out how to combine the components for a while and haven't had much luck.

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      Amazing ! This will definitely help then

    • @justinrubinssonaugustine703
      @justinrubinssonaugustine703 Год назад

      @@AlanMontgomery hi Alan. I managed to get the ion router combined with swipe gestures working. However it becomes very laggy after a few minutes of the app running. Do you have any idea why this may be?

  • @kabileshs9617
    @kabileshs9617 2 года назад +1

    Hi Alan..Thanks for the video..Its a great content....I almost solved my problem...Unless I could not swipe across the images...Kindly help me

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      No problem at all! It’s my pleasure!
      Did you follow my implementation? If you have a link to GitHub project with your example I could take a look for you!

  • @victormbarachi4701
    @victormbarachi4701 2 года назад +1

    Hello , thank you so much for this video, However the pagination doesn't show on mobile device.

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      Thanks man I appreciate it! You have to import the pagination through the core SwiperJS modules have you tried that?

    • @victormbarachi4701
      @victormbarachi4701 2 года назад +1

      @@AlanMontgomery No I haven't how do I achieve that please? Thank you!

    • @AlanMontgomery
      @AlanMontgomery  2 года назад +1

      @@victormbarachi4701 check out swiperjs.com/react under usage scroll down to the pagination part