react-native/Libraries/Vibration/RCTVibration.m

22 lines
393 B
Objective-C

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RCTVibration.h"
#import <AudioToolbox/AudioToolbox.h>
@implementation RCTVibration
RCT_EXPORT_MODULE()
RCT_EXPORT_METHOD(vibrate)
{
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
@end