Skip to content

Commit dc05a8e

Browse files
authored
Merge pull request #235 from amplitude/track-react-native-source
Libaray should be `amplitude-react-native` when this is used in mobil…
2 parents 8927cc4 + 0792f4e commit dc05a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amplitude-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert
11831183
user_properties: utils.truncate(utils.validateProperties(userProperties)),
11841184
uuid: UUID(),
11851185
library: {
1186-
name: 'amplitude-js',
1186+
name: BUILD_COMPAT_REACT_NATIVE ? 'amplitude-react-native' : 'amplitude-js',
11871187
version: version
11881188
},
11891189
sequence_number: sequenceNumber, // for ordering events and identifys

0 commit comments

Comments
 (0)