Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#66575 [@types/survicate__react-native-surv…
Browse files Browse the repository at this point in the history
…icate] Updated API by @SurvicatePawelGodlewski
  • Loading branch information
SurvicatePawelGodlewski authored Sep 12, 2023
1 parent 01df92e commit 4e90f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/survicate__react-native-survicate/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// Type definitions for @survicate/react-native-survicate 1.0
// Type definitions for @survicate/react-native-survicate 1.1
// Project: https://github.com/Survicate/react-native-survicate#readme
// Definitions by: Ian Mobley <https://github.com/iMobs>
// Pawel <https://github.com/SurvicatePawelGodlewski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Survicate {
/**
* @deprecated Use `initializeSdk` instead. This method will be removed in version 4.0.
*/
function initialize(): void;
function initializeSdk(): void;
function invokeEvent(eventName: string): void;
function enterScreen(screenName: string): void;
function leaveScreen(screenName: string): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Survicate from '@survicate/react-native-survicate';

Survicate.initialize();
Survicate.initializeSdk();
Survicate.invokeEvent('test');
Survicate.enterScreen('test');
Survicate.leaveScreen('test');
Expand Down

0 comments on commit 4e90f77

Please sign in to comment.