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

React is not defined <TranslatorProvider>

Open basitmir opened this issue 9 months ago • 6 comments

  • Getting this error Versions ( "react-native-webview": "^13.8.7". react-native-translator:"^1.2.0", "react-native": "0.69.0") @KoreanThinker @doublelam image

basitmir avatar May 03 '24 09:05 basitmir

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

basitmir avatar May 06 '24 05:05 basitmir

Could you make PR?

KoreanThinker avatar May 06 '24 05:05 KoreanThinker

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 avatar May 06 '24 05:05 basitmir

@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 avatar May 06 '24 06:05 basitmir

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 avatar May 06 '24 09:05 basitmir

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

basitmir avatar May 06 '24 11:05 basitmir