https://github.com/darkweak/simple-react-native-soundboard
This app is here to provide a very simple soundboard written in React-native.
https://github.com/darkweak/simple-react-native-soundboard
Last synced: about 2 months ago
JSON representation
This app is here to provide a very simple soundboard written in React-native.
- Host: GitHub
- URL: https://github.com/darkweak/simple-react-native-soundboard
- Owner: darkweak
- Created: 2022-04-05T12:51:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T10:42:36.000Z (over 2 years ago)
- Last Synced: 2025-01-05T20:25:53.575Z (over 1 year ago)
- Language: TypeScript
- Size: 3.65 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple-Soundboard
-----
This app is here to provide a very simple soundboard written in React-native.
* Auto alphabetical sort.
* Tiny build with the minimal features.
## Setup
```
yarn
```
```
cd ios && pod install && cd -
```
```
yarn ios
```
## Development
```
yarn ios --device # If you have only one connected device
```
```
yarn dev:tailwind # To watch and rebuild styles
```
## How to add more sounds
First you have to place the `.mp3` files in the `src/assets` folder.
Edit the `sounds.json` file to add the icon associated to the sound
```
{
"items": [
...
{
"name": "the_sound_name_without_mp3_extension",
"image": "your_icon"
},
...
]
}
```
Add the sound to the `src/utils/sound.ts` list.
```typescript
// src/utils/sound.ts
const the_sound_name_without_mp3_extension = importSound(require(assetPath + 'the_sound_name_without_mp3_extension.mp3'));
export const mappedSounds: Record = {
//...
the_sound_name_without_mp3_extension,
//...
}
```