Skip to content

Commit 1ce9eb6

Browse files
authored
refactor(supported-platforms): Remove React Native Support (#364)
* refactor(supported-platforms): Remove React Native Support 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. * docs(platform-support): Fix nits in documentation * docs: Add migration guide for react native to readme
1 parent 777dead commit 1ce9eb6

14 files changed

+71
-549
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"mocha/no-exclusive-tests": "error"
1313
},
1414
"globals": {
15-
"BUILD_COMPAT_REACT_NATIVE": "readonly",
1615
"BUILD_COMPAT_LOCAL_STORAGE": "readonly",
1716
"BUILD_COMPAT_SNIPPET": "readonly",
1817
"BUILD_COMPAT_2_0": "readonly",

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ labels: 'bug'
1616
<!--- (Not obligatory) Suggest a fix/reason -->
1717

1818
## Steps to Reproduce
19-
<!--- Please provide a clear sequence of steps to reproduce this bug -->
19+
<!--- Please provide a clear sequence of steps to reproduce this bug -->
2020
<!--- Include code and images, if relevant -->
2121
1.
2222
2.
@@ -26,4 +26,4 @@ labels: 'bug'
2626
## Environment
2727
- JS SDK Version: <!--- E.g. 7.1.0 -->
2828
- Installation Method: <!-- I.e. NPM/Yarn or <script> import -->
29-
- Browser and Version or React Native and Device: <!-- E.g. Chrome 84, React Native@0.63 iPhone SE-->
29+
- Browser and Version: <!-- E.g. Chrome 84-->

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ amplitude.js
1010
amplitude.esm.js
1111
amplitude.min.js
1212
amplitude-snippet.min.js
13-
amplitude.native.js
1413
amplitude-segment-snippet.min.js
1514
.watchmanconfig
1615
package-lock.json

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ README.md: $(SNIPPET_OUT) version
6363
# Target for `amplitude.js` file.
6464
#
6565

66-
$(OUT): node_modules $(SRC) package.json rollup.config.js rollup.min.js rollup.native.js rollup.esm.js rollup.umd.js rollup.umd.min.js
66+
$(OUT): node_modules $(SRC) package.json rollup.config.js rollup.min.js rollup.esm.js rollup.umd.js rollup.umd.min.js
6767
@NODE_ENV=production $(ROLLUP) --config rollup.config.js # is the snippet build config
6868
@NODE_ENV=production $(ROLLUP) --config rollup.esm.js # does not concat dependencies, only has module and dependencies
6969
@NODE_ENV=production $(ROLLUP) --config rollup.umd.js # generates npm version, also usable in require js app
70-
@NODE_ENV=production $(ROLLUP) --config rollup.native.js # generates react native build
7170
@NODE_ENV=production $(ROLLUP) --config rollup.umd.min.js
7271
@NODE_ENV=production $(ROLLUP) --config rollup.min.js
7372

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ A JavaScript SDK for tracking events and revenue to [Amplitude](https://www.ampl
2626
* A [demo page](https://github.com/amplitude/GTM-Web-Demo) demonstrating a potential integration with Google Tag Manager.
2727

2828

29-
## React Native
30-
This library now supports react-native. It has two dependencies on react-native modules you will have to install yourself:
29+
## Deprecated - React Native
30+
As of >= v8.0.0, this SDK no longer has support for React Native. We recently released a new SDK focused on providing a React Native first approach to using Amplitude in cross-platform projects. [Amplitude React Native SDK](https://github.com/amplitude/Amplitude-ReactNative)
3131

32-
* [react-native-device-info](https://www.npmjs.com/package/react-native-device-info) Tested with version 3.1.4
33-
* [@react-native-async-storage/async-storage](https://www.npmjs.com/package/@react-native-async-storage/async-storage) Tested with version 1.6.2
32+
Previously used amplitude-js and looking to migrate to @amplitude/react-native?
33+
* Please follow the steps detailed in our [migration guide](https://github.com/amplitude/Amplitude-ReactNative/blob/main/MIGRATION_GUIDE.md)
3434

3535
## Node.js
3636
Please visit [Amplitude-Node](https://github.com/amplitude/Amplitude-Node) for our Node SDK.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"url": "https://github.com/amplitude/amplitude-javascript.git"
1414
},
1515
"main": "amplitude.umd.js",
16-
"react-native": "amplitude.native.js",
1716
"dependencies": {
1817
"@amplitude/ua-parser-js": "0.7.24",
1918
"@amplitude/utils": "^1.0.5",

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default {
2727
BUILD_COMPAT_SNIPPET: 'true',
2828
BUILD_COMPAT_LOCAL_STORAGE: 'true',
2929
BUILD_COMPAT_2_0: 'true',
30-
BUILD_COMPAT_REACT_NATIVE: 'false',
3130
}),
3231
commonjs(),
3332
],

rollup.esm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default {
2424
BUILD_COMPAT_SNIPPET: 'false',
2525
BUILD_COMPAT_LOCAL_STORAGE: 'true',
2626
BUILD_COMPAT_2_0: 'true',
27-
BUILD_COMPAT_REACT_NATIVE: 'false',
2827
}),
2928
commonjs({
3029
include: "node_modules/**"

rollup.native.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

rollup.umd.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default {
2727
BUILD_COMPAT_SNIPPET: 'true',
2828
BUILD_COMPAT_LOCAL_STORAGE: 'true',
2929
BUILD_COMPAT_2_0: 'true',
30-
BUILD_COMPAT_REACT_NATIVE: 'false',
3130
}),
3231
commonjs(),
3332
],

0 commit comments

Comments
 (0)