Skip to content

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

Notifications You must be signed in to change notification settings

lichmac/react-native-sound-playerview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-sound-playerview

npm npm

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

Install

npm i --save git+https://github.com/lichmac/react-native-sound-playerview.git

Then install the dependencies

npm install @react-native-community/slider --save
npm install react-native-sound --save

### 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});

*NOTE: `filepath` should be a full file path.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%