TIKTOK Clone React Native Tutorial 2021 👨‍💻 - React Native Video Feed with FlatList (#9)

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2024

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

  • @SimpleCoder
    @SimpleCoder  3 года назад +2

    In this TikTok clone video, we'll be implementing a video feed system by making full use of the FlatList component and optimizing it in a way that we are able to fully control the video playback, making the feed smooth and free from crashes caused by poorly managed memory
    If you have any questions just let me know down below in the comment section 👇

  • @__Time__clock
    @__Time__clock 3 года назад +3

    This is great. I stopped watching clone tutorials because if I wanted the software to work I would need to deploy and maintain it. but this video is a good entertainment pass time.

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

      Awesome Joel! Really glad you are enjoying it 😊

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

    One simple tip, there is a hook tthat lets you find out the actual height of the bar without guessing or having a static value for one device. Its called "useBottomTabBarHeight". This is if you are using react navigation as your navigation library.

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

      But you need expo for that.. and expo doesn't recognize most dependencies.

    • @fnc.owenmelbz
      @fnc.owenmelbz Год назад

      @@jeankaelaugustin641 "most" is probably an exaggeration unless you need obscure packages

    • @emanuelmejia4525
      @emanuelmejia4525 Месяц назад

      @@jeankaelaugustin641 Expo is the way 👍

  • @riturajranjan2072
    @riturajranjan2072 3 года назад +3

    Awesome series

  • @zakirbangash3185
    @zakirbangash3185 6 месяцев назад

    Hello Brother
    I love your content and I'm reaching out because we've been working on an issue for the past three months. We're experiencing a noticeable delay of 1 or 2 seconds before videos start playing, which creates a different experience from the smooth playback offered by TikTok.
    We'd greatly appreciate any suggestions you might have on how to achieve a similar level of responsiveness when users swipe to the next video.

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

    great video!

  • @krultorwaru121
    @krultorwaru121 Месяц назад

    Actually why are you putting the forwardRef here in 26:26?

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

    Awesome!! Just awesome!!

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

    Hey,
    Please make a tutorial on java refresher!
    You make such awesome videos!

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

    hi! Good work sir, how to get the video reference from SinglePost. it still playing when I change the navigation.

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

    Is it possible by react-native-video? Not in expo project...if not please make a video for that

  • @souvikbanerjee1565
    @souvikbanerjee1565 3 года назад +2

    Awesome

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

    U r godsend!

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

    What should we use if want to achieve the same results without using expo?

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

      Hello, do you have an answer for this?

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

    This is amazing, thank you so much for the detailed explanation.
    I just wanted to ask if you would consider implementing video search in the search box before entering the name of the person you are looking for. I think it wouldn't be a big deal to skip the complicated algorithms and just display the most popular videos in the let suppose for the last 12 hours. What do you think about that ?

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

      Thanks Vit!
      I will look into it. The most liked videos of the day is something that would be easy enough to implement for this series. I will evaluate that for sure!
      Thank you for your suggestion 😊

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

      @@SimpleCoder The pleasure is all mine 🎩Thank you for listening to me . ... I am honored 😊

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

    flatlist is not good choice for production
    with many videos it will be unstable
    i switched to RecyclerListView but i have problem
    there is no onViewableItemsChanged :D
    do you have any idea about it please ?

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

      Did you find a fix?

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

    Hi Sim i'm currently following this part of your tuto to reproduce this video scroll i dinamycly recode what you do while watching your video and i'm currently facing a problem the flatlist doesn't take the whole screen i have try the trick of the backgroundColor to see if it take the whole screen or not and it don't .
    Here the code i've check it several time and seem identical to the one you display on the video
    import React from 'react';
    import styles from './styles'
    import { Text, FlatList, View } from 'react-native'
    export default function FeedScreen () {
    const array =[1, 2, 3, 4, 5, 6]

    const renderItem = ({ item, index }) => {
    return (

    {item}

    )
    }
    return (




    )
    }
    styles.js
    const { StyleSheet } = require('react-native');
    const styles = StyleSheet.create({
    container: { }

    })
    export default styles;
    I will appreciate if you could figure out what's wrong with my code
    I thank you in advance
    NB: my currrent version are "react": "^18.2.0" "react-native": "^0.69.4",
    "react-native-web": "^0.18.7",

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

      i have finally figure it out you display it on a component wich as certainly a predefine size i display it directly as this element in my app.js file so i just had to had an height of "100vh" to the flatlist + i figure out an others problems then the element height in renderItem style view didnt react to changement so i had to set up a maxheight and a minheight to define an height .

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

      Thats so fuck up i come back on my oproject and face the same problem i check the comment after a whilme and then find the solution i had post thanks me

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

    Hi, I was trying to replicate this but having some issues. When I import dimensions and try to apply the height to it, it doesn't work . I have been troubleshooting this to no success. It saves that info to a variable and printed it out but the dimensions never gets applied to my screen. Any help would be appreciated

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

    You are true legend 🙏
    Doing great sir

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

      Thank toy Navneet 😁

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

      @@SimpleCoder you are my teacher i am 15 years old
      Learning a lot from you as i am from India that's a developing nation i want to become a developer

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

      @@SimpleCoder sir i have a question how can we create algorithm like suggest videos to viewers according to their interest

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

      Glad to hear it Navneet, it it a great opportunity and we are all rooting for you! If you have any question at all just let me know 😊
      You can either implement ML to do that or you can go by simple metrics like the most liked videos of the day and/or categories the user wants to see. This last one is the easiest one to implement

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

      @@SimpleCoder please teach us about ml is your upcoming tik tok series videos
      Thanks for your reply sir 😁

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

    Hello ,
    Can I install expo av into react native cli project.

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

      Hello, do you have an answer for this?

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

    anyone having issues with the videos not stoping when not viewable ?

    • @yoel8538
      @yoel8538 9 месяцев назад

      yes i am!!!! did you ever figure this out?