Skip to content

audio player view using with react-native-sound and react-navigation

License

Notifications You must be signed in to change notification settings

benevbright/react-native-sound-playerview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-sound-playerview

npm npm

audio player view for iOS/Android using with react-native-sound and react-navigation

Getting started

$ npm install react-native-sound-playerview

Step 1. Register Screen with react-navigation

import {StackNavigator} from 'react-navigation';
import PlayerScreen from 'react-native-sound-playerview'

...

const Navigation = StackNavigator({
    ...
    player:{screen:PlayerScreen},
    ...
})

...

Step 2. Navigate to 'react-native-sound-playerview'

this.props.navigation.navigate('player', {title: __TITLE__, filepath: __AUDIO_FILEPATH__, dirpath: Sound.MAIN_BUNDLE });

*NOTE: filepath no longer have to be a full file path, you can pass additional prop dirpath and set it for example to Sound.MAIN_BUNDLE

About

audio player view using with react-native-sound and react-navigation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published