-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment:
OS: macOS Sierra 10.12.6
Node: 8.4.0
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: ^0.48.4 => 0.48.4
Target Platform: android 5.1.1 (XIAOMI Redmi 3) | Android versions less than 6.0
Steps to Reproduce
- Add permission to AndroidManifest.xml:
<uses-permission android:name="android.permission.VIBRATE"/>
- Add to project file
import { Vibration } from "react-native
- Run a vibration
Vibration.vibrate()
Tried to use:
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.VIBRATE" android:maxSdkVersion="18" />
<uses-permission-sdk-23 android:name="android.permission.VIBRATE"/>
This one works for android 6+:
<uses-permission-sdk-23 android:name="android.permission.VIBRATE"/>
Expected Behavior
It shouldn't throw an error
Actual Behavior
it doesn't work
Reproducible Demo
aarnold, mihaiblaga89, wangghon, drorbiran, thehlopster and 1 more
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.