Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error onlyWebLogin cannot be cast from Boolean to String #46

Closed
star4680 opened this issue Jul 1, 2020 · 1 comment
Closed

Error onlyWebLogin cannot be cast from Boolean to String #46

star4680 opened this issue Jul 1, 2020 · 1 comment
Labels

Comments

@star4680
Copy link

star4680 commented Jul 1, 2020

I'm currently using

react native: 0.60.5
@xmartlabs/react-native-line : 2.0.1

const loginResult = await Line.login({
scopes: ['email', 'profile'],
botPrompt: 'normal',
onlyWebLogin : true
})

When adding onlyWebLogin field to loginArguments, the following error occurs :
Value for onlyWeblogin cannot be cast from Boolean to String
checkInstance[ReadablenativeMap.java:141]
getNullableValue[ReadablenativeMap.java:129]
getString[ReadablenativeMap.java:163]
login[RnLine.kt:61]
...

Thank you.

@nicoache1 nicoache1 added the bug label Jul 2, 2020
@nicoache1
Copy link
Contributor

@star4680 Please try 2.1.0, this issue should be solved in that. I would close the issue, feel free to reopen if the new version doesn't solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants