KoreanThinker / react-native-translator

🌐 Unlimited free google translate component & hook (Unofficial)
https://www.npmjs.com/package/react-native-translator
MIT License
79 stars 8 forks source link

React is not defined <TranslatorProvider> #37

Open basitmir opened 2 months ago

basitmir commented 2 months ago
basitmir commented 2 months ago

i think the issue is that react-native-translator is not using the latest version of react-native-webview @KoreanThinker can you please look into this. Also using the "react-native-webview": "^11.26.1" which is being currently used by the translator shows Enter a URL

KoreanThinker commented 2 months ago

Could you make PR?

basitmir commented 2 months ago

Could you make PR?

I have not fixed this. I am looking for a solution. It would be great if you could help to fix this

basitmir commented 2 months ago

@KoreanThinker after running this repo i found out another thing i just used it like

const _result = await translate('en', 'fr', 'v'); console.log(_result);

image

basitmir commented 2 months ago

so locally its working fine after few tweaks will create a PR soon for the fixes but as soon as i install the package its showing image

image

@KoreanThinker any idea about this why is this happening after installing the package

basitmir commented 2 months ago

Fixes for the issues @KoreanThinker -https://github.com/KoreanThinker/react-native-translator/pull/40