1.1.8 • Published 7 years ago

tomasztest v1.1.8

Weekly downloads
25
License
MIT
Repository
-
Last release
7 years ago

react-native-background-audio

A react component for playing audio in the back of your project.

npm install react-native-background-audio --save
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import BgAudio from 'react-native-background-audio'

export default class App extends React.Component {
  render() {
    return (
      <BgAudio options={audio_options}></BgAudio>
    );
  }
}
const audio_options = {
  source:{local: require('./music/sample.mp3')}  //ex. require('./music/sample.mp3')
}

For Local audio source pass in Local object:

const audio_options = {
  source:{local: require('./music/sample.mp3')}  //ex. require('./music/sample.mp3')
}

For Remote audio uri pass in Remote object:

const audio_options = {
  source:{remote:{uri:"http://www.sample-videos.com/audio/mp3/india-national-anthem.mp3"}}
}
1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago