A react-native module/tool to read the contents of ISO7816 Identification/Smart cards using the NFC chip.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
[![Product Name Screen Shot][product-screenshot]]
The module/tool currently reads the contents of:
The Algerian eID card.
A list of commonly used resources that I find helpful are listed in the acknowledgements.
Within your React Native project, open up a new terminal window and install the module:
$ npm install react-native-eid-reader --save
React Native requires linking native dependencies, excute the following in the terminal:
$ react-native link react-native-eid-reader
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-eid-reader
and add EidReader.xcodeproj
libEidReader.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainApplication.java
import com.reactlibrary.EidReaderPackage;
to the imports at the top of the filenew EidReaderPackage()
to the list returned by the getPackages()
method
android/settings.gradle
:
include ':react-native-eid-reader'
project(':react-native-eid-reader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-eid-reader/android')
android/app/build.gradle
:
compile project(':react-native-eid-reader')
import EidReader from 'react-native-eid-reader';
// TODO: What to do with the module?
EidReader;
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the [Apache License 2.0]() License. See LICENSE
for more information.
Hamza BOUKHTAM - @boukhtam_hamza - xu@live.fr
Project Link: React Native Electronic-Identity-Documents Reader module