ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

TypeError: language.indexOf is not a function

Open kishansbs opened this issue 5 years ago • 1 comments

TypeError: language.indexOf is not a function at Object.getBestMatchingLanguage (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:110836:24) at LocalizedStrings.setLanguage (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:110635:34) at _callee$ (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:96001:36) at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25666:19) at Generator.invoke [as _invoke] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25841:24) at Generator.prototype. [as next] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25709:23) at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25666:19) at invoke (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25742:22) at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25772:13 at tryCallTwo (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27030:7)

"react": "16.9.0", "react-native": "0.61.5", "react-native-localization": "^2.1.6",

let lang=AsyncStorage.getItem(Constants.Language) Languages.setLanguage(lang ? lang : 'kr')

kishansbs avatar Dec 12 '19 05:12 kishansbs

@kishansbs did you fix this issue ?

KrishnaSwaroopa avatar Jun 05 '24 06:06 KrishnaSwaroopa