PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
67 stars 35 forks source link

Posthog Survey on react native #110

Open georgibakken opened 1 year ago

georgibakken commented 1 year ago

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

itsramiel commented 10 months ago

Need this too!

marandaneto commented 10 months ago

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.

itsramiel commented 10 months ago

@marandaneto just the API would be sufficient!

MuhammadAbdullah54321 commented 9 months ago

Support for React Native would be much appreciated.

marandaneto commented 9 months ago

@neilkakkar is there an OpenAPI spec for surveys already or something documented people can look at?

neilkakkar commented 9 months ago

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

marandaneto commented 9 months ago

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.

andrewchester1 commented 4 months ago

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

parthegoras-g commented 4 months ago

Here for this too - any updates on when you expect RN support for Surveys pre-built UI to be live?

marandaneto commented 3 months ago

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.

satine7 commented 2 months ago

Upvote! Need this, too.

cyannis commented 2 months ago

👋 would need it as well :)

mfrfinbox commented 1 month ago

Would be great to have it for RN

nixolas1 commented 1 month ago

Would be awesome!