Skip to content

Commit

Permalink
fix(analytics-react-native): should export extendSession as client
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Sep 20, 2024
1 parent e33f45a commit 4cb0763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/analytics-react-native/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const {
setSessionId,
setUserId,
track,
extendSession,
} = client;
export { Revenue, Identify } from '@amplitude/analytics-core';
// Hack - react-native apps have trouble with:
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics-react-native/src/react-native-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { isNative } from './utils/platform';
const START_SESSION_EVENT = 'session_start';
const END_SESSION_EVENT = 'session_end';

export class AmplitudeReactNative extends AmplitudeCore {
export class AmplitudeReactNative extends AmplitudeCore implements ReactNativeClient {
appState: AppStateStatus = 'background';
private appStateChangeHandler: NativeEventSubscription | undefined;
explicitSessionId: number | undefined;
Expand Down

0 comments on commit 4cb0763

Please sign in to comment.