Skip to content
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

refactor(supported-platforms): Remove React Native Support #364

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

kelsonpw
Copy link
Contributor

@kelsonpw kelsonpw commented Mar 9, 2021

Summary

BREAKING CHANGES: Removed support for React Native

We recently released an entirely new SDK focused completely on React Native support, this can be found at
https://github.com/amplitude/Amplitude-ReactNative.
We will be writing a migration guide for users looking to move to the new React Native SDK.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: Yes

BREAKING CHANGES:  Removed support for React Native

We recently released an entirely new SDK focused entirely on React Native support, this can be found at
https://github.com/amplitude/Amplitude-ReactNative.
We will be writing a migration guide for users looking to move to the new React Native SDK.
@kelsonpw kelsonpw requested review from kelvin-lu, jooohhn, haoliu-amp, yuhao900914 and ajhorst and removed request for kelvin-lu and jooohhn March 9, 2021 20:23
README.md Outdated
## React Native
This library now supports react-native. It has two dependencies on react-native modules you will have to install yourself:
## Deprecated - React Native
As of > v7.4.4, this SDK no longer has support for react-native. We recently released a new SDK focused on providing a React Native and cross-platform first approach. [Amplitude React Native SDK](https://github.com/amplitude/Amplitude-ReactNative)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: any strong opinions between the last working build vs. the first breaking build (>= 8.0.0) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, i like that wording better, added! @kelvin-lu

src/options.js Outdated
@@ -38,7 +27,7 @@ if (BUILD_COMPAT_REACT_NATIVE) {
* @property {boolean} [logAttributionCapturedEvent=`false`] - If `true`, the SDK will log an Amplitude event anytime new attribution values are captured from the user. **Note: These events count towards your event volume.** Event name being logged: [Amplitude] Attribution Captured. Event Properties that can be logged: `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `referrer`, `referring_domain`, `gclid`, `fbclid`. For UTM properties to be logged, `includeUtm` must be set to `true`. For the `referrer` and `referring_domain` properties to be logged, `includeReferrer` must be set to `true`. For the `gclid` property to be logged, `includeGclid` must be set to `true`. For the `fbclid` property to be logged, `includeFbclid` must be set to `true`.
* @property {boolean} [optOut=`false`] - Whether or not to disable tracking for the current user.
* @property {function} [onError=`() => {}`] - Function to call on error.
* @property {string} [platform=`Web`|`iOS`|`Android`] - Platform device is running on. `Web` is a browser (including mobile browsers). `iOS` and `Android` are relevant only for react-native apps.
* @property {string} [platform=`Web`] - Platform device is running on. Defailts to `Web` (browser, including mobile browsers).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, should be Defaults to 😛

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like how my typo has the word fail in it 😄

thx for catching

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated! @ajhorst

@kelsonpw kelsonpw requested a review from kelvin-lu March 10, 2021 01:27
Copy link
Contributor

@jooohhn jooohhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants