trietho / react-native-a-beep

A very lite module to play system sounds and beep for react-native apps (no sound files)
56 stars 34 forks source link

PlaySysSound is undefined #1

Closed haseeb-islam closed 5 years ago

haseeb-islam commented 5 years ago

i am facing this issue PlaySysSound is undefined

trietho commented 5 years ago

Hi Haseebb, Please share your example code.

Thanks

haseeb-islam commented 5 years ago

import RNBeep from 'react-native-a-beep';

<Button onPress={() => {RNBeep.beep() }} title="Beep Success"> <Button onPress={() => {RNBeep.beep(false) }} title="Beep Fail"> <Button onPress={() => {RNBeep.PlaySysSound(RNBeep.AndroidSoundIDs.TONE_CDMA_ABBR_ALERT) }} title="Beep Android Custom"> <Button onPress={() => {RNBeep.PlaySysSound(RNBeep.iOSSoundIDs.AudioToneBusy) }} title="Beep iOS Custom">

Screenshot 2019-04-29 at 3 17 15 PM
trietho commented 5 years ago

You may try a clean install of your npm packages firstly.

haseeb-islam commented 5 years ago

i did but nothing happened.

haseeb-islam commented 5 years ago

yahoooo issue solved . issue was in linking in ios . by manually linking issue will solve.

trietho commented 5 years ago

Good to hear!