-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose initialiseWith* functions on react-native #83
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@JNdhlovu, @jumaallan I've noticed that the following params in the config object differ between android and iOS:
Does is make sense to change the Mapper for android to grab the keys as defined in Line 9 in a96bb70
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on iOS and android side. Works fine. Left a comment on the Config object.
I was able to test this on iOS. Tested Selfie Capture, Biometric KYC and Document Verification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in slack, should we add a section to the README to talk about the new initalisation params for partners to fill in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine on android and iOS. I've tested the following configurations:
- SmileID.initialize(false, false, config) // with config
- SmileID.initialize(false) // with config.json file
@JNdhlovu can we update https://docs.usesmileid.com/integration-options/mobile/getting-started to reflect the change that the enableCrashReporting is the 2nd parameter?
Story: https://app.shortcut.com/smileid/story/14700/expose-initialisewith-functions-on-react-native
Summary
So far, the react-native sdk doesn't expose the initializeWithApiKey and initializeWithConfig function in the SmileID object. The underlying ios and android implementation already have those functions exposed, we're just missing to expose them in the SmileID object.
Known Issues
Test Instructions
Screenshot
N/A