-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support React Native #59
Comments
fwiw i removed the |
You're using React Native, is that right? I've never tried it with React Native, only in the browser, so there's probably going to be a few differences/considerations that I've missed. I'll try and get a repo set up with it and see how it goes. Thanks for the bug report. |
yes, React-Native via expo (which has been a surprisingly smooth so far - expected far more headaches). fwiw i removed the |
i see that your code calls |
i've only been a react-native dev for like 3 days but one thing that seems like it might be relevant here is that react-native does not use while i have done v. little web/react development in my life i have a hunch that |
I actually think it probably can't use Okay, I've just make a quick build where I've replaced the If there's too many problems, I may have to make non-browser support a "coming soon" feature for now 😔 |
i'm happy to try it out but how do i install a node package from a zip file? sorry i'm new here in javascript world. |
Just download it and use So |
ok i tried it and it went poorly but in a different way than it was going poorly before:
|
Okay, I'll have to have a proper look at it sometime. I guess we can say it doesn't support React Native for now. Sorry about that. But thanks for bringing it to my attention, I'll definitely work on soon. |
np thanks for looking into it so quickly! |
i was poking around this repo a bit wondering how hard it would be to make it react-native compatible and i found this discussion of what changes need to be made. on the plus side i don't think yr code involves much in the way of routing but on the negative side i'm not sure there's a way to do it other than replacing every |
just here to report back after getting up to speed on React Native (and thus the differences between it and regular React):
as my use case has grown up it turns our |
Thanks for that info @michelcrypt4d4mus . I think it'll probably be on my "longer term" roadmap, but we'll see if there's much demand. |
If anyone else wanted to look further into this and perhaps take it on, please let me know. I wonder if it would end up being different enough that it would need to be a separate package? |
Originally posted by @michelcrypt4d4mus in #46 (comment)
ok so now i tried to use your package in my app and got an error:
Property 'getComputedStyle' doesn't exist
. any ideas? seems like it might be a dependency issue (maybe related to why it wouldn't install easily) but i'm not a javascript developer really...This is how i'm using it in a file called
current_daemon_status.js
. I'm certain that what's inserviceStatus
is a valid data structure (i canJSON.stringify()
it just fine):Here is the
App.js
file:my iOS simulator shows this:
STDERR shows:
The text was updated successfully, but these errors were encountered: