react-native-line-login-android
v0.1.4
Published
React native line login
Downloads
7
Maintainers
Readme
react-native-line-login-android
Let your users sigin with their LINE account.
Installation
npm install react-native-line-login-androidor
yarn add react-native-line-login-androidManual installation
Create a channel following instructions at Line Developers
Add jcenter() to android/build.gradle (if not already)
allprojects {
...
repositories{
jcenter()
...
}
...
}- Change android:allowBackup to "true" in android/app/src/main/AndroidManifest.xml
Usage
import { Login } from 'react-native-line-login-android';
// ...
try {
Login('#channelId')
.then((result)=> {
console.log(result);//string
console.log(JSON.parse(result));//object
})
}catch (err){
console.log(err);
}