Skip to content
プロジェクト

devnacho/react-native-music-player

GitHubで見る

概要

Practising React Native

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

React Native Music Player

Ever since Facebook open-sourced React Native, I’ve wanted to try it out. This is why I created this demo app.

This is how it looks:

smallreactnativedemo3

Demo video with sound

Things in scope that I wanted to learn:

  • Practice React Native Layout and Styling.
  • Practice Routing and how to present the flow and animation of different views.
  • Use of Standard Native Components. (List, Images, Toolbar, etc)
  • Use of third party React Native libraries ( In this case I used parallax-scroll-view and react-native-video
  • I could have architected the app better using Redux but it wasn’t in the scope of this practice.

Interesting Things I learned

There aren’t a lot of good components to play audio. I started first with a library that only played local files. I read the code of that library and noticed it used a Native Module called AVPlayer. There I noticed it wasn’t going to be possible to play audios coming form the network . After some investigation I read that the appropiate native module to play network audios is AVAudioPlayer.

By looking at react-native-video code I discovered that react-native-video implemented this AVAudioPlayer so I decided to try out this library just using audio and it worked right of bat.

関連プロジェクトを探す

読み込み中…