Creating control centre in react native

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

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

  • @filipginder6118
    @filipginder6118 8 месяцев назад +4

    In this component in this row togglePlayback(playBackState)}> i have problem (******Argument of type 'PlaybackState | { state: undefined; }' is not assignable to parameter of type 'State'.
    Type '{ state: State.None | State.Ready | State.Playing | State.Paused | State.Stopped | State.Loading | State.Buffering | State.Ended; }' is not assignable to type 'State'.*******) I followed your video from the beginning but I can't solve this. Thank you

    • @harshprakash6260
      @harshprakash6260 8 месяцев назад

      same issue

    • @prasads8583
      @prasads8583 7 месяцев назад

      @@harshprakash6260 Use: npm install --save react-native-track-player@3.2

    • @cout09
      @cout09 5 месяцев назад

      Bro did you solve that? Im having the same issue here

    • @prantikg96
      @prantikg96 4 месяца назад

      any solution found for this issue?

    • @arhambashir-ws3nl
      @arhambashir-ws3nl 4 месяца назад +3

      Yes Guys Many of you may be still facing issue I have spended 2 days and after that I came to know that we have to use PlaybackState.state === State.Playing not PlaybackState === State.Playing

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

    Why don't you show results?

  • @Anonymous1700-m9d
    @Anonymous1700-m9d 9 месяцев назад

    HelpFul