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

supplying numbers to speak causing silent crash

Open radiovisual opened this issue 7 years ago • 0 comments

If you supply this module with a number to speak, for example:

Speech.speak({ text: 5 });

it will result in a silent runtime error which crashes the app without any reported errors or stack traces.

I am simply casting all my number values to strings before sending them to react-native-speech to avoid this problem, but you might want to run an internal catch (or cast) to prevent these types of errors, and facilitate some nice error messages for a better debugging experience.

radiovisual avatar Jan 04 '17 11:01 radiovisual