A Soundboard written in React-Native and redux-saga.
Here's an example of the soundboard-app, obviously with cat-tax:
- Run
npm install
to install all deps - Make sure you have installed the react-native-cli
- Link dependencies with react-native-cli:
react-native link
In order to add content to be able to actually play sounds, you need to add some to your asset library:
- Create a folder
assets
- Create subfolders containing images and sounds:
assets/images
andassets/sounds
- Add sound- & image-files to your library, make sure the sound-basename matches the image-basename (used for autodiscovery) 3.1 Make sure your asset folder has subdirectories, which correspond to your configured TABS
- Add the assets-folder to your build-phase, e.g. in Xcode add it to
Copy Bundle Resources
or Rightclick +Add Files to <projectname>
- Change in
Constants.js
theVIEW_LIBRARY
. The first-level keys are your subfolders inassets/sounds
- See development / production for running
Nothing special here, you can either use the provided npm-scripts or use xcode to run:
- With CLI:
npm run start
ornpm run debug
andreact-native run-ios
- With Xcode: Open Project & Hit play
CLI:
- Make sure to have installed
ios-deploy
- Change the name in the
release
npm-script to your iPhone's name - Run the
release
npm-script
XCode:
- Configure your build-Scheme to
Release
- Hit play
- Asynchronous Sound-playing through react-saga
- Multiple Sounds through long-presses
- Auto Discovery of assets
- Custom Recorded Sounds with camera picture (e.g. "party-mode")
- Megaphone mode
If you want to contribute, feel free to issue a PR. I'm always open for new suggestions