-
Notifications
You must be signed in to change notification settings - Fork 222
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
Add new tracker for React Native #1371
Merged
matus-tomlein
merged 16 commits into
wip/react-native
from
issue/create_react_native_tracker
Nov 19, 2024
Merged
Add new tracker for React Native #1371
matus-tomlein
merged 16 commits into
wip/react-native
from
issue/create_react_native_tracker
Nov 19, 2024
+14,235
−4,597
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleMonFiles added (6)
Total files change +105.62KB 0% Final result: ✅ View report in BundleMon website ➡️ |
greg-el
reviewed
Nov 8, 2024
matus-tomlein
force-pushed
the
issue/create_react_native_tracker
branch
from
November 11, 2024 07:48
7ef3a0b
to
9094cb3
Compare
Mookiies
reviewed
Nov 11, 2024
…and removeTracker functions in the React Native tracker
greg-el
approved these changes
Nov 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the
@snowplow/react-native-tracker
package to the monorepo.This aims to move the React Native tracker to instead of using the iOS and Android trackers as the base for the React Native tracker, to use the JavaScript tracker. The motivation for this is to:
The package will continue with the
@snowplow/react-native-tracker
starting from version 4.1 (or later). We decided for this as opposed to introducing a new package to make it more clear long term that this package replaces the old RN tracker and avoid having two RN packages. We will need to skip v3 (RN tracker is now on v2) in order to sync with the JS tracker versions.This PR implements the core of the tracker without additional features (such as session, lifecycle tracking) which will be introduced in follow up PRs. It tries to maintain the API from the RN tracker but for the
createTracker
method, this was not possible and I think it's better to follow thenewTracker
convention in the JS tracker. So thenewTracker
method signature is a breaking change.I have deployed the package under the version
4.0.1-dev.1
and added a very simple example app in the examples repo using it: snowplow-incubator/snowplow-javascript-tracker-examples#60 (we'll improve it over time)