File tree 5 files changed +7
-7
lines changed
android/src/main/java/com/reactlibrary
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class ARArgyleSdkModule(context: ReactApplicationContext) : ReactContextBaseJava
24
24
@ReactMethod
25
25
fun start (config : ReadableMap ) {
26
26
val nativeConfig = LinkConfig (
27
- linkKey = config.getString(" linkKey" )!! ,
28
27
userToken = config.getString(" userToken" )!! ,
29
28
sandbox = config.getBoolean(" sandbox" )
30
29
)
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export const LinkExample = (): JSX.Element => {
15
15
16
16
const start = ( ) => {
17
17
const config = {
18
- linkKey : 'LINK_KEY' ,
19
18
userToken : 'USER_TOKEN' ,
20
19
sandbox : true ,
21
20
onAccountCreated : ( response : AccountCallbackPayload ) =>
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ type TokenExpiredCallback = (updateToken: (token: string) => void) => void
23
23
type FormCallback = ( payload : FormCallbackPayload ) => void
24
24
25
25
export interface LinkConfig {
26
- linkKey : string
26
+ /**
27
+ * @deprecated The use of `linkKey` has been discontinued. `LinkConfig` can now be initialized without it.
28
+ */
29
+ linkKey ?: string
27
30
sandbox : boolean
28
31
userToken : string
29
32
flowId ?: string
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ export class ArgyleLink {
23
23
static listeners = { }
24
24
25
25
static start ( config ) {
26
- const { linkKey , sandbox, userToken} = config
26
+ const { sandbox, userToken} = config
27
27
28
- if ( linkKey === undefined || sandbox === undefined || userToken === undefined ) {
29
- throw '[ArgyleLink] linkKey, userToken and sandbox must be defined.'
28
+ if ( sandbox === undefined || userToken === undefined ) {
29
+ throw '[ArgyleLink] userToken and sandbox must be defined.'
30
30
}
31
31
32
32
callbacks . forEach ( name => {
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ class ARArgyleSdk: RCTEventEmitter {
40
40
func start( config: NSDictionary ) {
41
41
DispatchQueue . main. sync {
42
42
var nativeConfig = LinkConfig (
43
- linkKey: config. value ( forKey: " linkKey " ) as! String ,
44
43
userToken: config. value ( forKey: " userToken " ) as! String ,
45
44
sandbox: config. value ( forKey: " sandbox " ) as! Bool
46
45
)
You can’t perform that action at this time.
0 commit comments