diff --git a/README.md b/README.md index 9f2ad7d..95cea4a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A cross-platform bridge that allows you to enable and disable the screen idle ti ## Install -`npm install react-native-idle-timer@latest --save` +`yarn add react-native-idle-timer` ## Link diff --git a/index.d.ts b/index.d.ts index a205369..2ff17ec 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ declare namespace RNIdleTimer { - function setIdleTimerDisabled(disabled: boolean, tag: string | undefined): void; + function setIdleTimerDisabled(disabled: boolean, tag?: string): void; } -export = RNIdleTimer +export = RNIdleTimer;