You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
Describe the bug
The TextEncoder/TextDecoder reference errors occur on React Native environment because the environment doesn't provide them.
The multibase package drops the RN support at the version 4.0.3 release when it stops depending on the web-encoding library.
These APIs are provided by the web-encoding package on the RN environment from its 1.1.0 version release.
To Reproduce
Steps to reproduce the behavior:
Prerequisite: React Native development environment
npx react-native init MultibaseIssue98App (create a React Native project)
I'm grateful if you resume to support React Native even if such universality of this package actually isn't intended by the maintainers.
The web-encoding library intentionally starts to support the React Native platform in order to help RN developers use libraries depending on web-encoding such as multibase and uint8arrays.
I currently works on a domain (the decentralized identity domain) where this kind of support is quite helpful because many libraries providing core functionalities in this area are implemented in Javascript although it's very important to provide users with mobile applications.
The text was updated successfully, but these errors were encountered:
@vasco-santos Thank you for your quick reply!
I currently import the web-encoding package and define the globals explicitly in our code (the almost same solution you mentioned) and able to develop our application.
I hope the RN support will come back though.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
The TextEncoder/TextDecoder reference errors occur on React Native environment because the environment doesn't provide them.
The multibase package drops the RN support at the version 4.0.3 release when it stops depending on the web-encoding library.
These APIs are provided by the web-encoding package on the RN environment from its 1.1.0 version release.
To Reproduce
Steps to reproduce the behavior:
Prerequisite: React Native development environment
npx react-native init MultibaseIssue98App
(create a React Native project)yarn add [email protected]
yarn ios
oryarn android
(Run the application on mobile devices or emulators)ERROR ReferenceError: Can't find variable: TextDecoder
This repository is the result of the above steps' 1 to 3: https://github.com/somay/MultibaseIssue98App
Expected behavior
Able to use them.
Smartphone (please complete the following information):
Additional context
This PR actually removed web-encoding: #89
I'm grateful if you resume to support React Native even if such universality of this package actually isn't intended by the maintainers.
The web-encoding library intentionally starts to support the React Native platform in order to help RN developers use libraries depending on web-encoding such as multibase and uint8arrays.
I currently works on a domain (the decentralized identity domain) where this kind of support is quite helpful because many libraries providing core functionalities in this area are implemented in Javascript although it's very important to provide users with mobile applications.
The text was updated successfully, but these errors were encountered: