# How to use Native Plugins in @ionic/react?

**URL:** <https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475>\
**Category:** Ionic Native\
**Created:** [September 17, 2019, 3:59am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475 "2019-09-17T03:59:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![it.hieund](https://avatars.discourse-cdn.com/v4/letter/i/4da419/32.png) [@it.hieund](https://forum.ionicframework.com/u/it.hieund)\
**Post date:** [September 17, 2019, 3:59am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475/1 "2019-09-17T03:59:48Z")

</div>

It seems that all native plugins are stick to Angular, no sample for React.  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/f/c/fc9fe68c5c958c884ec3820c477c946161661b20.png)  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/8/3/830c3555b42fd7d767be1923464f79cdb71256ad.png)  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/4/4/4437ecccac3d236a208542132c4aece67dc6edd3.png)  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/2/d/2dd1ac78549f2e1ddc69528c87d0fe17ddb17936.png)

The question is when will @ionic/react be supported in Native Plugins?

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [September 17, 2019, 5:40am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475/2 "2019-09-17T05:40:59Z")

</div>

Hi  
Those imports are syntactic angular sugar for the underlying cordova implementation

Are u wondering if ionic is going release react sugar or whether any of the underlying ever be available in react?

The first I cant tell, second: u can use any cordova plugin in react using the vanilla js interface

---

<div class="post-metadata">

**Author:** ![it.hieund](https://avatars.discourse-cdn.com/v4/letter/i/4da419/32.png) [@it.hieund](https://forum.ionicframework.com/u/it.hieund)\
**Post date:** [September 17, 2019, 8:01am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475/3 "2019-09-17T08:01:36Z")

</div>

@Tommertom  
Thank you for your suggestion. Can you give me an example of using Cordova Plugin in Ionic-React using vanilla JS?

Thanks.

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [September 17, 2019, 8:14am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475/4 "2019-09-17T08:14:19Z")

</div>

Hi  
I don’t use React, so can’t. Sorry.  
But I assume you know how to include vanilla JS in a react project.

Example:  
[https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-vibration/](https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-vibration/)

```auto
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(navigator.vibrate);
    navigator.vibrate(1000);
}

```

Tom

---

<div class="post-metadata">

**Author:** ![it.hieund](https://avatars.discourse-cdn.com/v4/letter/i/4da419/32.png) [@it.hieund](https://forum.ionicframework.com/u/it.hieund)\
**Post date:** [September 19, 2019, 8:49am UTC](https://forum.ionicframework.com/t/how-to-use-native-plugins-in-ionic-react/173475/5 "2019-09-19T08:49:08Z")

</div>

Thank you 🙂
