UNPKG

react-native

Version:

A framework for building native apps using React

30 lines (28 loc) 866 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<dfd4dea0569a589baf90f7b69c21ef4e>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/Vibration/Vibration.js */ declare const Vibration: { /** * Trigger a vibration with specified `pattern`. * * See https://reactnative.dev/docs/vibration#vibrate */ vibrate: (pattern?: number | Array<number>, repeat?: boolean) => void; /** * Stop vibration * * See https://reactnative.dev/docs/vibration#cancel */ cancel: () => void; }; declare const $$Vibration: typeof Vibration; declare type $$Vibration = typeof $$Vibration; export default $$Vibration;