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

Not working in android but in IOS its working

Open haseeb-islam opened this issue 5 years ago • 2 comments

Not working in android but in IOS its working

haseeb-islam avatar Apr 16 '19 09:04 haseeb-islam

also running into this - weirdly the import is null.

import Tts from "react-native-tts"

dorthwein avatar Apr 23 '19 16:04 dorthwein

For anyone running into this issue, it's probably caused by the linking not being able to find your MainApplication.java. Open that up and add:

import net.no_mad.tts.TextToSpeechPackage; and new TextToSpeechPackage(),

Should work after this.

Your settings.gradle and build.gradle will probably already be right. Refer to the example project if you need further info.

24dev avatar Jun 03 '19 15:06 24dev