Skip to content
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

React Native Support #11

Closed
devesh95 opened this issue Oct 18, 2017 · 2 comments · Fixed by #9
Closed

React Native Support #11

devesh95 opened this issue Oct 18, 2017 · 2 comments · Fixed by #9

Comments

@devesh95
Copy link

devesh95 commented Oct 18, 2017

Given the relatively simple outlined structure here it seems adding in support for React Native should be supported. Currently trying to instantiate a Pusher component inside a React Native tree throws the following exception:

Invariant Violation: Expected a component class, got [Object object].

I presume this is because of the "noscript" tag returned through render(). Is there any way to detect an RN environment and return an empty View instead (if that is indeed the error)?

@euanlau
Copy link

euanlau commented Dec 19, 2017

nosript also does not work inside table. Is it possible to render null instead?

@prayogoa
Copy link
Member

This should be doable now, this was written before returning null was supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants