react-native/Libraries/Vibration/RCTVibration.m

22 lines
399 B
Objective-C

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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