-
Notifications
You must be signed in to change notification settings - Fork 101
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
detect react-native #137
detect react-native #137
Conversation
This PR could be further improved by expecting a 'react-native' as peer-dependency conditionally and check for Platform.OS to verify whether it's iOS and Android. However I feel the added complexity is unnecessary for this package and this simple check would be enough |
Something I haven't considered is whether document is also undefined for bots but assuming they won't match the |
@pedrouid Thanks heaps mate! That issue has been open for a long time and really has needed someone who actively works with |
@pedrouid Thanks again for doing this work. As you can see I've merged the changes into |
Hey @DamonOehlman, where is it published? Could you publish it with a different tag like |
@pedrouid Good question - I was thinking of back to when I did "old school" pure JS implementations and you could just throw a reference to a github project in the Reading, and then re-reading the logic I think it's safe to publish a new minor version so I'm going to do that now and I'll give you a heads up when it's live. |
Done - |
I noticed that #8 was open for almost 5 years so I thought I would contribute a PR myself