Should the api library work with react native? #512
-
Curious about this so figured I'd see if I could make a quick PoC app. After following what I think should be the minimum needed, its failing to connect. I'm doing this:
Which results in this when I open the app (launching via Expo):
I spent a bit of time over the last couple of evenings looking to see if it was something on the React side, it doesn't seem to be. According to this doc I am calling the library correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It should work with RN since that's where I use it. I assume there's no stacktrack being given? |
Beta Was this translation helpful? Give feedback.
-
This is the full trace:
Interestingly, if I log the client object, it seems that some fields are not populated? i.e:
I suppose to ask the Q backwards, do you have a working example beyond whats in the doc/readme that one should need to use with RN? |
Beta Was this translation helpful? Give feedback.
-
I've created an example repo to help people with this. There are a couple of polyfills you have to add: https://github.com/pfrazee/example-atproto-rn-app |
Beta Was this translation helpful? Give feedback.
I've created an example repo to help people with this. There are a couple of polyfills you have to add: https://github.com/pfrazee/example-atproto-rn-app