{"id":4682,"url":"https://github.com/mikehedman/react-native-simple-sound","last_synced_at":"2025-12-27T01:50:42.017Z","repository":{"id":57340079,"uuid":"45716060","full_name":"mikehedman/react-native-simple-sound","owner":"mikehedman","description":"React Native module for playing, pausing, and stopping sound clips","archived":false,"fork":false,"pushed_at":"2016-02-01T03:29:14.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T02:41:44.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikehedman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-07T00:41:33.000Z","updated_at":"2018-05-18T21:01:52.000Z","dependencies_parsed_at":"2022-08-26T03:42:11.406Z","dependency_job_id":null,"html_url":"https://github.com/mikehedman/react-native-simple-sound","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikehedman%2Freact-native-simple-sound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikehedman%2Freact-native-simple-sound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikehedman%2Freact-native-simple-sound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikehedman%2Freact-native-simple-sound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikehedman","download_url":"https://codeload.github.com/mikehedman/react-native-simple-sound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582488,"owners_count":17940587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:20.150Z","updated_at":"2025-12-27T01:50:41.974Z","avatar_url":"https://github.com/mikehedman.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Media"],"readme":"# react-native-simple-sound\n\nReact Native module for playing, pausing, and stopping sound clips.\n\nDerived from [react-native-sound](https://github.com/zmxv/react-native-sound), which allows multiple sound files to be played at once, but does not offer pause or stop.\n\n## Installation\n\n```javascript\nnpm install react-native-simple-sound --save\n```\n\nIn XCode, right click **Libraries**.\nClick **Add Files to \"[Your project]\"**.\nNavigate to **node_modules/react-native-simple-sound**.\nAdd the file **RNSimpleSound.xcodeproj**.\n\nIn the project navigator, select your project.\nClick the build target.\nClick **Build Phases**.\nExpand **Link Binary With Libraries**.\nClick the plus button and add **libRNSimpleSound.a** under **Workspace**.\n\nRun your project (⌘+R).\n\n## Example\n\n```js\nvar Sound = require('react-native-simple-sound');\nSound.enable(true); // Enable sound\nSound.prepare('tap.aac'); // Preload the sound file 'tap.aac' in the app bundle\nSound.play(); // Play the sound 'tap.aac'\nSound.pause(); // Pause the sound\nSound.play(); // Resume playing the sound\nSound.stop(); // Stop and reset the sound.\n```\n\n## Notes\n- Sound.enable(true) must be called before playing any sound.\n- Sound.prepare(...) must be called before playing - preloads a sound file and prepares it for playback.\n- To change sounds, stop() the current sound and call prepare() with the new sound.\n- The module wraps AVAudioPlayer which supports aac, aiff, mp3, wav etc. The full list of supported formats can be found [here](https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html).\n- The stop() function resets the sound back to the beginning, this is different from the standard behavior of AVAudioPlayer\n- Sound files must be in the bundle (in your app's main folder in Xcode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikehedman%2Freact-native-simple-sound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikehedman%2Freact-native-simple-sound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikehedman%2Freact-native-simple-sound/lists"}