Fullscreen media player for React Native
Switch branches/tags
Nothing to show
Clone or download
Latest commit fbfebad Aug 4, 2015
Failed to load latest commit information.
RNMediaPlayer.xcodeproj Initial commit Jul 13, 2015
.gitignore Initial commit Jul 13, 2015
README.md Updated readme Aug 4, 2015
RNMediaPlayer.h Initial commit Jul 13, 2015
RNMediaPlayer.ios.js Initial commit Jul 13, 2015
RNMediaPlayer.m Removed logging Aug 4, 2015
package.json Initial commit Jul 13, 2015



Simple full screen media player for React Native.


Install using npm with npm install --save react-native-mediaplayer. React Native >=0.4.0 is needed.

  1. Using Xcode open the project navigator, right click and choose LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-mediaplayer and add RNMediaPlayer.h and RNMediaPlayer.m


var React = require('react-native');
var MediaPlayer = require('react-native-mediaplayer');

MediaPlayer.open({uri: 'filename.ext'});

The best use case is to add it with onPress to load a video when the user taps on an item.

Other notes

Only supports iOS 8.0 and later due to AVPlayerViewController usage. File extensions must be specified due to media types at the moment.