JSPM

react-native-windows-hello

0.9.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q43338F
  • License MIT

RNW library providing developer with all Windows Hello features

Package Exports

  • react-native-windows-hello

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-windows-hello) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Native Windows library providing developers with all Windows Hello features.

Latest version released on npmjs Build on CircleCI License

The following library allows you to use all features of Windows Hello functionality. This includes the signing-in options and passport. This library is a set of native methods providing easy API to fetch the device availability, sign in using your biometrics.


Installation & Usage

To install this module cd to your project directory and enter the following command:

yarn add react-native-windows-hello

or

npm install react-native-windows-hello --save

After having it installed you can call all the Windows Hello methods through the SignIn class, so the usage would be:

const signIn = new SignIn();
signIn.getConsentMessage()
  .then(result => {
    Alert.alert("SUCCESS", `${result}`);
  })
  .catch(error => {
    Alert.alert("ERROR:", `${error}`);
  });

Check out the example project for more examples.


API

The following library provides you with the native modules exposing the following methods:

Method & Description Arguments Returns
SignIn.getDeviceStatusMessage
Gets the status of biometric device on a user's machine and returns a promise with the result.
The returned promise is resolved if the status is OK, and is rejected in case of any issues with a device or biometric feature availability.
- Promise with String
SignIn.getConsentMessage
Displays the biometric scan prompt as a popup and returns a promise after user's actions.
The returned promise is resolved if the verification was successful, and is rejected in case of failed verification (user cancelled the verification, number of tries was exceeded, etc.),
or when incorrect promptMessage has been passed as an argument.
promptMessage : String
Additional text which will be placed in the login prompt popup.
Promise with String

Contributing

If you would like to contribute to the react-native-windows-hello project, you are more than welcome! You can do this by:

  • Create an Issue and let the author handle it
    Each issue created in the Issues section gives a chance of improving the project and make it even more useful.
  • Create the Pull Request with the desired changes
    When creating the pull request please remember to describe changes you made and how to test them. A short demo of any kind is very appreciated.

Setting up the project

To start developing you need to fork this project, and clone your fork.
After that you can:

  • yarn install
  • Implement changes (mostly in windows/ReactNativeWindowsHello/Source directory)
  • After implementation you can check the build by running:
    msbuild -p:Configuration=Debug -p:Platform=x64 .\windows\ReactNativeWindowsHello.sln
    Or launch the build through the Visual Studio.

Made with ❤️ at Callstack

react-native-windows-hello is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at hello@callstack.com if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥