question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native Sign SDK

See original GitHub issue

Description

Uppon testing sign SDK versions beta.102, rc.0 and rc.1 in latest react-native version (fresh vanilla app), all of these came up with errors like new TextEncoder() being undefined. This happens in both jsc and hermes runtimes and will only get worse as react-native is moving towards preferring hermes. This issue can be solved in 2 ways i.e. heavy js polyfilling or we create @walletconnect/react-native-sign sdk that utalises Swift and Kotlin SDK’s. Latter is preferred way and will result in multiple benefits for react-native users i.e. logic will run on native thread and utilize native methods for storage / networking etc. This however needs a bit of research to understand if we can successfully implement Swift and Kotlin SDKs under one nice react-native js api similar to that of js package.

Tasks

  • Create test sdk package that exposes Kotlin sdk and test against it
  • If task no.1 is successful, continue with Swift sdk implementation
  • If task no.1 fails, continue with js sdk polyfilling

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewcarlreetzcommented, Aug 15, 2022

@IljaDaderko It appears to be working well! I will continue to test, but initially everything is looking good.

1reaction
0xAsimetriqcommented, Aug 16, 2022

@matthewcarlreetz @nomanaliakram321 could you try following new installation docs for 2.0.0-rc.2 (preview) https://docs.walletconnect.com/2.0/javascript/guides/react-native

It should resolve all your issues and not require any custom polyfills.

Example react-native app with new react-native implementation is also available here https://github.com/WalletConnect/react-native-sign/tree/js-sdk/example

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Digital Signature SDK - PSPDFKit
React Native Digital Signature SDK Secure Digital Signatures in Your React Native App. Certified, encrypted, and secure document signing workflows.
Read more >
Google Sign-in for your React Native applications - GitHub
Contribute to react-native-google-signin/google-signin development by creating an account on ... Promise-based API consistent between Android and iOS ...
Read more >
Auth0 React Native SDK Quickstarts: Login
This tutorial demonstrates how to add user login to a React Native application using Auth0. We recommend that you log in to follow...
Read more >
Publishing to Google Play Store - React Native
This guide works with any React Native app to automate the deployment process. Generating an upload key​. You can generate a private signing...
Read more >
React Native & Expo SDK Setup - OneSignal Documentation
Instructions for adding the OneSignal React Native & Expo SDK to your app for iOS, Android, ... In Signing & Capabilities, select All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found