Giter Site home page Giter Site logo

react-native-music-player's Introduction

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.

react-native-music-player's People

Contributors

devnacho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.