Open cidevant opened 5 years ago
https://github.com/jodybrewster/react-native-linkedin-login#usage
Add import LinkedinLogin from 'react-native-linkedin-login'; to the begining.
import LinkedinLogin from 'react-native-linkedin-login';
// replace "this" with "LinkedinLogin" this.init( [ 'r_emailaddress', 'r_basicprofile' ] ).then((e) => { console.log('Linkedin initialized'); });
Are you kidding? then is used for Promises! Is your init returns promise? NO!
then
init
https://github.com/jodybrewster/react-native-linkedin-login#usage
Add
import LinkedinLogin from 'react-native-linkedin-login';
to the begining.Are you kidding?
then
is used for Promises! Is yourinit
returns promise? NO!