react-native icon indicating copy to clipboard operation
react-native copied to clipboard

NativeSoundManager.playTouchSound() undefined is not a function

Open aleluiah opened this issue 1 year ago • 2 comments

Description

A simple button element imported from react native will trigger an error when pressed with new arch enabled <Button onPress={() => alert('yeah')} title={visible ? 'Hide' : 'Show'} />

Version

0.69.1

Output of npx react-native info

NativeSoundManager.playTouchSound() undefined is not a function in node_modules/react-native/libraries/components/sounds/soundManager.js

Steps to reproduce

Uploading git1.jpg…

Snack, code example, screenshot, or link to a repository

git1

aleluiah avatar Jul 18 '22 05:07 aleluiah

i later realised the nativeSoundManager return true but it was just an empty object with no method or properties. also hermes and fabric is enabled

aleluiah avatar Jul 18 '22 05:07 aleluiah

hi @aleluiah, did you fix the issue? Is that because Native modules return empty object {} , right?

Bob-JZhao avatar Aug 23 '22 14:08 Bob-JZhao