mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
aa1d31ebca
Summary: Android's `VibrationModule` uses deprecated `vibrate(long milliseconds)` and `vibrate(long[] pattern, int repeat)` methods. Deprecation notes: [[1]](https://developer.android.com/reference/android/os/Vibrator#vibrate(long)) [[2]](https://developer.android.com/reference/android/os/Vibrator#vibrate(long[],%20int)). Changes in this pull request use recent `Vibrator` API for devices with API Level >= 26 (since mentioned methods were depreceted in API Level 26). ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Internal] - Use non-deprecated `Vibrator` API in `VibrationModule` Pull Request resolved: https://github.com/facebook/react-native/pull/29534 Test Plan: API is the same as before, but it uses recent `Vibrator` API. Reviewed By: makovkastar Differential Revision: D22857382 Pulled By: mdvacca fbshipit-source-id: 6793a7d165fa73d81064865861ed55af2de83d52
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.