Manoel Aranda Neto
Manoel Aranda Neto
Closing in favor of https://github.com/PostHog/posthog/issues/23275 https://github.com/PostHog/posthog/issues/23276 https://github.com/PostHog/posthog/issues/23277 Most of the other tasks were done or not prioritized, for now, we can always go back and decide to raise new issues...
I will close https://github.com/PostHog/posthog/pull/22321 in favor of this one
closed in favor of https://github.com/PostHog/posthog/pull/22295
@neilkakkar the v3 SDK does not have the `initAsync` anymore, so the issue "there was no way to tell whether PostHog had initialized" does not apply anymore. https://posthog.com/docs/libraries/react-native#example-1-boolean-feature-flags `useFeatureFlag` will...
@neilkakkar did you figure this issue? the ticket is still open
@itsramiel If you are using the RN SDK v3, you can just set eg `persistence` to `memory` or set your custom `customStorage` when in testing mode, for example, you can...
@itsramiel did you try this out?
Gotcha, yes that is the workaround until those libraries provide the implementation of the missing platforms.
A quick solution would be to adapt the new router integration based on the other integrations such as https://github.com/PostHog/posthog-js-lite/blob/01fff0242a620345614a792379397029cf6cc9f1/posthog-react-native/src/frameworks/wix-navigation.ts and https://github.com/PostHog/posthog-js-lite/blob/01fff0242a620345614a792379397029cf6cc9f1/posthog-react-native/src/hooks/useNavigationTracker.ts
https://expo.github.io/router/docs/migration/react-navigation/screen-tracking/ should give a head start.