Skip to content

Simple shake event handler for CRNA apps. Required Expo (Accelerometer)

Notifications You must be signed in to change notification settings

sadi304/shake-event-expo-crna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Simple Shake Event Expo (CRNA)

Download or clone the repository.

import { ShakeEventExpo } from './ShakeEventExpo';

  componentWillMount() {
    ShakeEventExpo.addListener(() => {
        Alert.alert('Shaking!!!');
    });
   }
     
  componentWillUnmount() {
    ShakeEventExpo.removeListener();
  }

Works for android / iOS

About

Simple shake event handler for CRNA apps. Required Expo (Accelerometer)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published