You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-simple-audio-player

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-simple-audio-player

simple audio player package for react native with all required controls

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
49
58.06%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-simple-audio-player

simple audio player for react native with all required controls

still in beta version, adding more costomization and documentation soon :rocket: :beers:

Installation

$ npm i react-native-simple-audio-player --save

You'll also need react-native-video (to use controls and audio playback) and slider (for audio seekbar) package, you can install these like,

$ npm i react-native-video --save
$ npm install @react-native-community/slider --save

Import the package

import {AudioPlayer} from 'react-native-simple-audio-player';

Basic Usage

This package is still under construction and beta mode, You can still use this by passing your Audio URL to AudioPlayer component. Feel free to drop suggestions and improvements

import React from 'react';
import {View} from 'react-native';
import {AudioPlayer} from 'react-native-simple-audio-player';

const App = () => {
  return (
    <View
      style={{
        flex: 1,
        backgroundColor: '#313131',
        justifyContent: 'center',
      }}>
      <AudioPlayer
        url={'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3'}
      />
    </View>
  );
};

export default App;

Props

url

Audio file url.

TypeRequired
stringyes

Adding more costomization and documentation soon :rocket: :beers:

Keywords

react-native-audio-player

FAQs

Package last updated on 05 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts