Skip to content

Commit 0792f4e

Browse files
committed
Libaray should be amplitude-react-native when this is used in mobile app
1 parent 8927cc4 commit 0792f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amplitude-client.js

+1-1
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)