react-native-translator
react-native-translator copied to clipboard
useTranslator() returns an undefined function
Testing the following code in a component:
const {translate} = useTranslator(); // Translation object for translating
console.log("Testing translate:");
console.log(translate)
leads to the following output:
LOG Testing translate:
LOG undefined
And the translate()
function does not work as a result