Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@shankarmorwal/react-native-exit-on-double-press
Advanced tools
Custom hook that can be used to exit the app on double press. It uses small toaster inside. This will work only on android
react-native-exit-on-double-press
Custom hook that can be used to exit the app on double press. It uses small toaster inside. This will work only on android.
import {useExitAppOnDoublePress} from "@shankarmorwal/react-native-exit-on-double-press";
then use it like this
useExitAppOnDoublePress({
condition: true;
message: "Press Again To Exit";
timeout: 2000;
});
This hook currently uses this options.
Condition: By default this is set to true. you can pass some custom condition. When this is false then this hook will not work.
message: It is custom message on first exit press
timeout: It is by default set to 2000 milli seconds. It will the duration between two double press to exit the app.
FAQs
Custom hook that can be used to exit the app on double press. It uses small toaster inside. This will work only on android
The npm package @shankarmorwal/react-native-exit-on-double-press receives a total of 1 weekly downloads. As such, @shankarmorwal/react-native-exit-on-double-press popularity was classified as not popular.
We found that @shankarmorwal/react-native-exit-on-double-press demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.