[React-Native] Fixed Vibration.vibrate type (#47764)

* Updated Vibration.vibrate type

Following react-native docs, all of the arguments are optional and I've updated the docs to follow this

* Update types/react-native/index.d.ts

Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
This commit is contained in:
Alfie Jones 2020-09-18 15:30:38 +01:00 committed by GitHub
parent 4271605394
commit 81c224f5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8585,7 +8585,7 @@ export class Switch extends SwitchBase {}
* V(fixed) --wait(1s)--> V(fixed) --wait(2s)--> V(fixed) --wait(3s)--> V(fixed)
*/
export interface VibrationStatic {
vibrate(pattern: number | number[], repeat?: boolean): void;
vibrate(pattern?: number | number[] | null, repeat?: boolean | null): void;
/**
* Stop vibration