@beyondidentity/embedded-react-native v0.2.0

Beyond Identity React Native SDK
Goodbye, passwords! The Beyond Identity SDK for React Native is a wrapper around our Native Embedded SDKs (iOS and Android), which allows you to embed the Passwordless experience into your product. This SDK supports OIDC and OAuth2.
Installation
Install the library:
yarn add @beyondidentity/embedded-react-nativeor
npm i --save @beyondidentity/embedded-react-nativeNote that this library is not compatible with Expo projects. This is because Expo's “managed” workflow does not allow usage of React Native libraries that introduce their own native code beyond the React Native APIs and components that are available in the Expo client app. If you have an Expo app and wish to use this project, you must
eject.
Update Native:
Make sure your ios/Podfile supports iOS 12 or later
platform :ios, '12.0'Go to your ios folder and run:
pod installMake sure your android/build.gradle supports minSdkVersion 28 or later
buildscript {
ext {
minSdkVersion = 28
}
}Add the following maven url to your repositories in your android/build.gradle
allprojects {
repositories {
maven {
url "https://packages.beyondidentity.com/public/bi-sdk-android/maven/"
}
}
}Usage
import { Embedded } from '@beyondidentity/embedded-react-native';A set of functions are provided to you in this SDK. Check out the documentation for more information.
Run Examples
To set up:
yarn bootstrapTo run the example app on Android:
yarn example androidTo run the example app on iOS:
yarn example iosTo start the packager:
yarn example start