expo-parsely
v1.0.1
Published
Expo Module which wraps the Parse.ly SDKs for use in React Native apps
Maintainers
Readme
Expo Parse.ly
This is a custom Expo Module which wraps the native Parse.ly SDKs.
- iOS: https://github.com/Parsely/AnalyticsSDK-iOS
- Android: https://github.com/Parsely/parsely-android
[!NOTE] There is no official React Native SDK, however a React Native integration (with a React Native CLI app) is provided for reference here
Module
ExpoParselyModule is an Expo Module that exposes trackPageView() to React Native.
Note that trackPageView() takes in a siteId. This is passed over the Bridge from the Environment Variable EXPO_PUBLIC_PARSELY_SITE_ID.
iOS notes
- while we configure the
sharedInstanceon every method call, this pattern was used in the reference implementation.
Android notes
init()must be run on the main thread. We leverage Facebook'sUiThreadUtilto achieve this
