DyScan
Search…
DyScan
DyScan Integration Guide
iOS Integration Guide
Android Integration Guide
React Native Integration Guide
Cordova Integration Guide
Integrity Verification
Migrating from card.io
Migrating from card.io (iOS)
Migrating from card.io (Android)
Integrating with Stripe
Integrating with Stripe (iOS)
Integrating with Stripe (Android)
Alternate Ways to Integrate iOS
Integrating with Swift Package Manager
Integrating with Carthage
Integrating as a Framework
Alternate Ways To Integrate Android
Manually Importing the Library
Using DyScanView
MIGRATING FROM 1.0.X TO 1.1.X
Migrating from 1.0.x to 1.1.x (iOS)
Migrating from 1.0.x to 1.1.x (Android)
Migrating from 1.0.x to 1.1.x (React Native)
Powered By
GitBook
Migrating from 1.0.x to 1.1.x (React Native)
In version 1.1.1 we change the way of initializing DyScan and setting up the API key.
Removing API key setter
Depending on the way which you chose to use DyScan, you will need to remove following lines.
DyScanModule
DyScanView
1
DyScanModule
.
scanCard
({
2
// apiKey:'YOUR_API_KEY'
3
})
4
.
then
(
card
=>
{
5
6
})
7
.
catch
(()
=>
{
8
9
})
Copied!
1
render
()
{
2
return
(
3
<
View
>
4
<
DyScanView
5
onCardScanned
=
{
this
.
onCardScanned
}
6
// apiKey={'YOUR_API_KEY'}
7
/>
8
</
View
>
9
);
10
}
Copied!
Initializing DyScan
In your
App.js
add the following line to configure
DyScan
.
1
import
React
from 'react'
;
2
import
{
DyScan
}
from '
@dyneti
/
react
-
native
-
dyscan'
;
3
4
const
App
:
()
=>
React
$
Node
=
()
=>
{
5
6
DyScan
.
init
({
7
apiKey
:
'
YOUR_API_KEY
'
,
8
});
9
10
// some code here
11
};
12
13
export
default
App
;
Copied!
MIGRATING FROM 1.0.X TO 1.1.X - Previous
Migrating from 1.0.x to 1.1.x (Android)
Last modified
1yr ago
Copy link
Contents
Removing API key setter
Initializing DyScan