Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 360 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 360 Bytes

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