Open georgibakken opened 1 year ago
Need this too!
Hi, it's not supported yet for RN, that's correct.
Would you expect the UI (answering UI) implemented by the SDKs as well or just the API to load and send the survey answers back?
Not planned for the next few weeks at least, but we'll keep this issue open to gather interest.
@marandaneto just the API would be sufficient!
Support for React Native would be much appreciated.
@neilkakkar is there an OpenAPI spec for surveys already or something documented people can look at?
Yep: https://posthog.com/docs/api/surveys
https://posthog.com/docs/surveys/implementing-custom-surveys
and you can check the posthog-js implementation to see how we use the APIs above: https://github.com/PostHog/posthog-js/blob/master/src/posthog-surveys.ts
Thanks @neilkakkar
If anyone reading this would like to contribute and open a PR, happy to guide and review. It'd be pretty a port with some changes from the JS SDK.
It would be super cool if the react native SDK could support the Popup UI! Of course the API solution works, but I would presonally prefer the prebuild Popover in react-native over building a custom UI and handling the events myself
Here for this too - any updates on when you expect RN support for Surveys pre-built UI to be live?
Here for this too - any updates on when you expect RN support for Surveys pre-built UI to be live?
We're currently not working or planning to work on this within the next couple of months, but happy to guide PRs in case you would like to lend a hand, happy to guide you.
Upvote! Need this, too.
👋 would need it as well :)
Would be great to have it for RN
Would be awesome!
Hello!
Not sure if this is the correct place to ask, and haven't find anything in the documentation - is Posthog Surveys available for react native ? If it is, how can it be enabled and if it's not, is there any plans of making it?
Thank you!
Related sub-libraries