🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@edose/react-native-linkedin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edose/react-native-linkedin

React native linkedin iOS and android.

1.0.5
latest
Source
npm
Version published
Weekly downloads
73
-36.52%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-linkedin

React native linkedin iOS and android.

Installation

yarn

yarn add @edose/react-native-linkedin

npm

npm install @edose/react-native-linkedin

Compatibility

  • React Native >= 0.60

Setup

  • Install Peer Dependency

yarn

yarn add react-native-modal react-native-webview query-string

npm

npm install react-native-modal react-native-webview query-string

Usage

Example

import React, { useState } from 'react';
import { SignIn, LinkedInButton } from '@edose/react-native-linkedin';

function Example() {
	const [open, setOpen] = useState(false)
	return (
		<LinkedInButton
			label="Sign In With LinkedIn"
			labelStyle={{//custom style}}
			buttonColor="#017AB6"
			onPress={() => setOpen(true)}
		/>
		<SignIn
			isOpen={true}
			clientId={YOUR_LINKEDIN_CLIENT_ID}
			clientSecret={YOUR_LINKEDIN_CLIENT_SECRET}
			redirectUri="https://oauth.pstmn.io/v1/callback"
			state={YOUR_STATE}
			onSuccess={(data) => alert(data)}
			onCancel={() => setOpen(false)
		/>
	)
}

Available Props

  • SignIn
NameTypeDefaultDescription
clientIDstringLinkedIn Client ID
clientSecretstringLinkedIn Client secret
redirectUristringLinkedIn Redirect URI
permissionsarray["r_liteprofile", "r_emailaddress"]Permission
authStatestring
isOpenbooltrue
onClosefunc() => null
onSuccessfunc(data) => null
  • LinkedInButton
NameTypeDefaultDescription
labelstringSign In With LinkedIn Button label
buttonColorstring#017AB6Button color
labelStyleViewStyle{}
buttonStyleViewStyle{}
onPressfunc() => null

Keywords

react-native

FAQs

Package last updated on 28 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts