From a2d343f7d37bbdf53d02bd9abeb8d209ee45edd8 Mon Sep 17 00:00:00 2001 From: Philipp Kursawe Date: Tue, 17 Nov 2020 09:47:22 +0100 Subject: [PATCH] docs(Readme): add section for Android Vibrate permissions --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8e1b310..b492e6f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,16 @@ `$ yarn add react-native-styled-toast` +## Android Vibrate Permissions + +If you want to use the `shouldVibrate` feature on **Android** you need to add the `android.permission.VIBRATE` permission to your projects `android/app/src/main/AndroidManifest.xml` like this: + +```xml + +``` + +See also [Vibration](https://reactnative.dev/docs/vibration) in the official React-Native docs. + ## Usage `react-native-styled-toast` is built to work with both vanilla react-native apps as well as react-native apps bootstrapped with Expo. It utilizes `styled-components` and `styled-system` under the hood to facilitate theming.