-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add React-native support #2233
Comments
Unfortunately, React-native is not currently supported by either libraries. It would probably be either to tweak the browser one than the node one to get there, but I suspect there would be some significant changes to do. We are currently working on a rework of the libraries that should make adding this support easier in the future though. |
Thanks @NSeydoux for confirming that for me. Am I correct to assume that there are no other Inrupt auth and fetcher libraries that support react-native? If not, I may take a stab at adding this support in a fork of this repo if it’s not too messy and if your team does not plan to add this feature in the near future. |
No Inrupt library does at the moment, and I we won't be working on this soon unfortunately. I think @jaxoncreed was looking at this a while ago, but I don't recall in which codebase. |
@kezike I built this library here https://github.com/o-development/solid-authn-react-native/. It does have limitations though. I'll eventually get around the fixing the bugs, but the interface should be the same, so if you can tolerate the bugs for now, you'll just need to upgrade it when I fix them. |
Thanks for sharing this library @jaxoncreed! You mentioned in the |
Search terms you've used
react
react native
url
Impacted package
Which packages do you think might be impacted by the bug ?
Bug description
I am working on a react-native project and I am unsure which library to use.
When I installed
@inrupt/solid-client-authn-node
and built the project, it seems to build successfully until it attempts to launch the app. This is the error I receive at launch time:To get around this issue, I installed
url
, but this led to other missing module errors. I installed as many as I could until I hit a wall with thehttps
module. I am unsure how to proceed with this or if this was even the proper course of action.When I installed
@inrupt/solid-client-authn-browser
and built the project, it seems to build successfully and launches the app without an issue. However, when I invoke a library function (specificallylogin
in this case), I receive this error:To get around this issue, I installed
localstorage-polyfill
, but this causes the following errors:To Reproduce
Refer to
Bug description
section aboveExpected result
A compiled react-native application that is able to invoke functions from Inrupt libraries
Actual result
Refer to
Bug description
section aboveEnvironment
The text was updated successfully, but these errors were encountered: